SelectPanelTheme class

Defines the elevation, shadow and shape decoration applied to the SelectPanel background.

Unlike the host-level decoration (e.g. Dialog.elevation / showModalBottomSheet's shape), this theme is applied to the panel background itself and therefore works for every host, including inline SelectPanel and the dropdown overlay. The two layers are independent and can be used together or separately.

All fields are nullable. When elevation and shape are both null, the panel falls back to a plain ColoredBox (the previous flat behavior), so existing usage is unaffected.

Mixed-in types
Annotations

Constructors

SelectPanelTheme({double? elevation, Color? shadowColor, Color? surfaceTintColor, ShapeBorder? shape, Clip? clipBehavior})
const

Properties

clipBehavior Clip?
The clip behavior applied to the panel when shape has a rounded corner.
final
elevation double?
The z-coordinate at which to place the panel.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
The color of the shadow cast by the panel's elevation.
final
shape ShapeBorder?
The shape of the panel's border / corner rounding.
final
surfaceTintColor Color?
The color used as a surface tint overlay on the panel.
final

Methods

copyWith({double? elevation, Color? shadowColor, Color? surfaceTintColor, ShapeBorder? shape, Clip? clipBehavior}) SelectPanelTheme
Returns a copy of this theme with the given fields replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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

Static Methods

lerp(SelectPanelTheme? a, SelectPanelTheme? b, double t) SelectPanelTheme
Linearly interpolates between two panel themes.
of(BuildContext context) SelectPanelTheme
Returns the nearest SelectPanelTheme from the ambient SelectThemeData.