Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dolan SelfService Topup
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Faizol
Dolan SelfService Topup
Commits
9456f537
Commit
9456f537
authored
Apr 27, 2023
by
Izol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto confrim in phone validation
- try to handle after topup timer
parent
81906085
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
40 deletions
+51
-40
home_page.dart
lib/ui/pages/home_page.dart
+51
-40
No files found.
lib/ui/pages/home_page.dart
View file @
9456f537
...
...
@@ -511,7 +511,8 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
context:
context
,
dialogType:
DialogType
.
success
,
animType:
AnimType
.
rightSlide
,
autoHide:
Duration
(
seconds:
5
),
dismissOnTouchOutside:
false
,
// autoHide: Duration(seconds: int.parse(idle)),
headerAnimationLoop:
true
,
title:
'Isi Ulang Anda Berhasil, Saldo Anda Saat Ini
$balance
'
,
titleTextStyle:
blackTextStyle
.
copyWith
(
...
...
@@ -523,8 +524,11 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
fontSize:
18
,
fontWeight:
medium
,
),
).
show
();
// isShowingDialog = true;
infoM
=
await
StartService
.
print
(
info
,
companyName
.
split
(
"-"
)[
0
],
...
...
@@ -1232,45 +1236,52 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
tapIdle
();
num
=
pin
;
});
// print("Completed: $pin");
// print("Completed: $subPhone");
// String outletName =
// PreferencesHelper.getString('outlet_name');
// if (subPhone == pin) {
// AwesomeDialog(
// context: context,
// dialogType: DialogType.success,
// animType: AnimType.rightSlide,
// headerAnimationLoop: true,
// title: 'Berhasil verifikasi',
// desc: "verification success",
// btnOkOnPress: () {
// if (mounted) {
// Navigator.of(context,
// rootNavigator: true)
// .pop();
// denom(outletName, info);
// }
// },
// btnOkIcon: Icons.check,
// btnOkColor: Colors.green)
// .show();
// } else {
// AwesomeDialog(
// context: context,
// dialogType: DialogType.error,
// animType: AnimType.rightSlide,
// headerAnimationLoop: true,
// title:
// 'Pastikan nomor Anda sesuai !',
// desc:
// "Make sure your number matches !",
// btnOkOnPress: () {},
// btnOkIcon: Icons.cancel,
// btnOkColor: Colors.red)
// .show();
// }
if
(
timer
!=
null
)
timer
?.
cancel
();
tapIdle
();
print
(
"Completed:
$num
"
);
print
(
"Completed:
$subPhone
"
);
String
outletName
=
PreferencesHelper
.
getString
(
'outlet_name'
);
if
(
subPhone
==
num
)
{
AwesomeDialog
(
context:
context
,
dialogType:
DialogType
.
success
,
dismissOnTouchOutside:
false
,
animType:
AnimType
.
rightSlide
,
headerAnimationLoop:
true
,
title:
'Berhasil verifikasi'
,
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
,
btnOkColor:
Colors
.
green
)
.
show
();
}
else
{
AwesomeDialog
(
context:
context
,
dialogType:
DialogType
.
error
,
animType:
AnimType
.
rightSlide
,
headerAnimationLoop:
true
,
title:
'Pastikan nomor Anda sesuai !'
,
desc:
"Make sure your number matches !"
,
btnOkOnPress:
()
{
if
(
timer
!=
null
)
timer
?.
cancel
();
tapIdle
();
},
btnOkIcon:
Icons
.
cancel
,
btnOkColor:
Colors
.
red
)
.
show
();
}
},
),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment