Minimum star count for GitHub/Codeberg search (#688)

This commit is contained in:
Imran Remtulla
2023-07-23 02:04:40 -04:00
parent 5cee527d6f
commit 41f102c0ce
18 changed files with 63 additions and 22 deletions

View File

@@ -182,7 +182,8 @@ class _ImportExportPageState extends State<ImportExportPage> {
[
GeneratedFormTextField('searchQuery',
label: tr('searchQuery'))
]
],
...source.searchQuerySettingFormItems.map((e) => [e])
],
);
});
@@ -191,8 +192,8 @@ class _ImportExportPageState extends State<ImportExportPage> {
setState(() {
importInProgress = true;
});
var urlsWithDescriptions =
await source.search(values['searchQuery'] as String);
var urlsWithDescriptions = await source
.search(values['searchQuery'] as String, querySettings: values);
if (urlsWithDescriptions.isNotEmpty) {
var selectedUrls =
// ignore: use_build_context_synchronously