Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3811b026e6821e1b6dff5bf9c34f5f7f38f1f74d
  • Loading branch information
Madari Developers committed Jan 5, 2025
1 parent 2a0e255 commit c38cd84
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions lib/pages/search_tab.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,29 @@ class _SearchPageState extends State<SearchPage> {
final List<LibraryRecord> records = [];

for (final item in record) {
final result =
await BaseConnectionService.connectionByIdRaw(item.connection);
Future.microtask(() async {
final result =
await BaseConnectionService.connectionByIdRaw(item.connection);

final service = BaseConnectionService.connectionById(result);
final service = BaseConnectionService.connectionById(result);

final filters = await service.getFilters(item);
final filters = await service.getFilters(item);

final hasFilter = filters.where((item) {
return item.title == "search";
}).isNotEmpty;
final hasFilter = filters.where((item) {
return item.title == "search";
}).isNotEmpty;

if (hasFilter) {
records.add(item);
if (mounted) {
searchLibrariesList = LibraryRecordResponse(
data: records,
);
if (hasFilter) {
records.add(item);
if (mounted) {
searchLibrariesList = LibraryRecordResponse(
data: records,
);

setState(() {});
setState(() {});
}
}
}
});
}

searchLibrariesList = LibraryRecordResponse(
Expand Down

0 comments on commit c38cd84

Please sign in to comment.