© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Yuriy Novikov
Thanx for the article. You use Visibility to show an appropriate view. Is it to eliminate if...else? Any drawbacks of such a technique? Are hidden widget trees still there... or not?
Alex Sinelnikov
Engineer, researcher, CTO
Yes, visibility widgets, even when hidden - stays in widget tree, but you can set replacement widget, by default its SizedBox.shrink().
In my case I didn't want if/else in that part of code and used Visibility()