Commit e7cf6543 authored by Izol's avatar Izol

added auto confirm verification succes phone validation

parent 9456f537
...@@ -1245,27 +1245,25 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback { ...@@ -1245,27 +1245,25 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
if (subPhone == num) { if (subPhone == num) {
AwesomeDialog( AwesomeDialog(
context: context, context: context,
autoHide: Duration(seconds: 2),
dialogType: DialogType.success, dialogType: DialogType.success,
dismissOnTouchOutside: false, dismissOnTouchOutside: false,
animType: AnimType.rightSlide, animType: AnimType.rightSlide,
headerAnimationLoop: true, headerAnimationLoop: true,
title: 'Berhasil verifikasi', title: 'Berhasil verifikasi',
desc: "verification success", desc: "verification success",
btnOkOnPress: () {
if (timer != null) timer?.cancel();
tapIdle();
if (mounted) {
num = "";
Navigator.of(context,
rootNavigator: true)
.pop();
denom(outletName, info);
}
},
btnOkIcon: Icons.check, btnOkIcon: Icons.check,
btnOkColor: Colors.green) btnOkColor: Colors.green)
.show(); .show().then((value) {
if (timer != null) timer?.cancel();
tapIdle();
if (mounted) {
num = "";
Navigator.of(context, rootNavigator: true).pop();
denom(outletName, info);
}
});
} else { } else {
AwesomeDialog( AwesomeDialog(
context: context, context: context,
......
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