Commit 917ce335 authored by Izol's avatar Izol

added timeout close to home

parent 9031ae57
......@@ -2397,35 +2397,22 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
isProcessCheck = false);
AwesomeDialog(
context: context,
dialogType:
DialogType.error,
animType: AnimType
.rightSlide,
headerAnimationLoop:
true,
title:
'Belum Terbayar , Silahkan Ulangi Kembali !',
desc:
"Not paid yet , please try again !",
btnOkOnPress: () {
Navigator.pop(
context);
setState(() {
checkCountZero =
false;
dismissOnTouchOutside: false,
dialogType: DialogType.error,
animType: AnimType.rightSlide,
autoHide: Duration(seconds: 3),
headerAnimationLoop: true,
title: 'Belum Terbayar , Silahkan Ulangi Kembali !',
desc: "Not paid yet , please try again !",
).show().then((value){
Navigator.of(context).pop();
timer?.cancel();
dataQris = null;
isShowingDialog =
true;
checkCountZero = false;
isShowingDialog = true;
_showTap();
tapDial();
});
},
btnOkIcon:
Icons.cancel,
btnOkColor:
Colors.red)
.show();
}
// isProcessCheck = false;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment