Commit 28446cca authored by Izol's avatar Izol

update version SS.21.WWW (NON SERVER BINDING)

parent f7b14f68
sdk.dir=/Users/macbookpro/Library/Android/sdk
flutter.sdk=/Users/macbookpro/Developer/flutter
flutter.buildMode=debug
flutter.versionName=SS.20.WWW
flutter.versionCode=13
\ No newline at end of file
flutter.versionName=SS.21.WWW
flutter.versionCode=14
\ No newline at end of file
......@@ -680,9 +680,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
animType: AnimType.rightSlide,
headerAnimationLoop: true,
title:
'Wristband tidak sama ! tempelkan wristband sebelumnya',
'Wristband tidak sama ! tempelkan wristband sebelumnya\nLepaskan dan tetap simpan Gelang/Wristband anda di reader ${countMax}',
desc:
"Wristband are not the same! please put the previous wristband ${countMax}",
"Wristband are not the same! please put the previous wristband\nTake it off and keep your Bracelet/Wristband on the reader ${countMax}",
btnOkOnPress: () async {
if (timer != null) timer?.cancel();
if (countMax < int.parse(nilaiTap)) {
......@@ -2075,16 +2075,16 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
//button batalkan di showqris
TextButton(
onPressed: () async {
if (isProcessCheck) return;
setState(() => isProcessCheck = true);
try {
bool value = await _cekStatus();
if (value) {
print("pembayaran berhasil dilakukan");
showPop(approvalCode);
} else {
await AwesomeDialog(
bool result = await _cekStatus();
setState((){
if (result) {
print("pembayaran berhasil dilakukan");
showPop(approvalCode);
} else {
AwesomeDialog(
context: context,
dismissOnTouchOutside: false,
dialogType: DialogType.warning,
......@@ -2093,20 +2093,22 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
headerAnimationLoop: true,
title: 'Anda telah membatalkan transaksi',
desc: "You have canceled the transaction",
).show().then((value) {
Navigator.of(context).pop();
timer?.cancel();
dataQris = null;
checkCountZero = false;
isShowingDialog = true;
_showTap();
tapDial();
});
}
).show().then((value) {
Navigator.of(context).pop();
setState(() => isProcessCheck = false);
timer?.cancel();
dataQris = null;
checkCountZero = false;
isShowingDialog = true;
_showTap();
tapDial();
});
}
});
} catch (e) {
// Handle any errors that occur during _cekStatus()
} finally {
print("Error: $e");
setState(() => isProcessCheck = false);
// Handle any errors that occur during _cekStatus()
}
},
child: (isProcessCheck)
......@@ -2170,8 +2172,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
Navigator.pop(context);
showPop(approvalCode);
} else {
// isProcessCheck = false; // Hapus baris ini
setState(() => isProcessCheck = false); // Pindahkan baris ini ke bawah AwesomeDialog
AwesomeDialog(
context: context,
dialogType: DialogType.error,
......@@ -2182,7 +2182,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
btnOkOnPress: () {},
btnOkIcon: Icons.cancel,
btnOkColor: Colors.red,
).show();
).show().then((value) {
setState(() => isProcessCheck = false);
});
}
});
} catch (e) {
......
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