ChatBotTheme.defaultTheme constructor

ChatBotTheme.defaultTheme(
  1. Color primary
)

Implementation

factory ChatBotTheme.defaultTheme(Color primary) => ChatBotTheme(
  backgroundColor: Colors.white,
  userMessageColor: primary.withOpacity(0.9),
  botMessageColor: Colors.grey[200],
  userMessageTextColor: Colors.white,
  botMessageTextColor: Colors.black87,
  sendButtonColor: primary,
  textFieldBorderColor: primary.withOpacity(0.5),
  predefinedButtonColor: primary.withOpacity(0.15),
  predefinedButtonTextColor: primary,
  predefinedButtonBorderColor: primary,
  predefinedButtonBorderRadius: 20,
  predefinedButtonPadding: const EdgeInsets.symmetric(
    horizontal: 12,
    vertical: 10,
  ),
  predefinedContainerBorderColor: Colors.grey.shade300,
  titleTextStyle: TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 18,
    color: primary,
  ),
);