safe_flex 0.0.1
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 forFlexthat automatically preventsRenderFlexoverflow errors by measuring children's natural size and, only if they wouldn't fit, swapping in a fallback layout before anything is painted. - Added
SafeRowandSafeColumnconvenience widgets forAxis.horizontalandAxis.vertical. - Added
OverflowStrategywith five fallback strategies:scroll,shrink,wrap,scale, andclip. - Added
debugLabelfor identifying whichSafeFlextriggered a fallback in debug logs. - Added
onOverflowcallback for analytics/telemetry hooks. - Zero dependencies beyond the Flutter SDK.