CommandPaletteThemeData class

Theme data for CommandPalette widgets.

Command palettes are searchable, grouped list modals with keyboard navigation (similar to VS Code's command palette).

Constructors

CommandPaletteThemeData({Color? background, Color? foreground, Color? selectedBackground, Color? selectedForeground, Color? headerForeground, Color? searchBackground, Color? searchForeground, Color? shortcutForeground, Border? border, Color? borderColor, int? width, int? maxHeight})
const

Properties

background Color?
Background color of the palette. Defaults to Theme.surface.
final
border Border?
Border style for the palette frame.
final
borderColor Color?
Border color for the palette frame. Defaults to Theme.border.
final
foreground Color?
Default text color in the palette. Defaults to Theme.onSurface.
final
hashCode int
The hash code for this object.
no setterinherited
headerForeground Color?
Text color for section headers. Defaults to Theme.muted.
final
maxHeight int?
Maximum height of the palette in rows.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBackground Color?
Background color for the search input area. Defaults to Theme.background.
final
searchForeground Color?
Text color for the search input. Defaults to Theme.onBackground.
final
selectedBackground Color?
Background color for the selected/highlighted item. Defaults to Theme.primary.
final
selectedForeground Color?
Text color for the selected/highlighted item. Defaults to Theme.onPrimary.
final
shortcutForeground Color?
Text color for keyboard shortcut hints. Defaults to Theme.muted.
final
width int?
Width of the palette in columns.
final

Methods

copyWith({Color? background, Color? foreground, Color? selectedBackground, Color? selectedForeground, Color? headerForeground, Color? searchBackground, Color? searchForeground, Color? shortcutForeground, Border? border, Color? borderColor, int? width, int? maxHeight}) CommandPaletteThemeData
Copy with selective overrides.
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