touch_targets 0.5.0
touch_targets: ^0.5.0 copied to clipboard
Create overflowing touch targets to make accessible design-sized components.
0.5.0 #
-
Removed
TouchTargetFitfrom default touch targets.- Overflow touch targets are now the only option.
-
Removed
TouchClient.getRectIn().- Partially replaced by a new
TouchClient.containsIn()method.
- Partially replaced by a new
-
Added
TouchClient.dryHitTestFrom()and integrated withTouchGroup.- This prevents touch targets from intercepting events despite having an active
IgnorePointerorAbsorbPointerancestor.
- This prevents touch targets from intercepting events despite having an active
-
Optimized
TouchClientweighted scoring inTouchGroup.- This helps avoid unnecessary dry hit testing
-
Fixed default touch targets preventing hit tests from reaching the child when disabled.
-
Internal code style and quality improvements.
0.4.0 #
-
Fixed hit test result from
TouchGroupnot being populated properly, preventing gestures from reaching arenas such as in a scroll views. -
Fixed potential issues with legacy wrap hit testing.
-
Removed
TouchClient.hasLinealRelationWith()and replaced it withTouchClient.hasOwn(),TouchClient.hasDescendant(),TouchClient.hasAncestor().
0.3.1 #
- Added
operator==andhashCodeoverrides to theTouchClientimplementation ofSizedTouchTargetandPaddedTouchTarget.
0.3.0 #
-
Renamed the following elements:
TouchClient.childSize→TouchClient.innerSize;TouchClient.hitTestFrom()→TouchClient.hitTestInnerFrom();TouchTargetBehavior→TouchTargetFit(behavior→fit).
-
Refactored
RenderTouchTargetMixininto three mixins: baseTouchClientRenderObjectBaseMixin, optionalTouchClientRenderObjectOptionalMixinand requiredTouchClientRenderObjectRequiredMixin. -
Added documentation comments to some elements.
-
Minor internal changes.
0.2.1 #
-
Updated example app.
-
Made internal changes to pass static analysis.
0.2.0 #
-
Fixed unrelated elements losing their hit tests to touch targets.
TouchGroupnow performs a dry hit test to determine whether the topmost hit object is lineally related to the touch target (ancestor or descendant). -
Added
bool TouchClient.isRelatedTo(RenderObject hit)to check whether theRenderObjectwhich gets hit shares lineage with the touch target. -
Removed unnecessary
markNeedsPaint()calls inTouchGroup's render object. -
Minor internal changes.
0.1.0 #
- Initial version.