bug fixed
This commit is contained in:
@@ -24,6 +24,7 @@ import '../model/promotion_model.dart';
|
||||
import '../model/token_model.dart';
|
||||
import '../utils/color_custom.dart';
|
||||
import '../utils/utils.dart';
|
||||
import 'Setting.dart';
|
||||
|
||||
Profile? profile;
|
||||
String tokenAdmin = "";
|
||||
@@ -226,16 +227,9 @@ class _HomePageState extends State<HomePage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: _canPop, // <== set a bool var or set it to false
|
||||
onPopInvoked: (bool didPop) async {
|
||||
if (didPop) {
|
||||
return;
|
||||
}
|
||||
if (Navigator.of(context).canPop()) {
|
||||
Navigator.of(context).pop(context);
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
canPop: false,
|
||||
|
||||
child: Scaffold(
|
||||
body: SafeArea(
|
||||
child: SmartRefresher(
|
||||
onRefresh: () {
|
||||
@@ -265,6 +259,23 @@ class _HomePageState extends State<HomePage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
showModalBottomSheet<void>(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
useSafeArea: true,
|
||||
builder: (BuildContext context) {
|
||||
return SettingPage();
|
||||
});
|
||||
// clearProfile();
|
||||
},
|
||||
child: Icon(
|
||||
Icons.settings,
|
||||
size: 20,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user