add cartion filter and search

This commit is contained in:
tzw
2024-02-07 17:26:29 +06:30
parent 2d4cdb9620
commit caf20f4e67
39 changed files with 1274 additions and 1181 deletions

View File

@@ -47,11 +47,11 @@ class _CartonSelectionWidgetState extends State<CartonSelectionWidget> {
}
_init() {
var searchModel = context.read<CartonSelectionModel>();
searchModel.addDefaultCartons(widget.shipment.id!);
var model = context.read<CartonSelectionModel>();
model.addDefaultCartons(widget.shipment.id!);
_controller.text = searchModel.query;
_query = searchModel.query;
_controller.text = model.query;
_query = model.query;
if (mounted) {
setState(() {});
}
@@ -89,7 +89,6 @@ class _CartonSelectionWidgetState extends State<CartonSelectionWidget> {
final continueBtn = ContinueButton(
onTap: () {
if (selectedCartonList.isEmpty || searchResults.isEmpty) {
showMsgDialog(context, 'Error', "Please select the cartons");
return false;