Skip to content

Instantly share code, notes, and snippets.

@flutter-devs
Created June 17, 2019 10:11
Show Gist options
  • Save flutter-devs/f068b50a4671f8308e9cb97d3091e91b to your computer and use it in GitHub Desktop.
Save flutter-devs/f068b50a4671f8308e9cb97d3091e91b to your computer and use it in GitHub Desktop.
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