|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -7,6 +8,9 @@ import 'package:velocity_x/velocity_x.dart';
|
|
|
|
import 'package:aku_new_community/pages/sign/login/other_login_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/sign/login/other_login_page.dart';
|
|
|
|
import 'package:aku_new_community/widget/bee_scaffold.dart';
|
|
|
|
import 'package:aku_new_community/widget/bee_scaffold.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import '../../utils/network/base_model.dart';
|
|
|
|
|
|
|
|
import '../../utils/network/net_util.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class AccountManagerPage extends StatefulWidget {
|
|
|
|
class AccountManagerPage extends StatefulWidget {
|
|
|
|
AccountManagerPage({Key? key}) : super(key: key);
|
|
|
|
AccountManagerPage({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
@ -37,9 +41,12 @@ class _AccountManagerPageState extends State<AccountManagerPage> {
|
|
|
|
color: Colors.red.withOpacity(0.7),
|
|
|
|
color: Colors.red.withOpacity(0.7),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () async {
|
|
|
|
//暂时隐去一键登录页
|
|
|
|
BaseModel baseModel =
|
|
|
|
|
|
|
|
await NetUtil().post(SAASAPI.login.logOut);
|
|
|
|
|
|
|
|
if (baseModel.success) {
|
|
|
|
Get.offAll(() => OtherLoginPage());
|
|
|
|
Get.offAll(() => OtherLoginPage());
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|