DefaultChatTheme class

Inheritance

Constructors

DefaultChatTheme.new({BorderRadius? imageBorderRadius, Color? backgroundColor, DecorationImage? backgroundImage = const DecorationImage(image: CachedNetworkImageProvider("https://i.pinimg.com/736x/85/ec/df/85ecdf1c3611ecc9b7fa85282d9526e0.jpg"), fit: BoxFit.cover), Color? userStatusColor = Colors.green, Widget verificationBadge = const Iconify(Ic.sharp_verified, color: Colors.green, size: 14), TextStyle timestampTextStyle = const TextStyle(fontSize: 14, color: Color.fromARGB(255, 114, 114, 114), fontWeight: FontWeight.w500), TextStyle urlTextStyle = const TextStyle(color: Colors.blue), TextStyle actionMessageTextStyle = const TextStyle(fontSize: 14, color: Color.fromARGB(255, 114, 114, 114), fontWeight: FontWeight.w500), TextStyle linkPreviewTitleStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold), TextStyle linkPreviewTextStyle = const TextStyle(color: Color.fromARGB(255, 182, 182, 182)), EdgeInsetsGeometry bodyPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 20), EdgeInsetsGeometry usernamePadding = const EdgeInsets.all(2), Widget seenIcon = const MessageStatus(2), Widget sentIcon = const MessageStatus(1), Widget sendingFailedIcon = const Iconify(Mdi.alert_circle_outline, color: Colors.red), TextStyle inwardMessageTextStyle = const TextStyle(color: Color.fromARGB(255, 225, 225, 225), fontSize: 14, fontWeight: FontWeight.w500), TextStyle timeTextStyle = const TextStyle(color: Colors.white, fontSize: 12), TextStyle outwardMessageTextStyle = const TextStyle(color: Color.fromARGB(255, 225, 225, 225), fontSize: 14, fontWeight: FontWeight.w500), Color audioWaveColor = const Color.fromARGB(255, 213, 213, 213), TextStyle usernameTextStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.bold), TextStyle avatarTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 22, fontFamily: 'Satoshi'), EdgeInsetsGeometry messagePadding = const EdgeInsets.all(10.0), BorderRadiusGeometry? inwardMessageBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20), bottomRight: Radius.circular(20), bottomLeft: Radius.circular(5)), BorderRadiusGeometry? outwardMessageBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20), bottomRight: Radius.circular(5), bottomLeft: Radius.circular(20)), Color primaryColor = Colors.blue, Color inwardMessageBackgroundColor = const Color(0xff373E4E), Color outwardMessageBackgroundColor = const Color(0xff7A8194), double messageWidth = 0.7, EdgeInsetsGeometry messageMargin = const EdgeInsets.only(top: 20), EdgeInsetsGeometry actionMessageMargin = const EdgeInsets.only(top: 15, left: 20, right: 20), Color defaultUserColor = Colors.blue, double userAvatarRadius = 10.0})

Properties

actionMessageMargin EdgeInsetsGeometry
finalinherited
actionMessageTextStyle TextStyle
finalinherited
audioWaveColor Color
finalinherited
avatarTextStyle TextStyle
finalinherited
backgroundColor Color?
finalinherited
backgroundImage DecorationImage?
finalinherited
bodyPadding EdgeInsetsGeometry
finalinherited
defaultUserColor Color
finalinherited
hashCode int
The hash code for this object.
no setterinherited
imageBorderRadius BorderRadius?
finalinherited
inwardMessageBackgroundColor Color
finalinherited
inwardMessageBorderRadius BorderRadiusGeometry?
finalinherited
inwardMessageTextStyle TextStyle
finalinherited
linkPreviewTextStyle TextStyle
finalinherited
linkPreviewTitleStyle TextStyle
finalinherited
messageMargin EdgeInsetsGeometry
finalinherited
messagePadding EdgeInsetsGeometry
finalinherited
messageWidth double
finalinherited
outwardMessageBackgroundColor Color
finalinherited
outwardMessageBorderRadius BorderRadiusGeometry?
finalinherited
outwardMessageTextStyle TextStyle
finalinherited
primaryColor Color
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenIcon Widget
finalinherited
sendingFailedIcon Widget
finalinherited
sentIcon Widget
finalinherited
timestampTextStyle TextStyle
finalinherited
timeTextStyle TextStyle
finalinherited
urlTextStyle TextStyle
finalinherited
userAvatarRadius double
finalinherited
usernamePadding EdgeInsetsGeometry
finalinherited
usernameTextStyle TextStyle
finalinherited
userStatusColor Color?
finalinherited
verificationBadge Widget
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited