RecentChatItemStyle constructor
const
RecentChatItemStyle({
- Size profileImageSize = const Size(48, 48),
- TextStyle titleTextStyle = const TextStyle(fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 16),
- TextStyle subtitleTextStyle = const TextStyle(fontWeight: FontWeight.normal, color: Color(0xff767676), fontSize: 14),
- Color spanTextColor = Colors.blue,
- TextStyle typingTextStyle = const TextStyle(fontWeight: FontWeight.w600, color: AppColor.primaryColor, fontSize: 14),
- TextStyle timeTextStyle = const TextStyle(fontWeight: FontWeight.normal, color: Color(0xff767676), fontSize: 12),
- Color unreadCountBgColor = const Color(0xff4879F9),
- TextStyle unreadCountTextStyle = const TextStyle(fontWeight: FontWeight.normal, color: Colors.white, fontSize: 8),
- Color dividerColor = const Color(0XffE2E2E2),
- Color unreadColor = const Color(0xff4879F9),
- Color selectedBgColor = Colors.black12,
- Color unselectedBgColor = Colors.transparent,
Implementation
const RecentChatItemStyle(
{this.profileImageSize = const Size(48, 48),
this.titleTextStyle = const TextStyle(
fontWeight: FontWeight.w600, color: Color(0xff181818), fontSize: 16),
this.subtitleTextStyle = const TextStyle(
fontWeight: FontWeight.normal,
color: Color(0xff767676),
fontSize: 14),
this.spanTextColor = Colors.blue,
this.typingTextStyle = const TextStyle(
fontWeight: FontWeight.w600,
color: AppColor.primaryColor,
fontSize: 14),
this.timeTextStyle = const TextStyle(
fontWeight: FontWeight.normal,
color: Color(0xff767676),
fontSize: 12),
this.unreadCountBgColor = const Color(0xff4879F9),
this.unreadCountTextStyle = const TextStyle(
fontWeight: FontWeight.normal,
color: Colors.white,
fontSize: 8,
),
this.dividerColor = const Color(0XffE2E2E2),
this.unreadColor = const Color(0xff4879F9),
this.selectedBgColor = Colors.black12,
this.unselectedBgColor = Colors.transparent});