mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Search improvements (#388)
* Refactor search widget - visual improvements - Simplifications - Add refresh button - Improve search button * Track original search * fix BOM widget * Update release notes
This commit is contained in:
parent
23abcb48f2
commit
138cae2da0
19 changed files with 158 additions and 211 deletions
|
|
@ -36,14 +36,19 @@ class _CompanyListWidgetState extends RefreshableState<CompanyListWidget> {
|
|||
|
||||
@override
|
||||
Widget getBody(BuildContext context) {
|
||||
return PaginatedCompanyList(widget.filters, true);
|
||||
return PaginatedCompanyList(widget.title, widget.filters);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PaginatedCompanyList extends PaginatedSearchWidget {
|
||||
|
||||
const PaginatedCompanyList(Map<String, String> filters, bool showSearch) : super(filters: filters, showSearch: showSearch);
|
||||
const PaginatedCompanyList(this.companyTitle, Map<String, String> filters) : super(filters: filters);
|
||||
|
||||
final String companyTitle;
|
||||
|
||||
@override
|
||||
String get searchTitle => companyTitle;
|
||||
|
||||
@override
|
||||
_CompanyListState createState() => _CompanyListState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue