diff --git a/fronted/aplicacionrutasturisticas/lib/pages/register.dart b/fronted/aplicacionrutasturisticas/lib/pages/register.dart index 1da3bfe2fbd5f28e325c2530611949d9d060a12a..e2c75bd8f0044a4ade55b7049d4852fefecd2141 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), + ) + ], + ), + )); + }); } - } }