minor change to show loading state when the search tab is loading on app start

This commit is contained in:
ashilkn 2023-12-20 20:39:33 +05:30
parent cc7d98efc3
commit bbec8ed636

View file

@ -76,7 +76,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
future: InheritedAllSectionsExamples.of(context)
.allSectionsExamplesFuture,
builder: (context, snapshot) {
if (snapshot.hasData) {
if (snapshot.hasData && snapshot.data!.isNotEmpty) {
if (snapshot.data!.every((element) => element.isEmpty)) {
return const Padding(
padding: EdgeInsets.only(bottom: 72),