Created
October 7, 2019 15:44
-
-
Save Zfinix/8e5bdccab35f3030cc555dd998904e40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { | |
| return MultiProvider( | |
| providers: [ | |
| ChangeNotifierProvider(builder: (_) => HomeController()), | |
| ], | |
| child: MaterialApp( | |
| title: 'Provider App', | |
| debugShowCheckedModeBanner: false, | |
| theme: ThemeData( | |
| primaryColor: Colors.green), | |
| home: Home(), | |
| )); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment