fix:color correction

This commit is contained in:
imlildud
2026-05-22 19:02:50 -06:00
parent 28b7820641
commit f24087b134
5 changed files with 9 additions and 33 deletions

View File

@@ -46,8 +46,7 @@ class RegistroView extends StatelessWidget {
child: Column(
children: [
const SizedBox(height: 20),
_buildInput(Icons.person_outline, 'Nombre'),
_buildInput(Icons.person_outline, 'Apellidos'),
_buildInput(Icons.person_outline, 'Nombre Completo'),
_buildInput(Icons.email_outlined, 'Correo'),
_buildInput(Icons.lock_outline, 'Contraseña'),
const SizedBox(height: 50),

View File

@@ -1,4 +1,3 @@
// configuracion.dart
import 'package:flutter/material.dart';
import 'rutas.dart';
@@ -12,7 +11,6 @@ class ConfiguracionView extends StatelessWidget {
child: SafeArea(
child: Column(
children: [
// AppBar personalizado
Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 16),
@@ -33,7 +31,6 @@ class ConfiguracionView extends StatelessWidget {
textAlign: TextAlign.center,
),
),
// Contenido
Expanded(
child: Padding(
padding: const EdgeInsets.all(20.0),

View File

@@ -6,7 +6,6 @@ class LoginView extends StatelessWidget {
const LoginView({super.key});
final Color colorAzul = const Color(0xFF0F0D38);
final Color colorVerde = const Color(0xFF2E4D31);
@override
Widget build(BuildContext context) {
@@ -20,7 +19,7 @@ class LoginView extends StatelessWidget {
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.white, size: 30),
onPressed: () {
Navigator.pop(context); // Regresar al registro
Navigator.pop(context);
},
),
),
@@ -28,18 +27,7 @@ class LoginView extends StatelessWidget {
padding: const EdgeInsets.all(30.0),
child: Column(
children: [
const SizedBox(height: 50),
// Icono de usuario grande
Container(
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: colorAzul.withOpacity(0.1),
border: Border.all(color: colorVerde, width: 3),
),
child: const Icon(Icons.person, size: 80, color: colorAzul),
),
const SizedBox(height: 50),
const SizedBox(height: 80), // Espacio inicial sin ícono
// Campo de Correo
_buildInput(Icons.email_outlined, 'Correo electrónico', obscureText: false),
const SizedBox(height: 20),
@@ -52,13 +40,11 @@ class LoginView extends StatelessWidget {
// Botón Iniciar Sesión
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: colorVerde,
backgroundColor: colorAzul,
minimumSize: const Size(double.infinity, 55),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
),
onPressed: () {
// Validaciones básicas
// Por ahora navega directamente a MainScreen
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => const MainScreen()),
@@ -78,7 +64,6 @@ class LoginView extends StatelessWidget {
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
),
onPressed: () {
// Regresar al registro
Navigator.pop(context);
},
child: Text(
@@ -111,15 +96,15 @@ class LoginView extends StatelessWidget {
obscureText: obscureText,
decoration: InputDecoration(
hintText: hint,
hintStyle: TextStyle(color: colorVerde.withOpacity(0.5), fontWeight: FontWeight.bold, fontSize: 22),
hintStyle: TextStyle(color: colorAzul.withOpacity(0.5), fontWeight: FontWeight.bold, fontSize: 22),
contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(30),
borderSide: BorderSide(color: colorVerde, width: 4),
borderSide: BorderSide(color: colorAzul, width: 4),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(30),
borderSide: BorderSide(color: colorAzul, width: 4),
borderSide: const BorderSide(color: colorAzul, width: 4),
),
),
),

View File

@@ -19,7 +19,6 @@ class CustomNavBar extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
// BOTÓN DOMICILIOS
_buildNavButton(
index: 0,
currentIndex: currentIndex,
@@ -28,8 +27,6 @@ class CustomNavBar extends StatelessWidget {
label: 'Domicilios',
onTap: onTap,
),
// BOTÓN RUTAS (HORARIOS)
_buildNavButton(
index: 1,
currentIndex: currentIndex,
@@ -38,8 +35,6 @@ class CustomNavBar extends StatelessWidget {
label: 'Rutas',
onTap: onTap,
),
// BOTÓN CONFIGURACIÓN
_buildNavButton(
index: 2,
currentIndex: currentIndex,

View File

@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
const Color colorVerde = Color(0xFF2E4D31);
const Color colorAzul = Color(0xFF0F0D38);
const Color colorAzul = Color(0xFF0F0D38);
const Color colorAzulClaro = Color(0xFF2A2A5E);