Kyaw Tun
Kyaw Tun

Reputation: 13131

Show I let RenderFlex overflowed unhandled?

In Flutter Widget, sometimes layout overflow cause exception in debug mode and show like 🚧🚧🚧🚧 with number pixel overflow. In release mode, it looks fine.

Should I leave such layout overflow?

Upvotes: 2

Views: 332

Answers (1)

Rémi Rousselet
Rémi Rousselet

Reputation: 277077

No.

These 🚧 are there for a reason. Flutter is not like HTML, you should never have overflow. If you have some, it's a bug and needs to be fixed. Same goes for failing asserts. They'll work in release mode, but that's still a bug.

If you want to have an overflow, consider using OverflowBox instead

Upvotes: 3

Related Questions