|
|
|
|
@ -93,24 +93,22 @@ class _ProcedureListWidgetState extends State<ProcedureListWidget> {
|
|
|
|
|
historyInfo),
|
|
|
|
|
activeColor: Colors.red[800],
|
|
|
|
|
onChanged: (bool newValue) {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (widget.isEntityListSelected(
|
|
|
|
|
historyInfo)) {
|
|
|
|
|
widget
|
|
|
|
|
.removeHistory(historyInfo);
|
|
|
|
|
} else {
|
|
|
|
|
widget.addHistory(historyInfo);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
selectOption(historyInfo);
|
|
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 10, vertical: 0),
|
|
|
|
|
child: Texts(historyInfo.name,
|
|
|
|
|
variant: "bodyText",
|
|
|
|
|
bold: true,
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap:(){
|
|
|
|
|
selectOption(historyInfo);
|
|
|
|
|
},
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 10, vertical: 0),
|
|
|
|
|
child: Texts(historyInfo.name,
|
|
|
|
|
variant: "bodyText",
|
|
|
|
|
bold: true,
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -142,6 +140,19 @@ class _ProcedureListWidgetState extends State<ProcedureListWidget> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectOption(historyInfo){
|
|
|
|
|
setState(() {
|
|
|
|
|
if (widget.isEntityListSelected(
|
|
|
|
|
historyInfo)) {
|
|
|
|
|
widget
|
|
|
|
|
.removeHistory(historyInfo);
|
|
|
|
|
} else {
|
|
|
|
|
widget.addHistory(historyInfo);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void filterSearchResults(String query) {
|
|
|
|
|
List<CategoriseParentModel> dummySearchList = List();
|
|
|
|
|
dummySearchList.addAll(widget.masterList);
|
|
|
|
|
|