Created
August 9, 2018 10:38
-
-
Save innovid-rnd/7dafed4070127247d15370e5ff7761fe to your computer and use it in GitHub Desktop.
Homey Flutter project main file
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
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'SplashScreen.dart'; | |
import 'HomePage.dart'; | |
import 'UploadPhoto.dart'; | |
final ThemeData kIOSTheme = new ThemeData( | |
primarySwatch: Colors.blueGrey, | |
accentColor: Colors.blueGrey, | |
); | |
final ThemeData kDefaultTheme = new ThemeData( | |
primarySwatch: Colors.blueGrey, | |
accentColor: Colors.blueGrey, | |
); | |
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: 'Homey', | |
theme: defaultTargetPlatform == TargetPlatform.iOS | |
? kIOSTheme | |
: kDefaultTheme, | |
home: new SplashScreen(), | |
routes: <String, WidgetBuilder>{ | |
'/homepage': (BuildContext context) => new MyHomePage(), | |
'/new': (BuildContext context) => new UploadPhoto() | |
}, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment