flutter_chat_core 2.8.0
flutter_chat_core: ^2.8.0 copied to clipboard
Core package for Flutter chat apps, complementing flutter_chat_ui. Contains models and core functionality. #chat #ui
2.6.0 #
2.5.0 #
2.4.0 #
2.2.0 #
2.0.1 #
- FIX: document public APIs.
2.0.0 #
- First stable release, keep the same version as flutter_chat_ui
0.0.12 #
⚠️ Breaking changes ⚠️
- Updated the
Messagemodel to renameparentIdtoreplyToMessageId - The
createdAtfield is now optional in the message model - The
sendingfield has been removed from the message model; instead, you can setsending: truein the metadata of the Message model to achieve the same functionality. - The
isOnlyEmojiproperty has been removed from the text message model; to indicate that a message contains only emojis, useisOnlyEmoji: truein the metadata of the text message. - The
firstNameandlastNamefields in theUsermodel have been consolidated into a singlenamefield for improved simplicity.
Other changes
- Introduced
MessageIDandUserIDtypedefs to provide clearer context, while maintaining their underlying type asStrings - Introduced
TextStreamMessagetype to support text streaming - Added
textStreamMessageBuilderto theBuildersclass to support text streaming UI widget
0.0.11 #
⚠️ Breaking changes ⚠️
- Rename
inputBuildertocomposerBuilder
0.0.10 #
⚠️ Breaking changes ⚠️
- Requires Freezed 3.0.0
- Replace
statusfield with a computed getter that determines message state based on lifecycle timestamps (createdAt,deletedAt,sending,failedAt,sentAt,deliveredAt,seenAt,updatedAt). This enables granular message history tracking and status transitions, matching the behavior of popular chat applications. - Rename
overlaytohasOverlayinImageMessage
Other changes
- Downgrade
intlpackage version for better compatibility with other Flutter packages
0.0.9 #
- Added system message for displaying system notifications and events in chat
0.0.8 #
- Add
UserCacheclass to store resolved users for synchronous access, preventing flickering in recycled widgets by caching user data with LRU eviction strategy - Add
ScrollToMessageMixinto enable programmatic scrolling in chat list:scrollToMessage(messageId): Scrolls to a specific message by IDscrollToIndex(index): Scrolls to a message at a specific index- Both methods support customizable animation duration, curve, alignment and offset
- Can be used directly through any
ChatControllerinstance - See the pagination example in the example project for usage details
- Add validation to prevent duplicate message IDs
0.0.7 #
- Require Flutter 3.29 and Dart 3.7
0.0.6 #
⚠️ Breaking changes ⚠️
- Changed signature of
chatMessageBuilderto includeisRemovedandgroupStatusparameters. - Changed
imageUrltoimageSourcefor theUsermodel. Change is necessary to show that not only remote URLs are supported but also local assets.
0.0.5 #
⚠️ Breaking changes ⚠️
🔄 Core Changes:
author(typeUser) is replaced withauthorId(typeString) for simpler user management- All
DateTimeproperties now use milliseconds instead of microseconds for JSON serialization
🎨 Theme Simplification: Theme has been streamlined to 3 key parameters:
colors- Uses Material 3 semantic names (e.g.primary,onPrimary,secondary) making it easy to apply color schemestypography- Follows Flutter'sTextThemesemantic naming conventionsshape- Controls border radius of all messages (rounded vs square messages)
✨ Enhanced Customization:
- Individual widget customization available through the
buildersparameter - Example:
loadMoreBuilder: (context) => LoadMore(color: Colors.red)overrides theme colors - Full widget customization possible by returning custom widgets from builders
0.0.4 #
- Added
isOnlyEmojiparameter toTextMessage. - Message builders now include the message index in their parameters.
- Reverted
withValuestowithOpacityto resolve a compatibility issue.
0.0.3 #
- Added
customMessageBuilderfor building custom messages - Added
overlayparameter toImageMessage - Themes:
- Added
ImageMessageTheme(replacingimagePlaceholderColor) - Updated
InputTheme(addingtextFieldColor) - Updated
ScrollToBottomTheme - Updated
TextMessageTheme
- Added
- Added
UploadProgressMixinfor handling upload progress tracking
0.0.2 #
- Bump version to support flutter_chat_ui v2 alpha release
0.0.1 #
- Initial release