Skip to content

Instantly share code, notes, and snippets.

@innovid-rnd
Created August 9, 2018 10:38
Show Gist options
  • Save innovid-rnd/7dafed4070127247d15370e5ff7761fe to your computer and use it in GitHub Desktop.
Save innovid-rnd/7dafed4070127247d15370e5ff7761fe to your computer and use it in GitHub Desktop.
Homey Flutter project main file
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