modificaciones en el sistema
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user