Skip to content

Instantly share code, notes, and snippets.

@Zfinix
Created October 7, 2019 15:44
Show Gist options
  • Select an option

  • Save Zfinix/8e5bdccab35f3030cc555dd998904e40 to your computer and use it in GitHub Desktop.

Select an option

Save Zfinix/8e5bdccab35f3030cc555dd998904e40 to your computer and use it in GitHub Desktop.
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