Commit 18b08a00 authored by Izol's avatar Izol

take out page phone validation #1

parent ec9d264e
......@@ -2586,38 +2586,9 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
2,
);
cardNumber = infoMap["cardNumber"];
name = infoMap["name"].toString().split("-")[0];
int lengthSplit =
infoMap["name"].toString().split("-").length;
String subPhone = "";
if (lengthSplit > 1) {
String fullPhone =
infoMap["name"].toString().split("-")[1].trim();
print("ini nomer telponnya $fullPhone");
subPhone = fullPhone.substring(
fullPhone.length - 4, fullPhone.length);
// Navigator.pop(context);
// _topUp(outletName, info);
phone4CharValidation(subPhone, infoCard, idle);
} else {
AwesomeDialog(
context: context,
dialogType: DialogType.error,
animType: AnimType.rightSlide,
headerAnimationLoop: true,
title: 'Nomor telepon tidak ditemukan !',
desc: "phone number not found !",
btnOkOnPress: () {
setState(() {
isShowingDialog = false;
});
if (timer != null) timer?.cancel();
tapIdle();
},
btnOkIcon: Icons.cancel,
btnOkColor: Colors.red)
.show();
}
String outletName = PreferencesHelper.getString('outlet_name');
denom(outletName, infoM);
// TODO LOADING WHEN CLICK ISI ULANG ADD ADDED VALIDATION
},
child: const HomeServices(
iconUrl: 'assets/ic_topup.png',
......
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