Commit 40dad977 authored by Izol's avatar Izol

handle cache qris under 2 seconds

parent e7f87570
......@@ -604,7 +604,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
isShowingDialog = true;
trxId = "";
reffNo = "";
dataQris == null;
isShowingDialog = true;
amount = "";
_showTap();
tapDial();
});
......@@ -646,6 +648,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
});
isShowingDialog = true;
dataQris == null;
amount = "";
StartService.print(
prevInfoCard,
companyName.split("-")[0],
......@@ -2121,7 +2124,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
context: context,
builder: (context) {
return StatefulBuilder(builder: (context, StateSetter setState) {
Future.delayed(Duration(seconds: 2), () {
print("is process get $isProcessGet");
if (!isProcessGet) {
isProcessGet = true;
......@@ -2131,7 +2133,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
});
});
}
});
return Container(
padding:
const EdgeInsets.symmetric(horizontal: 150, vertical: 30),
......
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