shared_ui/src/cometchat_message_list/cometchat_message_list library
CometChat Message List - Shared UI Components
This module only contains the UI widgets and utilities. All logic (BLoC, Domain, Data, DI) lives in chat_ui/src/message_list/.
Classes
- CometChatAnimatedMessageList
- An animated list widget for displaying chat messages
- CometChatMessageList
- CometChatMessageList is a widget that displays a list of messages using Clean Architecture with BLoC pattern.
- CometChatMessageListStyle
- CometChatMessageListStyle is a data class that has styling-related properties to customize the appearance of CometChatMessageList
- CometChatNewMessageIndicator
- A horizontal divider with centered "New Messages" text.
- CometChatNewMessageIndicatorStyle
- Style configuration for CometChatNewMessageIndicator.
- ComposerHeightNotifier
- Notifier for tracking message composer height
- EmptyMessageList
- Empty state widget shown when there are no messages
- LoadMoreIndicator
- A loading indicator shown during pagination
- LoadMoreNotifier
- Notifier for tracking loading state 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
Mixins
-
KeyboardMixin<
T extends StatefulWidget> - Mixin for detecting keyboard height changes
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 creating individual message widgets
-
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)