SeatMapTheme class

Visual configuration for SeatMapView.

All six SeatStatus values render as solid-color rounded rectangles — no overlay symbols. Each status has a distinct, accessible default color.

Pass a const instance (or keep a stable reference) so SeatMapPainter.shouldRepaint can skip repaints when nothing visual has changed.

Per-view color overrides are available via SeatMapView.statusColors (override any status fill) and SeatMapView.tagColors (color seats by developer-defined tag string). The theme provides the fallback values.

Annotations

Constructors

SeatMapTheme({Color availableColor = const Color(0xFF2E7D32), Color selectedColor = const Color(0xFF1565C0), Color heldColor = const Color(0xFFEF6C00), Color soldColor = const Color(0xFF757575), Color blockedColor = const Color(0xFF37474F), Color accessibleColor = const Color(0xFF6A1B9A), double seatRadius = 14, Color seatBorderColor = const Color(0xFFFFFFFF), double seatBorderWidth = 1.5, Color selectionRingColor = const Color(0xFFFFEB3B), double selectionRingWidth = 3, Color decorationColor = const Color(0xFFB0BEC5), TextStyle decorationLabelStyle = const TextStyle(color: Color(0xFF37474F), fontSize: 13, fontWeight: FontWeight.w600)})
Creates a SeatMapTheme. All fields have sensible accessible defaults.
const

Properties

accessibleColor → Color
Solid fill for SeatStatus.accessible seats.
final
availableColor → Color
Solid fill for SeatStatus.available seats.
final
blockedColor → Color
Solid fill for SeatStatus.blocked seats.
final
decorationColor → Color
Fill color for non-selectable SeatDecorations.
final
decorationLabelStyle → TextStyle
Text style used to draw a decoration's label, when present.
final
hashCode → int
The hash code for this object.
no setteroverride
heldColor → Color
Solid fill for SeatStatus.held seats.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seatBorderColor → Color
Stroke color of the border ring drawn around every seat.
final
seatBorderWidth → double
Stroke width of the border ring.
final
seatRadius → double
Radius, in map units. Used as the fallback tap hit-test radius and to size decorations that omit an explicit size.
final
selectedColor → Color
Solid fill for SeatStatus.selected (server-confirmed selection by another user). The local user's own picks are highlighted by selectionRingColor, independently of this value.
final
selectionRingColor → Color
Color of the highlight ring drawn around seats the local user has selected (present in the selection controller's set).
final
selectionRingWidth → double
Stroke width of the local-selection highlight ring.
final
soldColor → Color
Solid fill for SeatStatus.sold seats.
final

Methods

colorForStatus(SeatStatus status) → Color
Returns the default solid fill for status.
copyWith({Color? availableColor, Color? selectedColor, Color? heldColor, Color? soldColor, Color? blockedColor, Color? accessibleColor, double? seatRadius, Color? seatBorderColor, double? seatBorderWidth, Color? selectionRingColor, double? selectionRingWidth, Color? decorationColor, TextStyle? decorationLabelStyle}) → SeatMapTheme
Returns a copy of this theme with the given 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.
override