bug fixed

This commit is contained in:
nutchayut
2025-01-07 15:02:31 +07:00
parent f16e5f491a
commit 4f344e5e00
2634 changed files with 46314 additions and 9884 deletions

View File

@@ -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: () {