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>

implementacion de login, vistas, correcion de errores en vista registro, domicilios
This commit is contained in:
shinra32
2026-05-22 23:07:24 -06:00
parent b4ee3e7b49
commit c91b6e2091
52 changed files with 3940 additions and 4368 deletions

View File

@@ -0,0 +1,53 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
class DriverShell extends StatefulWidget {
const DriverShell({super.key, required this.child});
final Widget child;
@override
State<DriverShell> createState() => _DriverShellState();
}
class _DriverShellState extends State<DriverShell> {
int _currentIndex = 0;
void _onTap(int index) {
setState(() {
_currentIndex = index;
});
switch (index) {
case 0:
context.go('/driver');
break;
case 1:
context.go('/driver/collections');
break;
case 2:
context.go('/driver/incident');
break;
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: widget.child,
bottomNavigationBar: BottomNavigationBar(
currentIndex: _currentIndex,
onTap: _onTap,
items: const [
BottomNavigationBarItem(icon: Icon(Icons.route), label: 'Mi Ruta'),
BottomNavigationBarItem(
icon: Icon(Icons.location_on),
label: 'Recolecciones',
),
BottomNavigationBarItem(
icon: Icon(Icons.warning),
label: 'Reportar Falla',
),
],
),
);
}
}

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class DriverCollectionsScreen extends StatelessWidget {
const DriverCollectionsScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Recolecciones')),
body: const Center(
child: Text(
'TODO: Driver Collections Screen - Lista de domicilios para marcar recolección',
),
),
);
}
}

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class DriverHomeScreen extends StatelessWidget {
const DriverHomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Mi Ruta')),
body: const Center(
child: Text(
'TODO: Driver Home Screen - Mostrar nombre de ruta, turno y estado',
),
),
);
}
}

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class DriverIncidentScreen extends StatelessWidget {
const DriverIncidentScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Reportar Incidente')),
body: const Center(
child: Text(
'TODO: Driver Incident Screen - Formulario para reportar falla mecánica',
),
),
);
}
}