Browse Source

hw更改

remove_uniapp
w-R 3 years ago
parent
commit
faa65dc67b
  1. 2
      lib/main.dart
  2. 3
      lib/main_page.dart
  3. 6
      lib/setting/logout_ing.dart
  4. 6
      lib/setting/setting_page.dart

2
lib/main.dart

@ -125,7 +125,7 @@ void main() async {
// FlutterBugly.init(androidAppId: "204f207673",iOSAppId: "8bb92ba0f6"); // FlutterBugly.init(androidAppId: "204f207673",iOSAppId: "8bb92ba0f6");
} }
final XgFlutterPlugin xgFlutterPlugin = XgFlutterPlugin(); // final XgFlutterPlugin xgFlutterPlugin = XgFlutterPlugin();

3
lib/main_page.dart

@ -139,8 +139,9 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
queryUserInfo(); queryUserInfo();
} }
final XgFlutterPlugin xgFlutterPlugin = XgFlutterPlugin();
initSdk() async { initSdk() async {
xgFlutterPlugin.stopXg();
///ios startXg前需要调用此方法 ///ios startXg前需要调用此方法
xgFlutterPlugin.configureClusterDomainName("tpns.sh.tencent.com"); xgFlutterPlugin.configureClusterDomainName("tpns.sh.tencent.com");
xgFlutterPlugin.setEnableDebug(true); xgFlutterPlugin.setEnableDebug(true);

6
lib/setting/logout_ing.dart

@ -452,8 +452,8 @@ class _LogoutIng extends State<LogoutIng> {
Navigator.of(context) Navigator.of(context)
.pushNamedAndRemoveUntil('/router/login_page', (route) => false); .pushNamedAndRemoveUntil('/router/login_page', (route) => false);
if (xgFlutterPlugin != null) { // if (xgFlutterPlugin != null) {
xgFlutterPlugin.stopXg(); // xgFlutterPlugin.stopXg();
} // }
} }
} }

6
lib/setting/setting_page.dart

@ -243,9 +243,9 @@ class _SettingPage extends State<SettingPage> {
Navigator.of(context) Navigator.of(context)
.pushNamedAndRemoveUntil('/router/login_page', (route) => false); .pushNamedAndRemoveUntil('/router/login_page', (route) => false);
if (xgFlutterPlugin != null) { // if (xgFlutterPlugin != null) {
xgFlutterPlugin.stopXg(); // xgFlutterPlugin.stopXg();
} // }
} }
Widget settingItem(left, right) { Widget settingItem(left, right) {

Loading…
Cancel
Save