|
@@ -16,19 +16,19 @@ class MyApp extends StatelessWidget {
|
|
|
Widget build(BuildContext context) {
|
|
|
return MultiProvider(
|
|
|
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,
|
|
|
- ),
|
|
|
);
|
|
|
}
|
|
|
}
|