parent
d1d811b19e
commit
859824680f
@ -0,0 +1,58 @@
|
||||
import 'package:akuCommunity/pages/sign/sign_in_page.dart';
|
||||
import 'package:akuCommunity/widget/bee_scaffold.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class AccountManagerPage extends StatefulWidget {
|
||||
AccountManagerPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AccountManagerPageState createState() => _AccountManagerPageState();
|
||||
}
|
||||
|
||||
class _AccountManagerPageState extends State<AccountManagerPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '账号管理',
|
||||
body: ListView(
|
||||
children: [
|
||||
ListTile(
|
||||
title: '账号注销'.text.red500.make(),
|
||||
onTap: () {
|
||||
showCupertinoModalPopup(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return CupertinoActionSheet(
|
||||
message: Text('注销当前账号'),
|
||||
actions: [
|
||||
CupertinoButton(
|
||||
child: Text(
|
||||
'确定',
|
||||
style: TextStyle(
|
||||
color: Colors.red.withOpacity(0.7),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
Get.offAll(SignInPage());
|
||||
},
|
||||
),
|
||||
],
|
||||
cancelButton: CupertinoButton(
|
||||
child: Text('取消'),
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue