fix master key word

merge-requests/444/head
Elham Rababah 5 years ago
parent 0d42163034
commit fe39a22481

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

Loading…
Cancel
Save