Skip to main content

Visibility

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
Visibility✗✗✗link
info

The widget accepts up to two children. The first is the main widget, the second (optional) is the replacement widget displayed when visible: false. If no replacement is provided, SizedBox.shrink() is used.

Usage​

Visibility(
&duit_attributes.VisibilityAttributes{
Visible: true,
MaintainState: false,
MaintainAnimation: false,
MaintainSize: false,
MaintainSemantics: false,
MaintainInteractivity: false,
},
"id",
false,
nil, //child
nil, //replacement (optional)
)