This commit is contained in:
Felipe
2023-11-03 14:56:33 -05:00
parent c682885653
commit 97b0ae939b
2 changed files with 8 additions and 11 deletions
+8 -10
View File
@@ -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,