Skip to content

2.0.0-dev.7

Pre-release
Pre-release

Choose a tag to compare

@demchenkoalex demchenkoalex released this 16 Mar 22:35
· 172 commits to main since this release

⚠️ Breaking Changes ⚠️

  • Changed dependency from flutter_markdown to gpt_markdown for the FlyerChatTextMessage class
  • onMessageTap callback now includes message index and tap up details - updated parameters to (Message item, {int? index, TapUpDetails? details})
  • Added more customization options to ChatInput, with default capitalization set to sentences
  • Changed default behavior of Enter key in ChatInput to create a newline instead of sending message
    • To send message on Enter, set textInputAction: TextInputAction.send when configuring ChatInput through builders
    • See local.dart example for how to use builders to customize input behavior

⚠️ New features ⚠️

  • Add ScrollToMessageMixin to enable programmatic scrolling in chat list:
    • scrollToMessage(messageId): Scrolls to a specific message by ID
    • scrollToIndex(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 ChatController instance
    • See the pagination example in the example project for usage details
  • Add validation to prevent duplicate message IDs
  • Added support for sending messages using Shift+Enter keyboard shortcut in ChatInput

🐛 Bug Fixes

  • Fixed flickering in avatar widget by implementing a user cache with LRU eviction strategy, allowing synchronous access to recently resolved user data