Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Drag and Drop Demo',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(primarySwatch: Colors.green),
- routes: <String, WidgetBuilder>{
- Constants.SPLASH_SCREEN: (BuildContext context) => SplashScreen(),
- Constants.HOME_SCREEN: (BuildContext context) => ChangeNotifierProvider(
- builder: (context) => Data(), child: HomePage())
- },
- initialRoute: Constants.SPLASH_SCREEN,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement