51 lines
1.4 KiB
Dart
51 lines
1.4 KiB
Dart
// import 'package:uri/uri.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
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';
|
|
|
|
class App extends StatelessWidget {
|
|
final isIos = true;
|
|
final EventBloc eventBloc;
|
|
final NotificationBloc notificationBloc;
|
|
final SearchBloc searchBloc;
|
|
|
|
App(this.eventBloc, this.notificationBloc, this.searchBloc);
|
|
|
|
@override
|
|
build(context) {
|
|
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'),
|
|
),
|
|
// theme: ThemeData(
|
|
// textTheme: TextTheme(
|
|
// title: TextStyle(color: Colors.red),
|
|
// ),
|
|
// ),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
void main() {
|
|
EventBloc eventBloc = EventBloc();
|
|
NotificationBloc notificationBloc = NotificationBloc();
|
|
SearchBloc searchBloc = SearchBloc();
|
|
|
|
runApp(App(eventBloc, notificationBloc, searchBloc));
|
|
}
|