From 23f1222b46337dc586267bea74cff07e275e70f5 Mon Sep 17 00:00:00 2001 From: Angel David Carlos Silva Date: Thu, 9 May 2024 11:08:18 -0600 Subject: [PATCH] logien new --- .../lib/pages/login.dart | 12 +++--- .../lib/pages/start_page.dart | 10 ++++- .../lib/utilerias/Images.dart | 42 +++++++++++++++++++ 3 files changed, 57 insertions(+), 7 deletions(-) diff --git a/fronted/aplicacionrutasturisticas/lib/pages/login.dart b/fronted/aplicacionrutasturisticas/lib/pages/login.dart index f67ee89..fd62a7a 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 8ce5533..18138e9 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 b567b0d..3167ecb 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, + ), + ), + ), + ) + ], + ), + )); + } +} -- GitLab