eliminados los snooze
This commit is contained in:
@@ -176,10 +176,6 @@ class _TarjetaAlarma extends StatelessWidget {
|
||||
icon: Icons.repeat_rounded,
|
||||
label: _programacion(alarma),
|
||||
),
|
||||
_InfoChip(
|
||||
icon: Icons.snooze_rounded,
|
||||
label: '${alarma.snoozeMinutos} min',
|
||||
),
|
||||
_InfoChip(
|
||||
icon: Icons.beach_access_rounded,
|
||||
label:
|
||||
@@ -323,7 +319,6 @@ class _EditorAlarmaSheetState extends State<_EditorAlarmaSheet> {
|
||||
late DateTime _fecha;
|
||||
late TipoProgramacionAlarma _tipo;
|
||||
late Set<int> _diasSemana;
|
||||
late int _snooze;
|
||||
late double _volumen;
|
||||
late int _fadeInSegundos;
|
||||
late bool _sonarEnVacaciones;
|
||||
@@ -346,7 +341,6 @@ class _EditorAlarmaSheetState extends State<_EditorAlarmaSheet> {
|
||||
_fecha = alarma?.fechaUnica ?? ahora;
|
||||
_tipo = alarma?.tipoProgramacion ?? TipoProgramacionAlarma.unica;
|
||||
_diasSemana = {...alarma?.diasSemana ?? const <int>[]};
|
||||
_snooze = alarma?.snoozeMinutos ?? 5;
|
||||
_volumen = alarma?.volumen ?? 0.85;
|
||||
_fadeInSegundos = ((alarma?.fadeInSegundos ?? 0).clamp(0, 60)) as int;
|
||||
_sonarEnVacaciones = alarma?.sonarEnVacaciones ?? true;
|
||||
@@ -481,21 +475,6 @@ class _EditorAlarmaSheetState extends State<_EditorAlarmaSheet> {
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 14),
|
||||
_SectionLabel(
|
||||
icon: 'assets/icons/alarmas/snooze_wave.png',
|
||||
text: 'Postponer',
|
||||
),
|
||||
SegmentedButton<int>(
|
||||
segments: const [
|
||||
ButtonSegment(value: 3, label: Text('3 min')),
|
||||
ButtonSegment(value: 5, label: Text('5 min')),
|
||||
ButtonSegment(value: 10, label: Text('10 min')),
|
||||
],
|
||||
selected: {_snooze},
|
||||
onSelectionChanged:
|
||||
(value) => setState(() => _snooze = value.first),
|
||||
),
|
||||
const SizedBox(height: 14),
|
||||
_SectionLabel(
|
||||
icon: 'assets/icons/alarmas/fallback_sound.png',
|
||||
text: 'Sonido y volumen',
|
||||
@@ -679,7 +658,7 @@ class _EditorAlarmaSheetState extends State<_EditorAlarmaSheet> {
|
||||
limpiarFechaUnica: _tipo != TipoProgramacionAlarma.unica,
|
||||
emisora: _emisora,
|
||||
sonarEnVacaciones: _sonarEnVacaciones,
|
||||
snoozeMinutos: _snooze,
|
||||
snoozeMinutos: existente?.snoozeMinutos ?? 5,
|
||||
volumen: _volumen,
|
||||
fadeInSegundos: _fadeInSegundos.clamp(0, 60),
|
||||
sonidoInterno: _sonidoInterno,
|
||||
|
||||
Reference in New Issue
Block a user