overflow_guard 0.2.1 copy "overflow_guard: ^0.2.1" to clipboard
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 textScales to checkLayout -- test screens at large-font settings (e.g. 1.3x, 2.0x), a common real-world overflow cause.
  • Add settle to checkLayout -- runs pumpAndSettle so async-loaded screens render their real content before the check.
  • DeviceResult now carries the textScale it 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) on DeviceSize and OverflowIssue.
  • Added LICENSE (MIT), example, and pub.flutter-io.cn metadata (repository, topics).

0.1.0 #

  • Initial version.
  • DeviceSize presets (common, all) and custom sizes.
  • OverflowRecorder for live runtime overflow capture.
  • checkLayout + expectNoOverflow test-time API for multi-device CI checks.
  • LayoutReport with a readable describe() summary.
0
likes
150
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Topics

#testing #layout #overflow #responsive #ci

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on overflow_guard