File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed
lib/app/modules/addOrUpdateAlarm/views Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -48,22 +48,25 @@ class SnoozeDurationTile extends StatelessWidget {
48
48
mainAxisAlignment: MainAxisAlignment .center,
49
49
crossAxisAlignment: CrossAxisAlignment .center,
50
50
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
+ ),
62
63
),
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
+ ),
67
70
),
68
71
],
69
72
),
You can’t perform that action at this time.
0 commit comments