|
|
|
|
@ -45,6 +45,7 @@ class _SearchAssetPageState extends State<SearchAssetPage> {
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
|
_searchController?.dispose();
|
|
|
|
|
_deviceProvider.searchReset();
|
|
|
|
|
super.dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -98,7 +99,7 @@ class _SearchAssetPageState extends State<SearchAssetPage> {
|
|
|
|
|
controller: _searchController,
|
|
|
|
|
textInputAction: TextInputAction.search,
|
|
|
|
|
labelText: "${context.translation.searchBy} ${searchBy[_selectedIndex]}",
|
|
|
|
|
onAction: _search,
|
|
|
|
|
//onAction: _search,
|
|
|
|
|
onChange: (text) {
|
|
|
|
|
_searchController.text = text;
|
|
|
|
|
_searchController.selection = TextSelection.fromPosition(TextPosition(offset: _searchController.text.length));
|
|
|
|
|
@ -160,7 +161,7 @@ class _SearchAssetPageState extends State<SearchAssetPage> {
|
|
|
|
|
_formKey.currentState.save();
|
|
|
|
|
_deviceProvider.searchReset();
|
|
|
|
|
showDialog(context: context, barrierDismissible: false, builder: (context) => const AppLazyLoading());
|
|
|
|
|
await _deviceProvider.getAssets(search: search, isSearchBy: true);
|
|
|
|
|
await _deviceProvider.getAssets(search: search, isSearchBy: true);
|
|
|
|
|
setState(() {
|
|
|
|
|
_searchableList.clear();
|
|
|
|
|
_searchableList.addAll(_deviceProvider.searchDevices);
|
|
|
|
|
|