Commit 039cef8c by tanghuan

bugfix

1 parent 6fce1ed7
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();
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!