Muslimin Ontong
Muslimin Ontong

Reputation: 1

How to hide other widget in flutter

When the text is focus the other widget will be hide for example When the texfield focused is false

When the textfield focused is true

Upvotes: 0

Views: 249

Answers (1)

bluenile
bluenile

Reputation: 6029

You can use the Visibility widget to show or hide widgets.

Visibility widget, which can hide a child more efficiently (albeit less subtly, because it is either visible or hidden, rather than allowing fractional opacity values).

There are a couple other widgets like the Opacity widget or offstage widget that you may try :

Opacity widget, which can stop its child from being painted.

Offstage widget, which can stop its child from being laid out or painted.

Upvotes: 1

Related Questions