boton para cambiar contraseña

This commit is contained in:
Felipe
2023-10-25 09:53:05 -05:00
parent c9deda8f97
commit 2980407952
+35 -2
View File
@@ -522,9 +522,40 @@ 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(
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,
),
),
),
const SizedBox(height: 40),
ElevatedButton(
onPressed: () async { onPressed: () async {
if (_formKey.currentState!.validate()) { if (_formKey.currentState!.validate()) {
await updateInfo(); await updateInfo();
@@ -547,6 +578,8 @@ class _ProfileScreenState extends State<ProfileScreen> {
), ),
), ),
), ),
],
),
), ),
], ],
), ),