From 298040795250d945b0756ddb01adcb0c491cbb86 Mon Sep 17 00:00:00 2001 From: Felipe Date: Wed, 25 Oct 2023 09:53:05 -0500 Subject: [PATCH] =?UTF-8?q?boton=20para=20cambiar=20contrase=C3=B1a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/screens/profile.dart | 75 ++++++++++++++++++++++++++---------- 1 file changed, 54 insertions(+), 21 deletions(-) diff --git a/lib/src/screens/profile.dart b/lib/src/screens/profile.dart index 53d4447..acfde20 100644 --- a/lib/src/screens/profile.dart +++ b/lib/src/screens/profile.dart @@ -522,30 +522,63 @@ class _ProfileScreenState extends State { ), Container( alignment: Alignment.bottomCenter, - margin: const EdgeInsets.only(top: 100), + margin: const EdgeInsets.only(top: 35), padding: const EdgeInsets.only(bottom: 30), - child: ElevatedButton( - onPressed: () async { - if (_formKey.currentState!.validate()) { - await updateInfo(); - } - }, - style: ElevatedButton.styleFrom( - backgroundColor: const Color(0xFF2BA4EC), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(50), + child: Column( + children: [ + ElevatedButton( + onPressed: () { + Navigator.push( + context, + CupertinoPageRoute( + builder: (BuildContext context) { + return NewPasswordScreen(); + }, + ), + ); + }, + 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, - minimumSize: const Size(200, 50), - ), - child: const Text( - 'Guardar', - style: TextStyle( - color: Colors.white, - fontWeight: FontWeight.bold, - fontSize: 17, + const SizedBox(height: 40), + ElevatedButton( + onPressed: () async { + if (_formKey.currentState!.validate()) { + await updateInfo(); + } + }, + style: ElevatedButton.styleFrom( + 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, + ), + ), ), - ), + ], ), ), ],