SwiftChatTheme constructor

const SwiftChatTheme({
  1. Color backgroundColor = Colors.white,
  2. Color primaryBubbleColor = Colors.blue,
  3. Color secondaryBubbleColor = const Color(0xFFE0E0E0),
  4. TextStyle primaryTextStyle = const TextStyle(color: Colors.white),
  5. TextStyle secondaryTextStyle = const TextStyle(color: Colors.black),
  6. Color composerBackgroundColor = Colors.white,
  7. Color sendButtonColor = Colors.blue,
  8. 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),
  ),
});