minor change to show loading state when the search tab is loading on app start
This commit is contained in:
parent
cc7d98efc3
commit
bbec8ed636
|
@ -76,7 +76,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
|
||||||
future: InheritedAllSectionsExamples.of(context)
|
future: InheritedAllSectionsExamples.of(context)
|
||||||
.allSectionsExamplesFuture,
|
.allSectionsExamplesFuture,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData && snapshot.data!.isNotEmpty) {
|
||||||
if (snapshot.data!.every((element) => element.isEmpty)) {
|
if (snapshot.data!.every((element) => element.isEmpty)) {
|
||||||
return const Padding(
|
return const Padding(
|
||||||
padding: EdgeInsets.only(bottom: 72),
|
padding: EdgeInsets.only(bottom: 72),
|
||||||
|
|
Loading…
Reference in a new issue