Use SizedBox() as a no-op
Opened this issue · 0 comments
rapPayne commented
When you don't want to show a "nothing", render a SizedBox().
For instance,
if (snapshot.connectionState == ConnectionState.none) {
return const SizedBox();
} else if (snapshot.hasData) {
return someOtherWidgets;
}