added shoping and pesanan page
This commit is contained in:
@ -40,7 +40,7 @@ class InputInformasiDiriView extends StatelessWidget {
|
||||
),
|
||||
body: WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (model.backPressed) {
|
||||
if (model.easyLoading.backPressed == 1) {
|
||||
model.navigationService.navigateToMasukanNoHpView();
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -33,13 +33,13 @@ class InputInformasiDiriViewModel extends CustomBaseViewModel {
|
||||
}
|
||||
|
||||
goToLogin() async {
|
||||
backPressed = false;
|
||||
easyLoading.backPressed = 0;
|
||||
easyLoading.customLoading("Mendaftarkan Akun Anda");
|
||||
await Future.delayed(const Duration(seconds: 2));
|
||||
easyLoading.customLoading("Ke Halaman Login");
|
||||
await Future.delayed(const Duration(seconds: 2));
|
||||
easyLoading.dismissLoading();
|
||||
backPressed = true;
|
||||
easyLoading.backPressed = 1;
|
||||
notifyListeners();
|
||||
await navigationService.navigateToLoginUserView();
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ class MasukanNoHpView extends StatelessWidget {
|
||||
),
|
||||
body: WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (model.backPressed) {
|
||||
if (model.easyLoading.backPressed == 1) {
|
||||
model.navigationService.navigateToLoginUserView();
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -16,9 +16,9 @@ class MasukanNoHpViewModel extends CustomBaseViewModel {
|
||||
|
||||
selanjutnya() async {
|
||||
_easyloading.customLoading("Menghantar Kode OTP \nke WhatsApp Anda");
|
||||
backPressed = false;
|
||||
easyLoading.backPressed = 0;
|
||||
await Future.delayed(const Duration(seconds: 3));
|
||||
backPressed = true;
|
||||
easyLoading.backPressed = 1;
|
||||
notifyListeners();
|
||||
_easyloading.dismissLoading();
|
||||
await navigationService.navigateToVerifikasiNoHpView();
|
||||
|
||||
@ -36,7 +36,7 @@ class VerifikasiNoHpView extends StatelessWidget {
|
||||
),
|
||||
body: WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (model.backPressed) {
|
||||
if (model.easyLoading.backPressed == 1) {
|
||||
model.back();
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -9,11 +9,11 @@ class VerifikasiNoHpViewModel extends CustomBaseViewModel {
|
||||
Future<void> init() async {}
|
||||
|
||||
goToInputInformasiDiri() async {
|
||||
backPressed = false;
|
||||
easyLoading.backPressed = 0;
|
||||
easyLoading.customLoading("Ke Halaman Input Informasi Diri");
|
||||
await Future.delayed(const Duration(seconds: 3));
|
||||
easyLoading.dismissLoading();
|
||||
backPressed = true;
|
||||
easyLoading.backPressed = 1;
|
||||
notifyListeners();
|
||||
await navigationService.navigateToInputInformasiDiriView(
|
||||
noHp: "082293246583",
|
||||
|
||||
Reference in New Issue
Block a user