ZegoLiveAudioRoomInRoomMessageConfig class

Control options for the bottom-left message list. This class is used for the ZegoUIKitPrebuiltLiveAudioRoomConfig.inRoomMessage.

If you want to customize chat messages, you can specify the ZegoLiveAudioRoomInRoomMessageConfig.itemBuilder.

Example:

ZegoInRoomMessageViewConfig( itemBuilder: (BuildContext context, ZegoRoomMessage message) { return ListTile( title: Text(message.message), subtitle: Text(message.user.id), ); }, );

Constructors

ZegoLiveAudioRoomInRoomMessageConfig({bool visible = true, double? width, double? height, Offset? bottomLeft, double opacity = 0.5, int? maxLines, TextStyle? nameTextStyle, TextStyle? messageTextStyle, Color? backgroundColor, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? paddings, Widget? resendIcon, Widget? background, ZegoInRoomMessageItemBuilder? itemBuilder, bool showName = true, bool showAvatar = true})

Properties

background Widget?
background
getter/setter pair
backgroundColor Color?
The background of chat message list items If you set the backgroundColor, the opacity setting will be overridden. You can use backgroundColor.withOpacity(0.5) to set the opacity of the background color.
getter/setter pair
borderRadius BorderRadiusGeometry?
The border radius of chat message list items
getter/setter pair
bottomLeft Offset?
The offset of chat message list view bottom-left position
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of chat message list view
getter/setter pair
itemBuilder ZegoInRoomMessageItemBuilder?
Use this to customize the style and content of each chat message list item. For example, you can modify the background color, opacity, border radius, or add additional information like the sender's level or role.
getter/setter pair
maxLines int?
The max lines of chat message list items, default value is not limit.
getter/setter pair
messageTextStyle TextStyle?
The message text style of chat message list items
getter/setter pair
nameTextStyle TextStyle?
The name text style of chat message list items
getter/setter pair
opacity double
The opacity of the background color for chat message list items, default value of 0.5. If you set the backgroundColor, the opacity setting will be overridden.
getter/setter pair
paddings EdgeInsetsGeometry?
The paddings of chat message list items
getter/setter pair
resendIcon Widget?
resend button icon
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAvatar bool
display user avatar in message list view or not
getter/setter pair
showName bool
display user name in message list view or not
getter/setter pair
visible bool
If set to false, the message list will be hidden. The default value is true.
getter/setter pair
width double?
The width of chat message list view
getter/setter pair

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