MessageInfoPageStyle constructor
const
MessageInfoPageStyle({
- 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))),
- SenderChatBubbleStyle senderChatBubbleStyle = const SenderChatBubbleStyle(),
- TextStyle deliveredTitleStyle = const TextStyle(fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),
- TextStyle readTitleStyle = const TextStyle(fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 18.0),
- TextStyle deliveredMsgTitleStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),
- TextStyle readMsgTitleStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff7C7C7C), fontSize: 14.0),
- ContactItemStyle deliveredItemStyle = const ContactItemStyle(),
- 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(),
});