Search UI improvements

This commit is contained in:
Imran Remtulla
2023-05-12 18:00:21 -04:00
parent 0673e90dff
commit b196715d60

View File

@ -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')))
], ],
); );