Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
0cd56030
提交
0cd56030
authored
2月 20, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1:账号注销弹窗
上级
d5482b2c
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
74 行增加
和
0 行删除
+74
-0
view.dart
lib/pages/user_security/view.dart
+74
-0
没有找到文件。
lib/pages/user_security/view.dart
浏览文件 @
0cd56030
...
...
@@ -76,6 +76,58 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
children:
[
GestureDetector
(
child:
_buildItem
(
title:
'账号注销'
,
value:
''
),
onTap:
()
async
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
AlertDialog
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
8.0
.
w
),
),
contentPadding:
EdgeInsets
.
zero
,
// 移除内容部分的内边距
content:
Wrap
(
children:
[
Container
(
margin:
EdgeInsets
.
only
(
top:
44
.
w
,
bottom:
29
.
w
),
// 调整上下间距
child:
Center
(
child:
Text
(
'确定注销账号吗'
,
style:
TextStyle
(
fontSize:
15
.
w
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
,
),
),
),
),
Container
(
height:
1
.
w
,
// 设置分割线的高度
width:
double
.
infinity
,
// 设置分割线的宽度
color:
Colours
.
cLine
,
// 设置分割线的颜色
),
],),
// 去除操作按钮区域的内边距
actionsPadding:
EdgeInsets
.
zero
,
actions:
<
Widget
>[
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
// 或者使用MainAxisAlignment.spaceEvenly
children:
[
GestureDetector
(
onTap:
()
=>
Navigator
.
of
(
context
).
pop
(),
child:
const
Text
(
'取消'
,
style:
TextStyle
(
fontSize:
12
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c6
,
),
),
),
Container
(
height:
39.5
.
w
,
// 设置分割线的高度
width:
1
,
// 设置分割线的宽度
color:
Colours
.
cLine
,
// 设置分割线的颜色
),
GestureDetector
(
onTap:
()
async
{
final
result
=
await
AccountAPI
.
delete
();
if
(
result
){
...
...
@@ -86,6 +138,28 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
context
.
goNamed
(
Routes
.
splash
);
}
}
},
child:
const
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
12
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
cAB1941
,
),
),
),
],
),
],
);
},
);
},
),
],
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论