MinimumTapTargetGuideline class Null safety
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.
read-onlyoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- link → String
-
A link describing the tap target guidelines for a platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- 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 non-existent 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