fix master key word

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

@ -84,13 +84,9 @@ 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:
widget.isServiceSelected(historyInfo),
activeColor: Colors.red[800],
onChanged: (bool newValue) {
setState(() { setState(() {
if (widget if (widget
.isServiceSelected(historyInfo)) { .isServiceSelected(historyInfo)) {
@ -99,6 +95,23 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
widget.addHistory(historyInfo); 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( Expanded(
child: Padding( child: Padding(
@ -115,6 +128,7 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
), ),
], ],
), ),
),
// DividerWithSpacesAround(), // DividerWithSpacesAround(),
], ],
); );

Loading…
Cancel
Save