hit 1.1.0
hit: ^1.1.0 copied to clipboard
Decouple Flutter layout size from hit-test size, and deliver taps outside parent bounds.
1.1.0 #
- Add
SliverHitScope/SliverHitScopeStatefor deferred hits insideCustomScrollView(and other viewport) sliver trees. - Introduce
HitScopeHandle;HitScope.of/maybeOfnow returnHitScopeHandleand resolve the nearestHitScopeorSliverHitScope(HitScopeState/SliverHitScopeStateboth implement the handle). - Example: Basics + Slivers tabs; settings via
CupertinoMenuAnchoron the navigation bar.
1.0.0 #
Stable release. Public API is the surface exported by package:hit/hit.dart:
HitLayer,HitScope/HitScopeStateHit.defer/Hit.beforeHitLink,HitDeferRegistration
No breaking changes from 0.3.2. Docs and example now cover common HitScope
mistakes (scope too small, clip above scope, missing scope) and scrubbers that
do not fight the page scroll view on small screens.
0.3.2 #
- Fix deferred targets staying on a stale registry when
HitScope.linkchanges at runtime (inherited notify + re-registration). - Make overflowing
HitLayerwithout aHitScope/linkreject hits outside the layout box in release (same contract as the debug assert). - Remove unused per-pass AABB cache; skip no-op
RenderHitScope.linkupdates. - Add
HitLayer.computeDryLayout; lazy-create the scope's internalHitLink. - Harden
Hit.defernull-child hit paths; expand link-swap and overflow tests.
0.3.1 #
- Add package banner and
screenshotsfor 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.dartexports widgets and the registry protocol (Hit,HitLayer,HitScope,HitScopeState,HitLink,HitDeferRegistration). Render objects are no longer exported. HitScope.ofnow throws aFlutterErrorwhen no scope is found (was assert-only).- Document deferred
opaquesemantics: stops further deferred scanning and skips the scoped subtree; document intentional defaultbehaviordifferences (HitLayeropaque vsHit.defer/Hit.beforetranslucent). - Expand tests:
Hit.before, nested scopes, explicit outerHitLink, opaque subtree skip,HitScope.of/maybeOf,ClipRectcull,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 fullHitScoperepaint. - Fix disposed-layer crash when reusing
paintOnTopfollower 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, andHitLink.