2018-04-18 14:38:28 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2018-04-21 14:50:46 +02:00
|
|
|
import 'android/main.dart';
|
2018-04-20 18:59:26 +02:00
|
|
|
import 'ios/main.dart';
|
2018-04-18 14:38:28 +02:00
|
|
|
|
2018-04-25 15:07:44 +02:00
|
|
|
class App extends StatelessWidget {
|
2018-07-05 16:08:19 +02:00
|
|
|
final isIos = false;
|
2018-04-25 15:07:44 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
build(context) {
|
2018-07-05 16:08:19 +02:00
|
|
|
return MaterialApp(
|
2018-04-25 15:07:44 +02:00
|
|
|
title: 'GitFlux',
|
2018-07-05 16:08:19 +02:00
|
|
|
theme: ThemeData(
|
2018-04-25 15:07:44 +02:00
|
|
|
primarySwatch: Colors.blue,
|
|
|
|
),
|
2018-07-05 16:08:19 +02:00
|
|
|
home: isIos
|
|
|
|
? IosHomePage(title: 'GitFlux')
|
|
|
|
: AndroidHomePage(title: 'GitFlux'),
|
2018-04-25 15:07:44 +02:00
|
|
|
routes: {
|
2018-07-05 16:08:19 +02:00
|
|
|
// '/notification': (context) => IosNotificationTab(),
|
|
|
|
// '/profile': (context) => IosProfileTab(),
|
2018-04-25 15:07:44 +02:00
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-05 16:08:19 +02:00
|
|
|
void main() => runApp(App());
|