Browse Source

update by server

git@yoqi.me 1 year ago
parent
commit
302eb62dce
1 changed files with 12 additions and 12 deletions
  1. 12 12
      lib/main.dart

+ 12 - 12
lib/main.dart

@@ -16,19 +16,19 @@ class MyApp extends StatelessWidget {
   Widget build(BuildContext context) {
   Widget build(BuildContext context) {
     return MultiProvider(
     return MultiProvider(
       providers: [
       providers: [
-        ChangeNotifierProvider<CarProvider>(create: (_) => CarProvider()),
-        ChangeNotifierProvider<ThemeProvider>(create: (_) => ThemeProvider()),
-      ],
-      child: MaterialApp(
-        title: 'Provider Demo',
-        debugShowCheckedModeBanner: false,
-        theme: ThemeData(
-          primarySwatch: Colors.blue,
-          visualDensity: VisualDensity.adaptivePlatformDensity,
+          ChangeNotifierProvider<CarProvider>(create: (_) => CarProvider()),
+          ChangeNotifierProvider<ThemeProvider>(create: (_) => ThemeProvider()),
+        ],
+        child: MaterialApp(
+          title: 'Provider Demo',
+          debugShowCheckedModeBanner: false,
+          theme: ThemeData(
+            primarySwatch: Colors.blue,
+            visualDensity: VisualDensity.adaptivePlatformDensity,
+          ),
+          initialRoute: Routes.index,
+          onGenerateRoute: Routes.generateRoute,
         ),
         ),
-        initialRoute: Routes.index,
-        onGenerateRoute: Routes.generateRoute,
-      ),
     );
     );
   }
   }
 }
 }