Co-authored-by: MENDOZA BALLARDO GAEL RICARDO <gael-meb123@users.noreply.github.com>

Co-authored-by: Azareth-Tr <Azareth-Tr@users.noreply.github.com>
Co-authored-by: eddgranados12 <eddgranados12@users.noreply.github.com>

vistas de mockup
This commit is contained in:
shinra32
2026-05-22 20:46:14 -06:00
parent 21a73162df
commit 3ef6a9220c
5 changed files with 882 additions and 41 deletions

View File

@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import '../theme/app_theme.dart';
import '../models/models.dart';
import '../widgets/widgets.dart' as w;
import 'admin_screen.dart';
import 'splash_screen.dart';
class ProfileScreen extends StatelessWidget {
@@ -70,6 +71,17 @@ class ProfileScreen extends StatelessWidget {
subtitle: 'Claro',
onTap: () {},
),
w.MenuTile(
icon: Icons.admin_panel_settings_outlined,
title: 'Panel de administración',
subtitle: 'Gestiona usuarios, rutas y camiones',
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (_) => const AdminScreen()),
);
},
),
const SizedBox(height: 16),
@@ -111,9 +123,7 @@ class ProfileScreen extends StatelessWidget {
'RutaVerde v1.0.0\nServicio de Limpia · Celaya, Gto.',
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 12,
color: AppTheme.textHint,
height: 1.6),
fontSize: 12, color: AppTheme.textHint, height: 1.6),
),
),
@@ -142,7 +152,8 @@ class ProfileScreen extends StatelessWidget {
actions: [
TextButton(
onPressed: () => Navigator.pop(ctx),
style: TextButton.styleFrom(foregroundColor: AppTheme.textSecondary),
style:
TextButton.styleFrom(foregroundColor: AppTheme.textSecondary),
child: const Text('Cancelar'),
),
TextButton(