MaterialAdaptiveActionsStyle class final

Visual and layout configuration used by MaterialAdaptiveActions.

These values describe renderer-owned Material geometry. They affect both the widgets and the costs submitted to the core resolver, so the visual layout and placement decision remain consistent.

const regular = MaterialAdaptiveActionsStyle();
final compact = regular.copyWith(height: 40, iconSize: 16);

Constructors

MaterialAdaptiveActionsStyle({double height = 48, double minimumButtonWidth = 48, double iconButtonWidth = 48, double submenuButtonWidth = 32, double overflowButtonWidth = 48, double iconSize = 18, double iconLabelSpacing = 8, double horizontalPadding = 12})
Creates a Material adaptive-actions style.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
The preferred action region and button height.
final
horizontalPadding double
The padding applied to each horizontal side of a label button.
final
iconButtonWidth double
The width reserved for an icon-only primary button.
final
iconLabelSpacing double
The spacing between an icon and label in an extended button.
final
iconSize double
The Material icon size used by primary buttons.
final
minimumButtonWidth double
The minimum width of a label-based primary button.
final
overflowButtonWidth double
The width reserved for the overflow menu trigger.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
The width reserved for a composite action's submenu affordance.
final

Methods

copyWith({double? height, double? minimumButtonWidth, double? iconButtonWidth, double? submenuButtonWidth, double? overflowButtonWidth, double? iconSize, double? iconLabelSpacing, double? horizontalPadding}) MaterialAdaptiveActionsStyle
Returns a copy with the supplied fields replaced.
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