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, + ), + ), ), - ), + ], ), ), ],