numero update
This commit is contained in:
+28
-33
@@ -99,8 +99,21 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
ButtonBottom(
|
||||
formKey: _formKey, completePhoneNumber: completePhoneNumber),
|
||||
PrimaryButtom(
|
||||
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 GestureBottom(),
|
||||
const SizedBox(height: 20),
|
||||
@@ -211,37 +224,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
ButtonBottom(
|
||||
formKey: _formKey,
|
||||
completePhoneNumber: completePhoneNumber),
|
||||
const SizedBox(height: 20),
|
||||
const GestureBottom(),
|
||||
const SizedBox(height: 20),
|
||||
const RichTxTBottom(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
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(
|
||||
PrimaryButtom(
|
||||
onPressed: () {
|
||||
if (_formKey.currentState!.validate()) {
|
||||
PhoneAuthController.instance.phoneAuthentication(
|
||||
@@ -255,6 +238,18 @@ class ButtonBottom extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
label: 'Enviar código',
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const GestureBottom(),
|
||||
const SizedBox(height: 20),
|
||||
const RichTxTBottom(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user