diff --git a/lib/screens/patients/patient_search_screen.dart b/lib/screens/patients/patient_search_screen.dart index 60ec80e3..7915a168 100644 --- a/lib/screens/patients/patient_search_screen.dart +++ b/lib/screens/patients/patient_search_screen.dart @@ -42,6 +42,7 @@ class _PatientSearchScreenState extends State { String itemText2 = ''; final GlobalKey _formKey = GlobalKey(); bool _autoValidate = false; + bool onlyArrived = false; var _patientSearchFormValues = PatientModel( FirstName: "0", @@ -502,10 +503,14 @@ class _PatientSearchScreenState extends State { height: 25, width: 25, child: Checkbox( - value: true, + value: onlyArrived, checkColor: HexColor("#2A930A"), activeColor: Colors.white, - onChanged: (bool newValue) {}), + onChanged: (bool newValue) { + setState(() { + onlyArrived = newValue; + }); + }), ), SizedBox( width: 12,