mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-17 15:16:43 +02:00
Search UI improvements
This commit is contained in:
@ -283,6 +283,9 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
}
|
}
|
||||||
si++;
|
si++;
|
||||||
}
|
}
|
||||||
|
if (res.isEmpty) {
|
||||||
|
throw ObtainiumError(tr('noResults'));
|
||||||
|
}
|
||||||
List<String>? selectedUrls = res.isEmpty
|
List<String>? selectedUrls = res.isEmpty
|
||||||
? []
|
? []
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
@ -377,13 +380,15 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 16,
|
width: 16,
|
||||||
),
|
),
|
||||||
ElevatedButton(
|
searching
|
||||||
onPressed: searchQuery.isEmpty || doingSomething
|
? const CircularProgressIndicator()
|
||||||
? null
|
: ElevatedButton(
|
||||||
: () {
|
onPressed: searchQuery.isEmpty || doingSomething
|
||||||
runSearch();
|
? null
|
||||||
},
|
: () {
|
||||||
child: Text(tr('search')))
|
runSearch();
|
||||||
|
},
|
||||||
|
child: Text(tr('search')))
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user