only show 'No results found' on UI when no example queries can be found

This commit is contained in:
ashilkn 2023-10-26 14:20:40 +05:30
parent e1fc0d4ad1
commit 1840ccaac8

View file

@ -76,10 +76,12 @@ class _NoResultWidgetState extends State<NoResultWidget> {
style: textTheme.largeBold,
),
const SizedBox(height: 6),
Text(
searchTypeToQuerySuggestion.isNotEmpty
? Text(
"Modify your query, or try searching for",
style: textTheme.smallMuted,
),
)
: const SizedBox.shrink(),
],
),
const SizedBox(height: 20),