Created
June 17, 2019 10:11
-
-
Save flutter-devs/f068b50a4671f8308e9cb97d3091e91b to your computer and use it in GitHub Desktop.
This file contains 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 { | |
@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, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment