Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. void main() => runApp(MyApp());
  2.  
  3. class MyApp extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return MaterialApp(
  7. title: 'Drag and Drop Demo',
  8. debugShowCheckedModeBanner: false,
  9. theme: ThemeData(primarySwatch: Colors.green),
  10. routes: <String, WidgetBuilder>{
  11. Constants.SPLASH_SCREEN: (BuildContext context) => SplashScreen(),
  12. Constants.HOME_SCREEN: (BuildContext context) => ChangeNotifierProvider(
  13. builder: (context) => Data(), child: HomePage())
  14. },
  15. initialRoute: Constants.SPLASH_SCREEN,
  16. );
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement