MinimumTapTargetGuideline class
A guideline which enforces that all tappable semantics nodes have a minimum size.
Each platform defines its own guidelines for minimum tap areas.
See also:
- AccessibilityGuideline, which provides a general overview of accessibility guidelines and how to use them.
- androidTapTargetGuideline, which checks that tappable nodes have a minimum size of 48 by 48 pixels.
- iOSTapTargetGuideline, which checks that tappable nodes have a minimum size of 44 by 44 pixels.
- Inheritance
-
- Object
- AccessibilityGuideline
- MinimumTapTargetGuideline
- Annotations
Constructors
- MinimumTapTargetGuideline({required Size size, required String link})
-
Create a new MinimumTapTargetGuideline.
const
Properties
- description → String
-
A description of the policy restrictions and criteria.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- link → String
-
A link describing the tap target guidelines for a platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
The minimum allowed size of a tappable node.
final
Methods
-
evaluate(
WidgetTester tester) → FutureOr< Evaluation> -
Evaluate whether the current state of the
tester
conforms to the rule.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldSkipNode(
SemanticsNode node) → bool - Returns whether SemanticsNode should be skipped for minimum tap target guideline.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited