|
|
|
@ -84,36 +84,50 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
|
|
|
|
|
children: items.map((historyInfo) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Checkbox(
|
|
|
|
|
value:
|
|
|
|
|
widget.isServiceSelected(historyInfo),
|
|
|
|
|
activeColor: Colors.red[800],
|
|
|
|
|
onChanged: (bool newValue) {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (widget
|
|
|
|
|
.isServiceSelected(historyInfo)) {
|
|
|
|
|
widget.removeHistory(historyInfo);
|
|
|
|
|
} else {
|
|
|
|
|
widget.addHistory(historyInfo);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 10, vertical: 0),
|
|
|
|
|
child: AppText(projectViewModel.isArabic
|
|
|
|
|
? historyInfo.nameAr!=""?historyInfo.nameAr:historyInfo.nameEn
|
|
|
|
|
: historyInfo.nameEn,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight:FontWeight.w600,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap:(){
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
if (widget
|
|
|
|
|
.isServiceSelected(historyInfo)) {
|
|
|
|
|
widget.removeHistory(historyInfo);
|
|
|
|
|
} else {
|
|
|
|
|
widget.addHistory(historyInfo);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Checkbox(
|
|
|
|
|
value:
|
|
|
|
|
widget.isServiceSelected(historyInfo),
|
|
|
|
|
activeColor: Colors.red[800],
|
|
|
|
|
onChanged: (bool newValue) {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// if (widget
|
|
|
|
|
// .isServiceSelected(historyInfo)) {
|
|
|
|
|
// widget.removeHistory(historyInfo);
|
|
|
|
|
// } else {
|
|
|
|
|
// widget.addHistory(historyInfo);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
}),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 10, vertical: 0),
|
|
|
|
|
child: AppText(projectViewModel.isArabic
|
|
|
|
|
? historyInfo.nameAr!=""?historyInfo.nameAr:historyInfo.nameEn
|
|
|
|
|
: historyInfo.nameEn,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight:FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// DividerWithSpacesAround(),
|
|
|
|
|
],
|
|
|
|
|