I am curious about this. I have seen many example using Container()
for dummy hidden widget, for example, when loading has completed, then we setState(() { _isLoaded = true; });
.
So we can use the state like this, right?
return _isLoaded ? Container() : LoaderWidget();
Or maybe using SizedBox()
is actually better because it don't take much parameters and often used for padding anyway?
return _isLoaded ? SizedBox() : LoaderWidget();
Or am I wrong?