const
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import 'package:firebase_auth/firebase_auth.dart';
|
import 'package:firebase_auth/firebase_auth.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:prosappco/src/authentication/authentication_repository.dart';
|
|
||||||
|
|
||||||
class NewPhoneController extends GetxController {
|
class NewPhoneController extends GetxController {
|
||||||
final FirebaseAuth _auth = FirebaseAuth.instance;
|
final FirebaseAuth _auth = FirebaseAuth.instance;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
backgroundColor: Color(0xFFD6F4FF),
|
backgroundColor: const Color(0xFFD6F4FF),
|
||||||
body: Stack(
|
body: Stack(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@@ -40,7 +40,7 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(
|
icon: const Icon(
|
||||||
Icons.arrow_back,
|
Icons.arrow_back,
|
||||||
size: 30,
|
size: 30,
|
||||||
),
|
),
|
||||||
@@ -48,7 +48,7 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Text(
|
const Text(
|
||||||
'Validar código',
|
'Validar código',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFF262626),
|
color: Color(0xFF262626),
|
||||||
@@ -73,10 +73,10 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
fontSize: 18.0, color: Color(0xFF65676B))),
|
fontSize: 18.0, color: Color(0xFF65676B))),
|
||||||
)),
|
)),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(bottom: 20),
|
padding: const EdgeInsets.only(bottom: 20),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
const Expanded(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
@@ -89,15 +89,15 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
// Acción a realizar cuando se hace clic en el texto
|
// Acción a realizar cuando se hace clic en el texto
|
||||||
},
|
},
|
||||||
child: Text('Reenviar código'),
|
child: const Text('Reenviar código'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
const Align(
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 5),
|
padding: EdgeInsets.only(bottom: 5),
|
||||||
child: Text('Codigo',
|
child: Text('Codigo',
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style:
|
style:
|
||||||
@@ -105,7 +105,7 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(bottom: 20),
|
padding: const EdgeInsets.only(bottom: 20),
|
||||||
child: OtpTextField(
|
child: OtpTextField(
|
||||||
numberOfFields: 6,
|
numberOfFields: 6,
|
||||||
focusedBorderColor: Colors.blue,
|
focusedBorderColor: Colors.blue,
|
||||||
@@ -119,13 +119,22 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(bottom: 40),
|
padding: const EdgeInsets.only(bottom: 40),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
OTPController.instance.verifyOTP(otp);
|
OTPController.instance.verifyOTP(otp);
|
||||||
},
|
},
|
||||||
child: Text(
|
style: ElevatedButton.styleFrom(
|
||||||
|
backgroundColor: const Color(0xFF2BA4EC), // Color del botón
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(50), // Bordes redondeados
|
||||||
|
),
|
||||||
|
elevation: 0,
|
||||||
|
minimumSize: const Size(230, 60), // Tamaño mínimo del botón
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
'Validar código',
|
'Validar código',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@@ -133,15 +142,6 @@ class _NewNumberValidationScreenState extends State<NewNumberValidationScreen> {
|
|||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: ElevatedButton.styleFrom(
|
|
||||||
primary: Color(0xFF2BA4EC), // Color del botón
|
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius:
|
|
||||||
BorderRadius.circular(50), // Bordes redondeados
|
|
||||||
),
|
|
||||||
elevation: 0,
|
|
||||||
minimumSize: Size(230, 60), // Tamaño mínimo del botón
|
|
||||||
),
|
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
|
|||||||
Reference in New Issue
Block a user