DraggableActionPanelThemeData class final

Tokens for the action-grid preset.

Deliberately separate from DraggablePanelThemeData: the core panel knows nothing about grids or buttons, and keeping the two apart is what stops preset concerns leaking into it.

Inheritance
Mixed-in types
Annotations

Constructors

DraggableActionPanelThemeData({EdgeInsetsGeometry? contentPadding, double? collapsedIconSize, Color? collapsedIconColor, double? actionSize, double? actionIconSize, double? actionSpacing, ShapeBorder? actionShape, Color? actionBackgroundColor, Color? actionForegroundColor, WidgetStateProperty<Color?>? actionOverlayColor, Color? badgeColor, double? badgeSize, double? badgeDotSize, TextStyle? badgeTextStyle, Color? badgeForegroundColor, Offset? badgeOffset, double? buttonSpacing, double? sectionSpacing, int? maxColumns, ButtonStyle? buttonStyle, TextStyle? buttonLabelStyle, TextStyle? actionLabelStyle, double? actionLabelSpacing, int? actionLabelMaxLines, double? actionLabelMaxWidth, TextStyle? headerStyle, double? headerSpacing, IconData? closeIcon, ButtonStyle? closeButtonStyle})
const
DraggableActionPanelThemeData.defaults(ColorScheme scheme)
Built-in tokens, derived from scheme.
factory
DraggableActionPanelThemeData.resolve(BuildContext context, DraggableActionPanelThemeData? override)
Resolves defaults, then the app-wide extension, then override.
factory

Properties

actionBackgroundColor → Color?
final
actionForegroundColor → Color?
final
actionIconSize → double?
Size of the glyph inside an action's tile.
final
actionLabelMaxLines → int?
How many lines a caption may wrap onto before it is elided.
final
actionLabelMaxWidth → double?
Widest a caption may get before it wraps.
final
actionLabelSpacing → double?
Gap between an action's tile and its caption.
final
actionLabelStyle → TextStyle?
Style of the caption under each action. Defaults to labelSmall.
final
actionOverlayColor → WidgetStateProperty<Color?>?
Ink drawn over a tile as it is pressed, hovered, or focused.
final
actionShape → ShapeBorder?
final
actionSize → double?
final
actionSpacing → double?
final
badgeColor → Color?
final
badgeDotSize → double?
Diameter of a badge with no label.
final
badgeForegroundColor → Color?
Colour of a badge's label. Defaults to onError, matching badgeColor.
final
badgeOffset → Offset?
Shifts a badge in from the top-end corner of its tile.
final
badgeSize → double?
Height of a badge carrying a label.
final
badgeTextStyle → TextStyle?
Style of a badge's label. Defaults to Material's own badge text style.
final
buttonLabelStyle → TextStyle?
final
buttonSpacing → double?
final
buttonStyle → ButtonStyle?
Style of the labelled buttons, including their shape.
final
closeButtonStyle → ButtonStyle?
Style of that control, including its shape, size, and colours.
final
closeIcon → IconData?
Glyph on the header's close control.
final
collapsedIconColor → Color?
Colour of that glyph.
final
collapsedIconSize → double?
Size of the glyph on the collapsed face.
final
contentPadding → EdgeInsetsGeometry?
final
hashCode → int
The hash code for this object.
no setteroverride
headerSpacing → double?
Gap between the header and the content below it.
final
headerStyle → TextStyle?
Style of the header title. Defaults to titleSmall.
final
maxColumns → int?
Upper bound on grid columns before actions wrap onto another row.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sectionSpacing → double?
Gap between the action grid and the button column.
final
type → Object
The extension's type.
no setterinherited

Methods

copyWith({EdgeInsetsGeometry? contentPadding, double? collapsedIconSize, Color? collapsedIconColor, double? actionSize, double? actionIconSize, double? actionSpacing, ShapeBorder? actionShape, Color? actionBackgroundColor, Color? actionForegroundColor, WidgetStateProperty<Color?>? actionOverlayColor, Color? badgeColor, double? badgeSize, double? badgeDotSize, TextStyle? badgeTextStyle, Color? badgeForegroundColor, Offset? badgeOffset, double? buttonSpacing, double? sectionSpacing, int? maxColumns, TextStyle? actionLabelStyle, double? actionLabelSpacing, int? actionLabelMaxLines, double? actionLabelMaxWidth, TextStyle? headerStyle, double? headerSpacing, IconData? closeIcon, ButtonStyle? closeButtonStyle, ButtonStyle? buttonStyle, TextStyle? buttonLabelStyle}) → DraggableActionPanelThemeData
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(covariant DraggableActionPanelThemeData? other, double t) → DraggableActionPanelThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(DraggableActionPanelThemeData? other) → DraggableActionPanelThemeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override