FormlessTheme class

Controls the visual appearance of the root Formless chat widget.

All properties are optional — any value left null falls back to the built-in default. Only override what you need.

Formless(
  theme: FormlessTheme(
    userBubbleColor: Colors.blue,
    botBubbleColor: Colors.grey.shade100,
    sendButtonColor: Colors.blue,
  ),
  ...
)

Constructors

FormlessTheme({Color? userBubbleColor, Color? botBubbleColor, Color? userTextColor, Color? botTextColor, Color? sendButtonColor, Color? typingIndicatorColor, Color? inputBorderColor, String? inputHintText, InputDecoration? inputDecoration, TextStyle? inputTextStyle})
const

Properties

botBubbleColor → Color?
Background color of the bot's chat bubbles. Defaults to Colors.grey.shade200.
final
botTextColor → Color?
Text color inside the bot's chat bubbles. Defaults to the surrounding theme's default text color.
final
hashCode → int
The hash code for this object.
no setterinherited
inputBorderColor → Color?
Border color of the text input field. Ignored when inputDecoration is provided. Defaults to the surrounding theme's outline color.
final
inputDecoration → InputDecoration?
Fully custom decoration for the text input field.
final
inputHintText → String?
Hint text shown inside the input field when it is empty. Ignored when inputDecoration is provided. Defaults to 'Answer the question'.
final
inputTextStyle → TextStyle?
Style applied to the text the user types inside the input field. Useful for matching your app's font family, size, or weight.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendButtonColor → Color?
Background color of the send button circle. Defaults to Color(0xff612A74).
final
typingIndicatorColor → Color?
Color of the animated typing indicator dots shown while the bot is thinking. Defaults to Colors.grey.
final
userBubbleColor → Color?
Background color of the user's chat bubbles. Defaults to Color(0xff612A74).
final
userTextColor → Color?
Text color inside the user's chat bubbles. Defaults to Colors.white.
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.
inherited