numero update
This commit is contained in:
+30
-35
@@ -99,8 +99,21 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
ButtonBottom(
|
PrimaryButtom(
|
||||||
formKey: _formKey, completePhoneNumber: completePhoneNumber),
|
onPressed: () {
|
||||||
|
if (_formKey.currentState!.validate()) {
|
||||||
|
PhoneAuthController.instance.phoneAuthentication(
|
||||||
|
completePhoneNumber.trim(),
|
||||||
|
);
|
||||||
|
Get.to(
|
||||||
|
() => CodeValidationScreen(
|
||||||
|
phoneNumber: completePhoneNumber.trim(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
label: 'Enviar código',
|
||||||
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
const GestureBottom(),
|
const GestureBottom(),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
@@ -211,9 +224,21 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
ButtonBottom(
|
PrimaryButtom(
|
||||||
formKey: _formKey,
|
onPressed: () {
|
||||||
completePhoneNumber: completePhoneNumber),
|
if (_formKey.currentState!.validate()) {
|
||||||
|
PhoneAuthController.instance.phoneAuthentication(
|
||||||
|
completePhoneNumber.trim(),
|
||||||
|
);
|
||||||
|
Get.to(
|
||||||
|
() => CodeValidationScreen(
|
||||||
|
phoneNumber: completePhoneNumber.trim(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
label: 'Enviar código',
|
||||||
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
const GestureBottom(),
|
const GestureBottom(),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
@@ -229,36 +254,6 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ButtonBottom extends StatelessWidget {
|
|
||||||
const ButtonBottom({
|
|
||||||
super.key,
|
|
||||||
required GlobalKey<FormState> formKey,
|
|
||||||
required this.completePhoneNumber,
|
|
||||||
}) : _formKey = formKey;
|
|
||||||
|
|
||||||
final GlobalKey<FormState> _formKey;
|
|
||||||
final String completePhoneNumber;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return PrimaryButtom(
|
|
||||||
onPressed: () {
|
|
||||||
if (_formKey.currentState!.validate()) {
|
|
||||||
PhoneAuthController.instance.phoneAuthentication(
|
|
||||||
completePhoneNumber.trim(),
|
|
||||||
);
|
|
||||||
Get.to(
|
|
||||||
() => CodeValidationScreen(
|
|
||||||
phoneNumber: completePhoneNumber.trim(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
label: 'Enviar código',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class GestureBottom extends StatelessWidget {
|
class GestureBottom extends StatelessWidget {
|
||||||
const GestureBottom({
|
const GestureBottom({
|
||||||
super.key,
|
super.key,
|
||||||
|
|||||||
Reference in New Issue
Block a user