getUserTextStyle method

TextStyle getUserTextStyle(
  1. ThemeData appTheme
)

Get text style for user messages with fallbacks

Implementation

TextStyle getUserTextStyle(ThemeData appTheme) {
  return userTextStyle ??
      TextStyle(
        color: userBubbleColor != null
            ? ThemeData.estimateBrightnessForColor(userBubbleColor!) ==
                    Brightness.dark
                ? Colors.white
                : Colors.black
            : appTheme.colorScheme.onPrimary,
      );
}