File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
lib/app/modules/addOrUpdateAlarm/views Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,17 @@ class GuardianAngel extends StatelessWidget {
200
200
child: InkWell (
201
201
borderRadius: BorderRadius .circular (28 ),
202
202
onTap: () {
203
- controller.isGuardian.value = true ;
204
- Get .back ();
203
+ if (controller.contactTextEditingController.text.isNotEmpty) {
204
+ controller.guardian.value = controller.contactTextEditingController.text;
205
+ controller.isGuardian.value = true ;
206
+ Get .back ();
207
+ } else {
208
+ Get .snackbar (
209
+ 'Error' ,
210
+ 'Please enter a phone number' ,
211
+ snackPosition: SnackPosition .BOTTOM ,
212
+ );
213
+ }
205
214
},
206
215
child: Container (
207
216
decoration: BoxDecoration (
@@ -229,4 +238,4 @@ class GuardianAngel extends StatelessWidget {
229
238
),
230
239
);
231
240
}
232
- }
241
+ }
You can’t perform that action at this time.
0 commit comments