Commit b1f55a77 authored by Izol's avatar Izol

Update patch SS.13.WWW

parent 0df840c7
sdk.dir=/Users/macbookpro/Library/Android/sdk
flutter.sdk=/Users/macbookpro/Developer/flutter
flutter.buildMode=debug
flutter.versionName=SS.12.WWW
flutter.versionCode=5
\ No newline at end of file
flutter.versionName=SS.13.WWW
flutter.versionCode=6
\ No newline at end of file
......@@ -661,6 +661,36 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
"multioutletservicechargeamount");
String sc = PreferencesHelper.getString(
"multioutletservicecharge");
_getInfoBalance(info);
AwesomeDialog(
context: context,
dismissOnTouchOutside: false,
autoHide: Duration(seconds: 10),
dialogType: DialogType.error,
animType: AnimType.rightSlide,
headerAnimationLoop: true,
title:
'Transaksi isi ulang anda tidak berhasil\nsimpan bukti pembayaran untuk di tunjukkan kepada petugas',
titleTextStyle: blackTextStyle.copyWith(
fontSize: 20,
fontWeight: bold,
),
desc:
"Your top up transaction was not successful\nSave proof of payment to show to the officer",
descTextStyle: greyTextStyle.copyWith(
fontSize: 18,
fontWeight: light,
),
).show().then((value){
countMax = 0;
timer?.cancel();
isShowingDialog = true;
_showTap();
tapDial();
});
StartService.print(
prevInfoCard,
companyName.split("-")[0],
......@@ -677,26 +707,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
PreferencesHelper.getString("provider"),
'Gagal',
);
AwesomeDialog(
context: context,
dismissOnTouchOutside: false,
autoHide: Duration(seconds: 5),
dialogType: DialogType.error,
animType: AnimType.rightSlide,
headerAnimationLoop: true,
title:
'Transaksi anda gagal ! saldo tidak bertambah',
desc:
"Your transaction failed! Your balance did not increase.",
btnOkIcon: Icons.cancel,
btnOkColor: Colors.red)
.show().then((value){
countMax = 0;
timer?.cancel();
isShowingDialog = true;
_showTap();
tapDial();
});
// Navigator.pop(context);
},
btnOkIcon: Icons.cancel,
......@@ -763,17 +773,11 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
name = infoMap["name"].toString().split("-")[0];
Navigator.pop(context);
// Navigator.pop(context);
Future.delayed(Duration(seconds: int.parse(idle)), () {
if (timer != null) timer?.cancel();
isShowingDialog = false;
tapIdle();
});
// timer = Timer.periodic(Duration(seconds: int.parse(idle)),(timer){
// print("ini pesan waktu idle : $idle");
// _showTap();
// tapDial();
// });
}
});
}
......@@ -911,9 +915,18 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
context: context,
dialogType: DialogType.info,
animType: AnimType.rightSlide,
dismissOnTouchOutside: false,
headerAnimationLoop: true,
title: 'Pastikan Wristband Anda Tertempel Di Reader !',
titleTextStyle: blackTextStyle.copyWith(
fontSize: 20,
fontWeight: bold,
),
desc: "Make sure your wristband is attached to the reader !",
descTextStyle: greyTextStyle.copyWith(
fontSize: 18,
fontWeight: light,
),
btnOkOnPress: () {
tapBalance();
},
......@@ -923,7 +936,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
});
}
Future<void> _showTap() {
return showDialog<void>(
context: context,
......@@ -1315,10 +1327,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
fontWeight: bold,
),
desc: "Please wait a moment ...",
descTextStyle: blackTextStyle.copyWith(
descTextStyle: greyTextStyle.copyWith(
fontSize: 18,
color: Colors.green,
fontWeight: medium,
fontWeight: light,
),
).show().then((value) {
if(amountController!.text.isEmpty){
......@@ -1553,10 +1564,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
fontWeight: bold,
),
desc: "Please wait a moment ...",
descTextStyle: blackTextStyle.copyWith(
descTextStyle: greyTextStyle.copyWith(
fontSize: 18,
color: Colors.green,
fontWeight: medium,
fontWeight: light,
),
).show().then((value) {
if(amountController!.text.isEmpty){
......@@ -2416,6 +2426,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
deposit = CurrencyFormat.convertToIdr(infoMap["deposit"], 2);
cardNumber = infoMap["cardNumber"];
String outletName = PreferencesHelper.getString('outlet_name');
countMax += 1;
String nilaiTap = PreferencesHelper.getString('maxTap');
String newCardNumber = infoMap["cardNumber"];
AwesomeDialog(
context: context,
dialogType: DialogType.info,
......@@ -2429,10 +2442,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
fontWeight: bold,
),
desc: "Please wait a moment ...",
descTextStyle: blackTextStyle.copyWith(
descTextStyle: greyTextStyle.copyWith(
fontSize: 18,
color: Colors.green,
fontWeight: medium,
fontWeight: light,
),
).show().then((value) {
denom(outletName, infoCard);
......
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