|
|
@@ -6,6 +6,7 @@ import 'package:redux/redux.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_redux/flutter_redux.dart';
|
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
|
+import 'package:flutter_bugly/flutter_bugly.dart';
|
|
|
import './Localizations.dart';
|
|
|
import 'model/UserInfo.dart';
|
|
|
import 'net/HttpManager.dart';
|
|
|
@@ -43,12 +44,12 @@ class MobileCyberGamesApp extends StatelessWidget {
|
|
|
textSelectionColor: Colors.white,
|
|
|
textTheme: TextTheme(
|
|
|
subhead: TextStyle(color: Colors.white),
|
|
|
- title:TextStyle(color: Colors.white),
|
|
|
+ title: TextStyle(color: Colors.white),
|
|
|
),
|
|
|
- primaryTextTheme:TextTheme(
|
|
|
- title:TextStyle(color: Colors.white),
|
|
|
+ primaryTextTheme: TextTheme(
|
|
|
+ title: TextStyle(color: Colors.white),
|
|
|
),
|
|
|
- primaryIconTheme:IconThemeData(color: Colors.white),
|
|
|
+ primaryIconTheme: IconThemeData(color: Colors.white),
|
|
|
buttonTheme: ButtonThemeData(
|
|
|
buttonColor: Color(0xFFC2524D),
|
|
|
highlightColor: Color(0xFF8E3B36),
|
|
|
@@ -83,8 +84,14 @@ Future<void> main() async {
|
|
|
if (result.success && result.data != null) {
|
|
|
UserInfo userInfo = UserInfo.fromJson(result.data);
|
|
|
state.userInfo = userInfo;
|
|
|
+ FlutterBugly.setUserId("user id");
|
|
|
// jpush.setAlias(userInfo.id.toString()).then((map) {});
|
|
|
}
|
|
|
- Store<AppState> store = Store<AppState>(appReducer, initialState: state);
|
|
|
- runApp(MobileCyberGamesApp(store));
|
|
|
+ final Store<AppState> store = Store<AppState>(appReducer, initialState: state);
|
|
|
+
|
|
|
+ FlutterBugly.postCatchedException(() {
|
|
|
+ runApp(MobileCyberGamesApp(store));
|
|
|
+ });
|
|
|
+
|
|
|
+ FlutterBugly.init(androidAppId: 'bd9a511cb9', iOSAppId: '');
|
|
|
}
|