MessageInfoPageStyle constructor

const MessageInfoPageStyle({
  1. AppBarTheme appBarTheme = const AppBarTheme(backgroundColor: Color(0xffF2F2F2), shadowColor: Colors.white, surfaceTintColor: Colors.white, titleTextStyle: TextStyle(fontWeight: FontWeight.bold, color: Color(0xff181818), fontSize: 20), iconTheme: IconThemeData(color: Color(0xff181818)), actionsIconTheme: IconThemeData(color: Color(0xff181818))),
  2. SenderChatBubbleStyle senderChatBubbleStyle = const SenderChatBubbleStyle(),
  3. TextStyle deliveredTitleStyle = const TextStyle(fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),
  4. TextStyle readTitleStyle = const TextStyle(fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),
  5. TextStyle deliveredMsgTitleStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),
  6. TextStyle readMsgTitleStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),
  7. ContactItemStyle deliveredItemStyle = const ContactItemStyle(),
  8. ContactItemStyle readItemStyle = const ContactItemStyle(),
})

Constructor for the MessageInfoPageStyle class It initializes all the styles with default values

Implementation

const MessageInfoPageStyle({
  /// AppBar theme style
  this.appBarTheme = const AppBarTheme(
    backgroundColor: Color(0xffF2F2F2),
    shadowColor: Colors.white,
    surfaceTintColor: Colors.white,
    titleTextStyle: TextStyle(
        fontWeight: FontWeight.bold, color: Color(0xff181818), fontSize: 20),
    iconTheme: IconThemeData(color: Color(0xff181818)),
    actionsIconTheme: IconThemeData(color: Color(0xff181818)),
  ),

  /// Sender chat bubble style
  this.senderChatBubbleStyle = const SenderChatBubbleStyle(),

  /// Delivered title text style
  this.deliveredTitleStyle = const TextStyle(
      fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),

  /// Read title text style
  this.readTitleStyle = const TextStyle(
      fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),

  /// Delivered message title text style
  this.deliveredMsgTitleStyle = const TextStyle(
      fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),

  /// Read message title text style
  this.readMsgTitleStyle = const TextStyle(
      fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),

  /// Delivered item style
  this.deliveredItemStyle = const ContactItemStyle(),

  /// Read item style
  this.readItemStyle = const ContactItemStyle(),
});