LMChatRoomTopic
File location
chatroom_topic.dart
LMChatRoomTopic
is a widget designed to represent topics within a chatroom interface, offering customization for headers, footers, and user interaction.
Properties
key
(Key?
)
Optional. Inherited fromsuper.key
.conversation
(LMChatConversationViewData
)
Required. Contains the data of the conversation to display.onTap
(Function
)
Required. Callback function triggered when the topic is tapped.leading
(Widget?
)
Optional. A widget to display at the start of the topic (e.g., an avatar or icon).trailing
(Widget?
)
Optional. A widget to display at the end of the topic (e.g., a button or status indicator).
Note: Rest of the properties can be found in the widget class file.
Styling
There are no dedicated style classes referenced in this widget.
Example Usage
final chatRoomTopic = LMChatRoomTopic(
conversation: conversationData,
onTap: () => print('Topic tapped!'),
leading: Icon(Icons.chat),
trailing: Icon(Icons.arrow_forward),
);