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 039cef8c
authored
2026-01-27 17:01:14 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bugfix
1 parent
6fce1ed7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
lib/ui/pages/setting/account_page.dart
lib/ui/pages/setting/account_page.dart
View file @
039cef8
import
'package:appframe/bloc/setting/account_cubit.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'package:fluttertoast/fluttertoast.dart'
;
class
AccountPage
extends
StatelessWidget
{
const
AccountPage
({
super
.
key
});
...
...
@@ -150,7 +151,6 @@ class AccountPage extends StatelessWidget {
}
final
accountCubit
=
context
.
read
<
AccountCubit
>();
final
scaffoldMessenger
=
ScaffoldMessenger
.
of
(
context
);
bool
?
confirm
=
await
showDialog
<
bool
>(
context:
context
,
builder:
(
BuildContext
ctx
)
{
...
...
@@ -176,11 +176,17 @@ class AccountPage extends StatelessWidget {
);
if
(
confirm
==
true
)
{
scaffoldMessenger
.
showSnackBar
(
SnackBar
(
content:
Text
(
'已申请注销,等待流程处理'
),
backgroundColor:
Colors
.
green
,
),
// ScaffoldMessenger.of(context).showSnackBar(
// SnackBar(
// content: Text('已申请注销,等待流程处理'),
// backgroundColor: Colors.green,
// ),
// );
Fluttertoast
.
showToast
(
msg:
'已申请注销,等待流程处理'
,
backgroundColor:
Colors
.
green
,
toastLength:
Toast
.
LENGTH_LONG
,
gravity:
ToastGravity
.
BOTTOM
,
);
accountCubit
.
unbind
();
}
...
...
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