fix:color correction
This commit is contained in:
@@ -46,8 +46,7 @@ class RegistroView extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
_buildInput(Icons.person_outline, 'Nombre'),
|
_buildInput(Icons.person_outline, 'Nombre Completo'),
|
||||||
_buildInput(Icons.person_outline, 'Apellidos'),
|
|
||||||
_buildInput(Icons.email_outlined, 'Correo'),
|
_buildInput(Icons.email_outlined, 'Correo'),
|
||||||
_buildInput(Icons.lock_outline, 'Contraseña'),
|
_buildInput(Icons.lock_outline, 'Contraseña'),
|
||||||
const SizedBox(height: 50),
|
const SizedBox(height: 50),
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// configuracion.dart
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'rutas.dart';
|
import 'rutas.dart';
|
||||||
|
|
||||||
@@ -12,7 +11,6 @@ class ConfiguracionView extends StatelessWidget {
|
|||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
// AppBar personalizado
|
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 16),
|
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 16),
|
||||||
@@ -33,7 +31,6 @@ class ConfiguracionView extends StatelessWidget {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Contenido
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: const EdgeInsets.all(20.0),
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ class LoginView extends StatelessWidget {
|
|||||||
const LoginView({super.key});
|
const LoginView({super.key});
|
||||||
|
|
||||||
final Color colorAzul = const Color(0xFF0F0D38);
|
final Color colorAzul = const Color(0xFF0F0D38);
|
||||||
final Color colorVerde = const Color(0xFF2E4D31);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -20,7 +19,7 @@ class LoginView extends StatelessWidget {
|
|||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back, color: Colors.white, size: 30),
|
icon: const Icon(Icons.arrow_back, color: Colors.white, size: 30),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context); // Regresar al registro
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -28,18 +27,7 @@ class LoginView extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(30.0),
|
padding: const EdgeInsets.all(30.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 50),
|
const SizedBox(height: 80), // Espacio inicial sin ícono
|
||||||
// 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),
|
|
||||||
// Campo de Correo
|
// Campo de Correo
|
||||||
_buildInput(Icons.email_outlined, 'Correo electrónico', obscureText: false),
|
_buildInput(Icons.email_outlined, 'Correo electrónico', obscureText: false),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
@@ -52,13 +40,11 @@ class LoginView extends StatelessWidget {
|
|||||||
// Botón Iniciar Sesión
|
// Botón Iniciar Sesión
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: colorVerde,
|
backgroundColor: colorAzul,
|
||||||
minimumSize: const Size(double.infinity, 55),
|
minimumSize: const Size(double.infinity, 55),
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// Validaciones básicas
|
|
||||||
// Por ahora navega directamente a MainScreen
|
|
||||||
Navigator.pushReplacement(
|
Navigator.pushReplacement(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(builder: (context) => const MainScreen()),
|
MaterialPageRoute(builder: (context) => const MainScreen()),
|
||||||
@@ -78,7 +64,6 @@ class LoginView extends StatelessWidget {
|
|||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// Regresar al registro
|
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -111,15 +96,15 @@ class LoginView extends StatelessWidget {
|
|||||||
obscureText: obscureText,
|
obscureText: obscureText,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: hint,
|
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),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(30),
|
borderRadius: BorderRadius.circular(30),
|
||||||
borderSide: BorderSide(color: colorVerde, width: 4),
|
borderSide: BorderSide(color: colorAzul, width: 4),
|
||||||
),
|
),
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(30),
|
borderRadius: BorderRadius.circular(30),
|
||||||
borderSide: BorderSide(color: colorAzul, width: 4),
|
borderSide: const BorderSide(color: colorAzul, width: 4),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class CustomNavBar extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
// BOTÓN DOMICILIOS
|
|
||||||
_buildNavButton(
|
_buildNavButton(
|
||||||
index: 0,
|
index: 0,
|
||||||
currentIndex: currentIndex,
|
currentIndex: currentIndex,
|
||||||
@@ -28,8 +27,6 @@ class CustomNavBar extends StatelessWidget {
|
|||||||
label: 'Domicilios',
|
label: 'Domicilios',
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
),
|
),
|
||||||
|
|
||||||
// BOTÓN RUTAS (HORARIOS)
|
|
||||||
_buildNavButton(
|
_buildNavButton(
|
||||||
index: 1,
|
index: 1,
|
||||||
currentIndex: currentIndex,
|
currentIndex: currentIndex,
|
||||||
@@ -38,8 +35,6 @@ class CustomNavBar extends StatelessWidget {
|
|||||||
label: 'Rutas',
|
label: 'Rutas',
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
),
|
),
|
||||||
|
|
||||||
// BOTÓN CONFIGURACIÓN
|
|
||||||
_buildNavButton(
|
_buildNavButton(
|
||||||
index: 2,
|
index: 2,
|
||||||
currentIndex: currentIndex,
|
currentIndex: currentIndex,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
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);
|
||||||
Reference in New Issue
Block a user