feat: Agente Ventas SIGMAC — app de rutas y pedidos de campo

App Flutter 2.11 para vendedores de ruta de Telcotronics.
Incluye ruta del día con mapa custom, catálogo, pedidos CRUD,
firma digital, scanner QR/barcode, selector de clientes escalable,
notificaciones in-app y soporte multiplataforma (Android + Linux desktop).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-06-14 09:18:18 -05:00
co-authored by Claude Sonnet 4.6
commit 4a4113ec59
162 changed files with 11871 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'providers/app_provider.dart';
import 'theme/app_theme.dart';
import 'screens/login/login_screen.dart';
import 'screens/main_shell.dart';
class PedidosApp extends StatelessWidget {
final GlobalKey<NavigatorState> navigatorKey;
const PedidosApp({Key? key, required this.navigatorKey}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Agente Ventas SIGMAC',
debugShowCheckedModeBanner: false,
theme: AppTheme.light,
navigatorKey: navigatorKey,
home: Consumer<AppProvider>(
builder: (_, provider, __) {
if (provider.loading) return const _LoadingScreen();
return provider.isLoggedIn ? const MainShell() : const LoginScreen();
},
),
);
}
}
class _LoadingScreen extends StatelessWidget {
const _LoadingScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppTheme.primaryColor,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(22),
child: Image.asset('assets/icon/icon.png', width: 80, height: 80),
),
const SizedBox(height: 20),
const Text(
'Agente Ventas',
style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold, color: Colors.white),
),
const SizedBox(height: 4),
Text(
'by SIGMAC',
style: TextStyle(fontSize: 12, color: Colors.white.withOpacity(0.6), letterSpacing: 2.0),
),
const SizedBox(height: 40),
const Text('Cargando datos...', style: TextStyle(color: Colors.white70, fontSize: 13)),
],
),
),
);
}
}