In Android, every single View subclass has a setVisibility() method that allows you modify the visibility of a View object
View
setVisibility()
The
Try the Offstage widget
Offstage
if attribute offstage:true the not occupy the physical space and invisible,
offstage:true
if attribute offstage:false it will occupy the physical space and visible
offstage:false
Offstage( offstage: true, child: Text("Visible"), ),