MinimumTapAreas class

Defines the minimum tap size per device type.

Constructors

MinimumTapAreas({required double mobile, required double desktop})
const

Properties

desktop double
The minimum tap area for desktop devices where users most often use a mouse. Used on Linux, macOS and Windows.
final
hashCode int
The hash code for this object.
no setterinherited
mobile double
The minimum tap area for mobile devices with touch screens, used on Android, iOS and Fuchsia.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

forPlatform(TargetPlatform platform) double
Returns the minimum tap area for the given platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

cupertino → const MinimumTapAreas
The minimum tap areas as defined by the Apple Human Interface Guidelines: https://developer.apple.com/design/human-interface-guidelines/foundations/accessibility/#buttons-and-controls
material → const MinimumTapAreas
The minimum tap areas as defined by the Material Design guidelines: https://m3.material.io/foundations/accessible-design/accessibility-basics#28032e45-c598-450c-b355-f9fe737b1cd8