modificaciones en el sistema

This commit is contained in:
Kimberly
2026-05-23 05:54:34 -06:00
parent 32fe398f4b
commit cca83f0012
8 changed files with 867 additions and 533 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'notificaciones_service.dart';
class PanelConfiguracionBottomSheet extends StatefulWidget {
final Function(String etiqueta, String direccion) onDomicilioGuardado;
@@ -125,7 +126,7 @@ class _PanelConfiguracionBottomSheetState extends State<PanelConfiguracionBottom
SwitchListTile(
title: const Text('Inicio de Ruta', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600)),
value: _inicioRuta,
activeColor: Colors.green[700],
activeThumbColor: Colors.green[700],
onChanged: (bool value) {
setState(() => _inicioRuta = value);
widget.onAlertasChanged(value, 'inicio');
@@ -134,7 +135,7 @@ class _PanelConfiguracionBottomSheetState extends State<PanelConfiguracionBottom
SwitchListTile(
title: const Text('Camión Próximo', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600)),
value: _aproximacion,
activeColor: Colors.green[700],
activeThumbColor: Colors.green[700],
onChanged: (bool value) {
setState(() => _aproximacion = value);
widget.onAlertasChanged(value, 'aproximacion');
@@ -143,7 +144,7 @@ class _PanelConfiguracionBottomSheetState extends State<PanelConfiguracionBottom
SwitchListTile(
title: const Text('Imprevistos y Retrasos', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600)),
value: _retrasosFallas,
activeColor: Colors.green[700],
activeThumbColor: Colors.green[700],
onChanged: (bool value) {
setState(() => _retrasosFallas = value);
widget.onAlertasChanged(value, 'retrasos');