SwiftChatTheme constructor
const
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.
Implementation
const SwiftChatTheme({
this.backgroundColor = Colors.white,
this.primaryBubbleColor = Colors.blue,
this.secondaryBubbleColor = const Color(0xFFE0E0E0),
this.primaryTextStyle = const TextStyle(color: Colors.white),
this.secondaryTextStyle = const TextStyle(color: Colors.black),
this.composerBackgroundColor = Colors.white,
this.sendButtonColor = Colors.blue,
this.inputDecoration = const InputDecoration(
hintText: 'Send a message...',
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(horizontal: 16.0),
),
});