SwiftChatTheme class

Defines the visual properties of the SwiftChat widget.

Constructors

SwiftChatTheme({Color backgroundColor = Colors.white, Color primaryBubbleColor = Colors.blue, Color secondaryBubbleColor = const Color(0xFFE0E0E0), TextStyle primaryTextStyle = const TextStyle(color: Colors.white), TextStyle secondaryTextStyle = const TextStyle(color: Colors.black), Color composerBackgroundColor = Colors.white, Color sendButtonColor = Colors.blue, InputDecoration inputDecoration = const InputDecoration(hintText: 'Send a message...', border: InputBorder.none, contentPadding: EdgeInsets.symmetric(horizontal: 16.0))})
Creates a SwiftChatTheme with the given properties.
const

Properties

backgroundColor → Color
The background color of the chat screen.
final
composerBackgroundColor → Color
The background color of the message composer.
final
hashCode → int
The hash code for this object.
no setterinherited
inputDecoration → InputDecoration
The decoration for the message input text field.
final
primaryBubbleColor → Color
The background color for bubbles of messages sent by the current user.
final
primaryTextStyle → TextStyle
The text style for messages sent by the current user.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryBubbleColor → Color
The background color for bubbles of messages sent by other users.
final
secondaryTextStyle → TextStyle
The text style for messages sent by other users.
final
sendButtonColor → Color
The color of the send button.
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