2019-01-25 13:35:20 +01:00
|
|
|
// import 'package:uri/uri.dart';
|
2018-04-18 14:38:28 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2019-01-22 16:39:44 +01:00
|
|
|
import 'package:flutter/cupertino.dart';
|
2019-01-25 13:35:20 +01:00
|
|
|
import 'package:git_flux/providers/event.dart';
|
|
|
|
import 'package:git_flux/providers/notification.dart';
|
|
|
|
import 'package:git_flux/providers/search.dart';
|
|
|
|
import 'package:git_flux/ios/main.dart';
|
|
|
|
// import 'package:git_flux/screens/user.dart';
|
|
|
|
// import 'package:git_flux/screens/repo.dart';
|
2018-04-18 14:38:28 +02:00
|
|
|
|
2018-04-25 15:07:44 +02:00
|
|
|
class App extends StatelessWidget {
|
2019-01-22 12:41:12 +01:00
|
|
|
final isIos = true;
|
2019-01-23 09:50:51 +01:00
|
|
|
final EventBloc eventBloc;
|
|
|
|
final NotificationBloc notificationBloc;
|
2019-01-23 12:52:51 +01:00
|
|
|
final SearchBloc searchBloc;
|
2019-01-23 09:50:51 +01:00
|
|
|
|
2019-01-23 12:52:51 +01:00
|
|
|
App(this.eventBloc, this.notificationBloc, this.searchBloc);
|
2018-04-25 15:07:44 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
build(context) {
|
2019-01-23 12:52:51 +01:00
|
|
|
return SearchProvider(
|
|
|
|
bloc: searchBloc,
|
|
|
|
child: NotificationProvider(
|
|
|
|
bloc: notificationBloc,
|
|
|
|
child: EventProvider(
|
|
|
|
bloc: eventBloc,
|
|
|
|
child: MaterialApp(
|
|
|
|
home: DefaultTextStyle(
|
|
|
|
style: TextStyle(color: CupertinoColors.black),
|
|
|
|
child: IosHomePage(title: 'GitFlux'),
|
|
|
|
),
|
2019-01-25 13:35:20 +01:00
|
|
|
// theme: ThemeData(
|
|
|
|
// textTheme: TextTheme(
|
|
|
|
// title: TextStyle(color: Colors.red),
|
|
|
|
// ),
|
|
|
|
// ),
|
2019-01-23 09:50:51 +01:00
|
|
|
),
|
|
|
|
),
|
2019-01-22 16:39:44 +01:00
|
|
|
),
|
2018-04-25 15:07:44 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-23 09:50:51 +01:00
|
|
|
void main() {
|
|
|
|
EventBloc eventBloc = EventBloc();
|
|
|
|
NotificationBloc notificationBloc = NotificationBloc();
|
2019-01-23 12:52:51 +01:00
|
|
|
SearchBloc searchBloc = SearchBloc();
|
2019-01-23 09:50:51 +01:00
|
|
|
|
2019-01-23 12:52:51 +01:00
|
|
|
runApp(App(eventBloc, notificationBloc, searchBloc));
|
2019-01-23 09:50:51 +01:00
|
|
|
}
|