Skip to content

Commit 98b12fe

Browse files
authored
Improve snooze duration ux (#792)
1 parent 5e78ee5 commit 98b12fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/app/modules/addOrUpdateAlarm/views/snooze_duration_tile.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ class SnoozeDurationTile extends StatelessWidget {
5151
Obx(
5252
() => NumberPicker(
5353
value: controller.snoozeDuration.value <= 0
54-
? 1
54+
? 0
5555
: controller.snoozeDuration.value,
56-
minValue: 1,
56+
minValue: 0,
5757
maxValue: 60,
5858
onChanged: (value) {
5959
Utils.hapticFeedback();
@@ -63,9 +63,11 @@ class SnoozeDurationTile extends StatelessWidget {
6363
),
6464
Obx(
6565
() => Text(
66-
controller.snoozeDuration.value > 1
66+
controller.snoozeDuration.value > 0
67+
? controller.snoozeDuration.value > 1
6768
? 'minutes'.tr
68-
: 'minute'.tr,
69+
: 'minute'.tr
70+
: 'Off'.tr,
6971
),
7072
),
7173
],

0 commit comments

Comments
 (0)