overflow_guard 0.2.1
overflow_guard: ^0.2.1 copied to clipboard
Catch RenderFlex overflow across many device sizes and text scales at once, in widget tests / CI or live at runtime. Reports exactly where each screen overflows.
0.2.1 #
- Remove placeholder repository URLs that pointed to a non-existent repo.
- README install snippet now uses the published version instead of a local path.
- Runnable example app (
example/lib/main.dart) demonstrating live runtime overflow capture.
0.2.0 #
- Add
textScalestocheckLayout-- test screens at large-font settings (e.g. 1.3x, 2.0x), a common real-world overflow cause. - Add
settletocheckLayout-- runspumpAndSettleso async-loaded screens render their real content before the check. DeviceResultnow carries thetextScaleit was measured at; reports label non-default scales like "Small phone (320x568) @1.3x".OverflowRecorder.start(alsoReport: true)keeps forwarding overflow errors to the console so they are never silently hidden at runtime.- Value equality (
==/hashCode) onDeviceSizeandOverflowIssue. - Added LICENSE (MIT), example, and pub.flutter-io.cn metadata (repository, topics).
0.1.0 #
- Initial version.
DeviceSizepresets (common,all) and custom sizes.OverflowRecorderfor live runtime overflow capture.checkLayout+expectNoOverflowtest-time API for multi-device CI checks.LayoutReportwith a readabledescribe()summary.