update
This commit is contained in:
@@ -171,21 +171,19 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
PrimaryButtom(
|
||||
onPressed: () {
|
||||
onPressed: () async {
|
||||
if (_formKey.currentState!.validate()) {
|
||||
PhoneAuthController.instance
|
||||
.phoneAuthentication(
|
||||
completePhoneNumber.trim(),
|
||||
)
|
||||
.then((value) => {
|
||||
Provider.of<UserProvider>(context, listen: false)
|
||||
.initUserProvider()
|
||||
});
|
||||
Get.to(
|
||||
PhoneAuthController.instance.phoneAuthentication(
|
||||
completePhoneNumber.trim(),
|
||||
);
|
||||
await Get.to(
|
||||
() => CodeValidationScreen(
|
||||
phoneNumber: completePhoneNumber.trim(),
|
||||
),
|
||||
);
|
||||
completePhoneNumber = '';
|
||||
Provider.of<UserProvider>(context, listen: false)
|
||||
.initUserProvider();
|
||||
}
|
||||
},
|
||||
isEnabled: _isChecked,
|
||||
|
||||
Reference in New Issue
Block a user