git-touch-android-ios-app/lib/main.dart

27 lines
595 B
Dart
Raw Normal View History

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
class App extends StatelessWidget {
2018-07-05 16:08:19 +02:00
final isIos = false;
@override
build(context) {
2018-07-05 16:08:19 +02:00
return MaterialApp(
title: 'GitFlux',
2018-07-05 16:08:19 +02:00
theme: ThemeData(
primarySwatch: Colors.blue,
),
2018-07-05 16:08:19 +02:00
home: isIos
? IosHomePage(title: 'GitFlux')
: AndroidHomePage(title: 'GitFlux'),
routes: {
2018-07-05 16:08:19 +02:00
// '/notification': (context) => IosNotificationTab(),
// '/profile': (context) => IosProfileTab(),
},
);
}
}
2018-07-05 16:08:19 +02:00
void main() => runApp(App());