Skip to content

Instantly share code, notes, and snippets.

@xrnd
Last active July 9, 2018 08:52
Show Gist options
  • Select an option

  • Save xrnd/50654b5e168464fb706088804d08858e to your computer and use it in GitHub Desktop.

Select an option

Save xrnd/50654b5e168464fb706088804d08858e to your computer and use it in GitHub Desktop.
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Management App',
theme: defaultTargetPlatform == TargetPlatform.iOS
? Themes.kIOSTheme
: Themes.kDefaultTheme,
home: SplashScreen(),
routes: <String, WidgetBuilder> {
'/screen1': (BuildContext context) => new Screen1(),
'/screen2' : (BuildContext context) => new Screen2(),
},
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment