safe_flex 0.0.1 copy "safe_flex: ^0.0.1" to clipboard
safe_flex: ^0.0.1 copied to clipboard

A drop-in Row/Column replacement that automatically prevents RenderFlex overflow errors using configurable strategies.

0.0.1 #

Initial release.

  • Added SafeFlex, a drop-in replacement for Flex that automatically prevents RenderFlex overflow errors by measuring children's natural size and, only if they wouldn't fit, swapping in a fallback layout before anything is painted.
  • Added SafeRow and SafeColumn convenience widgets for Axis.horizontal and Axis.vertical.
  • Added OverflowStrategy with five fallback strategies: scroll, shrink, wrap, scale, and clip.
  • Added debugLabel for identifying which SafeFlex triggered a fallback in debug logs.
  • Added onOverflow callback for analytics/telemetry hooks.
  • Zero dependencies beyond the Flutter SDK.
2
likes
160
points
95
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A drop-in Row/Column replacement that automatically prevents RenderFlex overflow errors using configurable strategies.

Repository (GitHub)
View/report issues

Topics

#layout #overflow #responsive #ui #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on safe_flex