diff --git a/fronted/aplicacionrutasturisticas/lib/pages/login.dart b/fronted/aplicacionrutasturisticas/lib/pages/login.dart index f67ee8990ed810522cb8862596174a4ee173c295..fd62a7a6cec91600f0128f4a7982136168fadb6e 100644 --- a/fronted/aplicacionrutasturisticas/lib/pages/login.dart +++ b/fronted/aplicacionrutasturisticas/lib/pages/login.dart @@ -62,11 +62,13 @@ class _TextFielEjemploState extends State { onPression: botonIniciaSesion, )), SizedBox(height: 20), - ColoredBox( - color: Colors.white, - child: HacerTextButtons( - texto: "Registrarte", onPression: botonRegistrar), - ) + Row( + children: [ + const Text(" ¿Nuevo en la aplicacion?"), + HacerTextButtons( + texto: "Registrarte", onPression: botonRegistrar) + ], + ), ], ), ), diff --git a/fronted/aplicacionrutasturisticas/lib/pages/start_page.dart b/fronted/aplicacionrutasturisticas/lib/pages/start_page.dart index 8ce553333194b819e64c970632859cc90ae43480..18138e9190dc53c090d8bf3cb8117bbcc8e5dd0f 100644 --- a/fronted/aplicacionrutasturisticas/lib/pages/start_page.dart +++ b/fronted/aplicacionrutasturisticas/lib/pages/start_page.dart @@ -1,3 +1,5 @@ +import 'dart:ui'; + import 'package:aplicacionrutasturisticas/utilerias/Images.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; @@ -12,14 +14,17 @@ class StartedPage extends StatefulWidget { class StartedPageState extends State { final String nombre = "Pancho"; - final String bienvenida = "Bienvenido !"; + final String bienvenida = "Bienvenido!"; @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( - title: Text(bienvenida), + title: Text(bienvenida, + style: const TextStyle(fontWeight: FontWeight.bold), + selectionColor: Colors.black, + textScaleFactor: lerpDouble(2, 2, 3)), ), body: Center( child: SingleChildScrollView( @@ -33,6 +38,7 @@ class StartedPageState extends State { onTap: buttonCrearRuta, imageURL: "https://www.eluniversal.com.mx/resizer/cyelyPh4C4pSbIBjHdO0WSF8FSs=/1100x666/cloudfront-us-east-1.images.arcpublishing.com/eluniversal/DWSWJNA4B5HDBKAXYD6YTFUUUI.jpg"), + //WithText(text: "Crear Ruta", onTap: buttonCrearRuta), const SizedBox(width: 20), ImagesWithTextNetwork( text: "Ruta Recomendada", diff --git a/fronted/aplicacionrutasturisticas/lib/utilerias/Images.dart b/fronted/aplicacionrutasturisticas/lib/utilerias/Images.dart index b567b0d9a749a633af471e00413ef4a210087aea..3167ecbf381a71299503ff5e938e2ce668520e87 100644 --- a/fronted/aplicacionrutasturisticas/lib/utilerias/Images.dart +++ b/fronted/aplicacionrutasturisticas/lib/utilerias/Images.dart @@ -40,3 +40,45 @@ class ImagesWithTextNetwork extends StatelessWidget { )); } } + +class WithText extends StatelessWidget { + final String text; + final VoidCallback? onTap; + + const WithText({ + Key? key, + required this.text, + required this.onTap, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return InkWell( + customBorder: Border.all( + color: Colors.black, + width: 500, + ), + onTap: onTap, + child: ClipRRect( + borderRadius: BorderRadius.circular(30), + child: Stack( + alignment: Alignment.center, + children: [ + Container( + width: 100, + height: 100, + color: Colors.white, + child: Center( + child: Text( + text, + style: TextStyle( + color: Colors.black, + ), + ), + ), + ) + ], + ), + )); + } +}