chat_ui/src/message_list/widgets/widgets library
Barrel export for message list widgets
Re-exports widgets from shared_ui and provides chat_ui specific widgets.
Classes
- CometChatAnimatedMessageList
- An animated list widget for displaying chat messages
- CometChatMessageActionOverlay
- A full-screen overlay that displays message actions in a modern context menu style.
- CometChatMessageActionOverlayStyle
- Style class for CometChatMessageActionOverlay
- CometChatMessageList
- CometChatMessageList is a Clean Architecture + BLoC based message list widget.
- CometChatMessageSwipe
- A widget that wraps a message bubble and enables swipe-to-reply gesture.
- EmptyMessageList
- Empty state widget shown when there are no messages
- LoadMoreIndicator
- A loading indicator shown during pagination
- ScrollToBottomButton
- A floating action button that appears when the user scrolls away from the bottom
- SliverSpacing
- A sliver that provides dynamic spacing at the bottom of the message list
Enums
- InitialScrollToEndMode
- Enum controlling the initial scroll behavior of the message list
Functions
-
showMessageActionOverlay(
{required BuildContext context, required BaseMessage message, required Widget bubbleWidget, required List< ActionItem> actionItems, required BubbleAlignment bubbleAlignment, String? heroTag, Size? bubbleSize, List<String> ? favoriteReactions, dynamic onReactionTap(BaseMessage message, String reaction)?, dynamic onAddReactionTap(BaseMessage message)?, Widget? addReactionIcon, bool hideReactions = false, CometChatMessageActionOverlayStyle? style}) → Future<ActionItem?> - Shows the message action overlay as a full-screen dialog.
Typedefs
- EmptyMessageListBuilder = Widget Function(BuildContext context)
- Builder type for custom empty state widget
- Builder function for header and footer views
- LoadMoreBuilder = Widget Function(BuildContext context)
- Builder type for custom load more indicator
-
MessageItemBuilder
= Widget Function(BuildContext context, BaseMessage message, int index, Animation<
double> animation) - Builder function for message items with animation support
-
ScrollToBottomBuilder
= Widget Function(BuildContext context, Animation<
double> animation, VoidCallback onPressed) - Builder type for custom scroll-to-bottom button
- StateViewBuilder = Widget Function(BuildContext context)
- Builder function for state views (empty, error, loading)
- ThreadRepliesClick = void Function(BaseMessage message, BuildContext context, {CometChatMessageTemplate? template})
- Callback for thread replies click