From bc5602f478d5f13cba2c15e9ad2282bb19e358c2 Mon Sep 17 00:00:00 2001 From: Angel David Carlos Silva Date: Thu, 9 May 2024 11:35:02 -0600 Subject: [PATCH] Agregar cuadro de error al registrate --- .../lib/pages/register.dart | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/fronted/aplicacionrutasturisticas/lib/pages/register.dart b/fronted/aplicacionrutasturisticas/lib/pages/register.dart index 1da3bfe..e2c75bd 100644 --- a/fronted/aplicacionrutasturisticas/lib/pages/register.dart +++ b/fronted/aplicacionrutasturisticas/lib/pages/register.dart @@ -111,23 +111,30 @@ class RegistroPageState extends State { passc = passwordConfirmed.text; print("Haz presionado el boton \n"); - print(nom + - " " + - ape + - ' ' + - ema + - ' ' + - pass + - ' ' + - passc + - " \n "); + print(nom + " " + ape + ' ' + ema + ' ' + pass + ' ' + passc + " \n "); if (pass == passc) { - Registro_Datos(nom, ape, ema, pass); + Registro_Datos(nom, ape, ema, pass); context.goNamed("LoginPage"); } else { print("La contraseƱa es incorrecta"); + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return Container( + child: Padding( + padding: const EdgeInsets.all(32), + child: Column( + children: [ + Text( + "La contraseƱa es incorrecta", + textAlign: TextAlign.center, + style: TextStyle(fontSize: 20), + ) + ], + ), + )); + }); } - } } -- GitLab