Initial commit for driver_tripz
This commit is contained in:
@@ -83,7 +83,7 @@ class SmsSignupEgypt extends StatelessWidget {
|
||||
const SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
if (registerController.isSent)
|
||||
if (registerController.isOtpSent)
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Form(
|
||||
@@ -102,9 +102,9 @@ class SmsSignupEgypt extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: MyElevatedButton(
|
||||
onPressed: () async {
|
||||
!registerController.isSent
|
||||
!registerController.isOtpSent
|
||||
? await registerController.sendOtpMessage()
|
||||
: await registerController.verifySMSCode();
|
||||
: await registerController.verifyOtpAndRegister();
|
||||
},
|
||||
title: 'Submit'.tr,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user