hit 0.3.2 copy "hit: ^0.3.2" to clipboard
hit: ^0.3.2 copied to clipboard

Decouple Flutter layout size from hit-test size, and deliver taps outside parent bounds.

0.3.2 #

  • Fix deferred targets staying on a stale registry when HitScope.link changes at runtime (inherited notify + re-registration).
  • Make overflowing HitLayer without a HitScope/link reject hits outside the layout box in release (same contract as the debug assert).
  • Remove unused per-pass AABB cache; skip no-op RenderHitScope.link updates.
  • Add HitLayer.computeDryLayout; lazy-create the scope's internal HitLink.
  • Harden Hit.defer null-child hit paths; expand link-swap and overflow tests.

0.3.1 #

  • Add package banner and screenshots for pub.dev display.
  • Point README banner at an absolute GitHub raw URL so it renders on pub.dev.

0.3.0 #

  • Narrow the supported public API: package:hit/hit.dart exports widgets and the registry protocol (Hit, HitLayer, HitScope, HitScopeState, HitLink, HitDeferRegistration). Render objects are no longer exported.
  • HitScope.of now throws a FlutterError when no scope is found (was assert-only).
  • Document deferred opaque semantics: stops further deferred scanning and skips the scoped subtree; document intentional default behavior differences (HitLayer opaque vs Hit.defer/Hit.before translucent).
  • Expand tests: Hit.before, nested scopes, explicit outer HitLink, opaque subtree skip, HitScope.of / maybeOf, ClipRect cull, Transform.
  • Add GitHub Actions CI (flutter analyze + flutter test).
  • Declare supported platforms in pubspec.yaml.

0.2.0 #

  • Fix Hit.defer(paintOnTop: true) with scroll views: deferred paint uses a composited leader/follower so it tracks transforms without a full HitScope repaint.
  • Fix disposed-layer crash when reusing paintOnTop follower layers across frames (LayerHandle).
  • Expand example app with more demos (Hit.before, resize, window edge, chip, list, slider) and Cupertino UI.

0.1.0 #

  • Initial release: HitLayer, HitScope, Hit.defer / Hit.before, and HitLink.
52
likes
160
points
576
downloads
screenshot

Documentation

API reference

Publisher

verified publisherzennn.dev

Weekly Downloads

Decouple Flutter layout size from hit-test size, and deliver taps outside parent bounds.

Repository (GitHub)
View/report issues

Topics

#flutter #widget #gestures #hit-testing

License

MIT (license)

Dependencies

flutter

More

Packages that depend on hit