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 { ...@@ -2397,35 +2397,22 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
isProcessCheck = false); isProcessCheck = false);
AwesomeDialog( AwesomeDialog(
context: context, context: context,
dialogType: dismissOnTouchOutside: false,
DialogType.error, dialogType: DialogType.error,
animType: AnimType animType: AnimType.rightSlide,
.rightSlide, autoHide: Duration(seconds: 3),
headerAnimationLoop: headerAnimationLoop: true,
true, title: 'Belum Terbayar , Silahkan Ulangi Kembali !',
title: desc: "Not paid yet , please try again !",
'Belum Terbayar , Silahkan Ulangi Kembali !', ).show().then((value){
desc: Navigator.of(context).pop();
"Not paid yet , please try again !", timer?.cancel();
btnOkOnPress: () { dataQris = null;
Navigator.pop( checkCountZero = false;
context); isShowingDialog = true;
setState(() { _showTap();
checkCountZero = tapDial();
false; });
timer?.cancel();
dataQris = null;
isShowingDialog =
true;
_showTap();
tapDial();
});
},
btnOkIcon:
Icons.cancel,
btnOkColor:
Colors.red)
.show();
} }
// isProcessCheck = false; // 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