Skip to content

Commit a5b08e5

Browse files
authored
fix/Snooze-duration-scroll-issue (#767)
1 parent 8c236b8 commit a5b08e5

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,25 @@ class SnoozeDurationTile extends StatelessWidget {
4848
mainAxisAlignment: MainAxisAlignment.center,
4949
crossAxisAlignment: CrossAxisAlignment.center,
5050
children: [
51-
NumberPicker(
52-
value: controller.snoozeDuration.value <= 0
53-
? 1
54-
: controller.snoozeDuration
55-
.value,
56-
minValue: 1,
57-
maxValue: 1440,
58-
onChanged: (value) {
59-
Utils.hapticFeedback();
60-
controller.snoozeDuration.value = value;
61-
},
51+
Obx(
52+
() => NumberPicker(
53+
value: controller.snoozeDuration.value <= 0
54+
? 1
55+
: controller.snoozeDuration.value,
56+
minValue: 1,
57+
maxValue: 60,
58+
onChanged: (value) {
59+
Utils.hapticFeedback();
60+
controller.snoozeDuration.value = value;
61+
},
62+
),
6263
),
63-
Text(
64-
controller.snoozeDuration.value > 1
65-
? 'minutes'.tr
66-
: 'minute'.tr,
64+
Obx(
65+
() => Text(
66+
controller.snoozeDuration.value > 1
67+
? 'minutes'.tr
68+
: 'minute'.tr,
69+
),
6770
),
6871
],
6972
),

0 commit comments

Comments
 (0)