| | |
| | | var uid = await UserUtil.getUid(); |
| | | Map<String, dynamic>? map = await UserApiUtil.logout(context, uid); |
| | | if (map!["code"] == 0) { |
| | | await UserUtil.logout(); |
| | | await PushUtil.removeAlias(); |
| | | eventBus.fire(LoginEventBus(false)); |
| | | UserUtil.logout(); |
| | | setState(() { |
| | | login = false; |
| | | }); |
| | | ToastUtil.toast("退出成功"); |
| | | Navigator.of(context).pop(); |
| | | } else { |
| | | ToastUtil.toast(map["msg"]); |
| | | } |
| | |
| | | } |
| | | }); |
| | | }), |
| | | getCommonItemView( |
| | | title: "第三方SDK列表", |
| | | content: "", |
| | | onClick: () { |
| | | |
| | | ConfigUtil.getConfig(ConfigKey.sdkList).then((value) { |
| | | if (!StringUtil.isNullOrEmpty(value)) { |
| | | NavigatorUtil.navigateToNextPage( |
| | | context, BrowserPage(title: "第三方SDK列表", url: value!), (data) {}); |
| | | } |
| | | }); |
| | | }), |
| | | // getCommonItemView( |
| | | // title: "第三方SDK列表", |
| | | // content: "", |
| | | // onClick: () { |
| | | // |
| | | // ConfigUtil.getConfig(ConfigKey.sdkList).then((value) { |
| | | // if (!StringUtil.isNullOrEmpty(value)) { |
| | | // NavigatorUtil.navigateToNextPage( |
| | | // context, BrowserPage(title: "第三方SDK列表", url: value!), (data) {}); |
| | | // } |
| | | // }); |
| | | // }), |
| | | Expanded( |
| | | child: Container(), |
| | | ), |