boton para cambiar contraseña
This commit is contained in:
@@ -522,30 +522,63 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
margin: const EdgeInsets.only(top: 100),
|
margin: const EdgeInsets.only(top: 35),
|
||||||
padding: const EdgeInsets.only(bottom: 30),
|
padding: const EdgeInsets.only(bottom: 30),
|
||||||
child: ElevatedButton(
|
child: Column(
|
||||||
onPressed: () async {
|
children: [
|
||||||
if (_formKey.currentState!.validate()) {
|
ElevatedButton(
|
||||||
await updateInfo();
|
onPressed: () {
|
||||||
}
|
Navigator.push(
|
||||||
},
|
context,
|
||||||
style: ElevatedButton.styleFrom(
|
CupertinoPageRoute(
|
||||||
backgroundColor: const Color(0xFF2BA4EC),
|
builder: (BuildContext context) {
|
||||||
shape: RoundedRectangleBorder(
|
return NewPasswordScreen();
|
||||||
borderRadius: BorderRadius.circular(50),
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
backgroundColor: const Color(0xFF2BA4EC),
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(50),
|
||||||
|
),
|
||||||
|
elevation: 0,
|
||||||
|
minimumSize: const Size(300, 45),
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Cambiar Contraseña',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 17,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
elevation: 0,
|
const SizedBox(height: 40),
|
||||||
minimumSize: const Size(200, 50),
|
ElevatedButton(
|
||||||
),
|
onPressed: () async {
|
||||||
child: const Text(
|
if (_formKey.currentState!.validate()) {
|
||||||
'Guardar',
|
await updateInfo();
|
||||||
style: TextStyle(
|
}
|
||||||
color: Colors.white,
|
},
|
||||||
fontWeight: FontWeight.bold,
|
style: ElevatedButton.styleFrom(
|
||||||
fontSize: 17,
|
backgroundColor: const Color(0xFF2BA4EC),
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(50),
|
||||||
|
),
|
||||||
|
elevation: 0,
|
||||||
|
minimumSize: const Size(200, 50),
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Guardar',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 17,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user