Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit d02385fb
authored
2026-01-27 17:36:51 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bugfix
1 parent
039cef8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
lib/ui/pages/setting/account_page.dart
lib/ui/pages/setting/account_page.dart
View file @
d02385f
...
@@ -143,7 +143,7 @@ class AccountPage extends StatelessWidget {
...
@@ -143,7 +143,7 @@ class AccountPage extends StatelessWidget {
width:
double
.
infinity
,
width:
double
.
infinity
,
height:
47
,
height:
47
,
child:
ElevatedButton
(
child:
ElevatedButton
(
onPressed:
()
async
{
onPressed:
()
{
// 判断是否有绑定手机号
// 判断是否有绑定手机号
if
(
state
.
phone
!=
''
)
{
if
(
state
.
phone
!=
''
)
{
context
.
read
<
AccountCubit
>().
goLogoff
();
context
.
read
<
AccountCubit
>().
goLogoff
();
...
@@ -151,7 +151,7 @@ class AccountPage extends StatelessWidget {
...
@@ -151,7 +151,7 @@ class AccountPage extends StatelessWidget {
}
}
final
accountCubit
=
context
.
read
<
AccountCubit
>();
final
accountCubit
=
context
.
read
<
AccountCubit
>();
bool
?
confirm
=
await
showDialog
<
bool
>(
showDialog
<
bool
>(
context:
context
,
context:
context
,
builder:
(
BuildContext
ctx
)
{
builder:
(
BuildContext
ctx
)
{
return
AlertDialog
(
return
AlertDialog
(
...
@@ -173,23 +173,17 @@ class AccountPage extends StatelessWidget {
...
@@ -173,23 +173,17 @@ class AccountPage extends StatelessWidget {
],
],
);
);
},
},
);
).
then
((
value
)
{
if
(
value
==
true
)
{
if
(
confirm
==
true
)
{
Fluttertoast
.
showToast
(
// ScaffoldMessenger.of(context).showSnackBar(
msg:
'已申请注销,等待流程处理'
,
// SnackBar(
backgroundColor:
Colors
.
green
,
// content: Text('已申请注销,等待流程处理'),
toastLength:
Toast
.
LENGTH_LONG
,
// backgroundColor: Colors.green,
gravity:
ToastGravity
.
BOTTOM
,
// ),
);
// );
accountCubit
.
unbind
();
Fluttertoast
.
showToast
(
}
msg:
'已申请注销,等待流程处理'
,
});
backgroundColor:
Colors
.
green
,
toastLength:
Toast
.
LENGTH_LONG
,
gravity:
ToastGravity
.
BOTTOM
,
);
accountCubit
.
unbind
();
}
},
},
style:
ElevatedButton
.
styleFrom
(
style:
ElevatedButton
.
styleFrom
(
backgroundColor:
Color
(
0xFFE74C3C
),
backgroundColor:
Color
(
0xFFE74C3C
),
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment