getBotTextStyle method

TextStyle getBotTextStyle(
  1. ThemeData appTheme
)

Get text style for bot messages with fallbacks

Implementation

TextStyle getBotTextStyle(ThemeData appTheme) {
  return botTextStyle ??
      TextStyle(
        color: botBubbleColor != null
            ? ThemeData.estimateBrightnessForColor(botBubbleColor!) ==
                    Brightness.dark
                ? Colors.white
                : Colors.black
            : appTheme.colorScheme.onSurfaceVariant,
      );
}