Commit e955111 1 parent ed3f3fd commit e955111 Copy full SHA for e955111
File tree 1 file changed +3
-3
lines changed
lib/app/modules/addOrUpdateAlarm/views
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class ScreenActivityTile extends StatelessWidget {
24
24
() => InkWell (
25
25
onTap: () {
26
26
Utils .hapticFeedback ();
27
- // storing the initial values
28
27
activityInterval = controller.activityInterval.value;
29
28
isActivityEnalbed = controller.isActivityenabled.value;
30
29
Get .defaultDialog (
@@ -50,7 +49,8 @@ class ScreenActivityTile extends StatelessWidget {
50
49
value: controller.useScreenActivity.value,
51
50
activeColor: ksecondaryColor,
52
51
onChanged: (value) {
53
- if (value == false )
52
+ controller.useScreenActivity.value = value;
53
+ if (! value)
54
54
controller.isActivityMonitorenabled.value = 0 ;
55
55
else
56
56
controller.isActivityMonitorenabled.value = 1 ;
@@ -119,7 +119,7 @@ class ScreenActivityTile extends StatelessWidget {
119
119
activeColor: ksecondaryColor,
120
120
onChanged: (value) {
121
121
controller.useScreenActivity.value = value;
122
- if (value == false )
122
+ if (! value)
123
123
controller.isActivityMonitorenabled.value = 0 ;
124
124
else
125
125
controller.isActivityMonitorenabled.value = 1 ;
You can’t perform that action at this time.
0 commit comments