Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:provider/provider.dart';
- import 'providers/app_state.dart';
- import 'pages/main_page.dart'; // Import the MainPage
- void main() {
- runApp(
- MultiProvider(
- providers: [
- ChangeNotifierProvider(create: (_) => AppState()),
- // Remove ThemeProvider if not needed anymore
- ],
- child: const MyApp(),
- ),
- );
- }
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter VPN App',
- // Set the dark theme for the entire app
- theme: ThemeData(
- primarySwatch: Colors.blue,
- brightness: Brightness.dark, // Force dark theme
- ),
- home: const MainPage(), // Set MainPage as the home widget
- debugShowCheckedModeBanner: false,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement