ClarioDeskTheme class
Host-facing theme overrides. Pass to ClarioDeskWidgets.openInbox(theme:).
All fields optional — the unset ones inherit from the host colorScheme,
so a zero-config install already matches the host app (incl. light/dark).
- Annotations
Constructors
- ClarioDeskTheme({Color? primary, Color? onPrimary, Color? background, Color? primaryText, Color? secondaryText, Color? componentBackground, Color? componentBorder, Color? placeholderText, Color? appBarBackground, Color? appBarForeground, Color? error, double? cornerRadius, double? borderWidth})
-
const
Properties
- appBarBackground → Color?
-
App-bar background. Defaults to background.
final
- appBarForeground → Color?
-
App-bar foreground. Defaults to primaryText.
final
- background → Color?
-
Screen background.
final
- borderWidth → double?
-
Border width for inputs and dividers. Default 1.
final
- componentBackground → Color?
-
Composer field + received-message bubbles.
final
- componentBorder → Color?
-
Dividers and input borders.
final
- cornerRadius → double?
-
Corner radius threaded through bubbles, inputs, and cards. Default 14.
final
- error → Color?
-
Failed sends, bug-report accents.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- onPrimary → Color?
-
Text/icon drawn on primary.
final
- placeholderText → Color?
-
Composer placeholder text.
final
- primary → Color?
-
Accent — send button, links, unread dot, own-message bubble.
final
- primaryText → Color?
-
Body text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryText → Color?
-
Timestamps and metadata.
final
Methods
-
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