From d559096583b07a20c08785d5acee6fb016460b48 Mon Sep 17 00:00:00 2001 From: Alex Demchenko Date: Mon, 5 Feb 2024 22:30:35 +0100 Subject: [PATCH] remove defaultBubbleMessage --- CHANGELOG.md | 4 ++++ lib/src/widgets/chat.dart | 1 - lib/src/widgets/message/message.dart | 2 -- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6f5ae19..5cca528c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.6.12 + +- Remove `defaultBubbleMessage` from the `bubbleBuilder` as it breaks compatibility. If you need this please use previous release, this is the only change here. Next should be v2.0.0 preview. + ## 1.6.11 - Small patch release while 2.0.0 is still in the works. diff --git a/lib/src/widgets/chat.dart b/lib/src/widgets/chat.dart index 5bf60a6a..2684ead5 100644 --- a/lib/src/widgets/chat.dart +++ b/lib/src/widgets/chat.dart @@ -117,7 +117,6 @@ class Chat extends StatefulWidget { Widget child, { required types.Message message, required bool nextMessageInGroup, - required Widget defaultBubbleMessage, })? bubbleBuilder; /// See [Message.bubbleRtlAlignment]. diff --git a/lib/src/widgets/message/message.dart b/lib/src/widgets/message/message.dart index 6a9faa0f..5c5d6449 100644 --- a/lib/src/widgets/message/message.dart +++ b/lib/src/widgets/message/message.dart @@ -74,7 +74,6 @@ class Message extends StatelessWidget { Widget child, { required types.Message message, required bool nextMessageInGroup, - required Widget defaultBubbleMessage, })? bubbleBuilder; /// Determine the alignment of the bubble for RTL languages. Has no effect @@ -227,7 +226,6 @@ class Message extends StatelessWidget { _messageBuilder(), message: message, nextMessageInGroup: roundBorder, - defaultBubbleMessage: defaultMessage, ) : defaultMessage; } diff --git a/pubspec.yaml b/pubspec.yaml index 57c41d13..a7c6ce9f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_chat_ui description: > Actively maintained, community-driven chat UI implementation with an optional Firebase BaaS. -version: 1.6.11 +version: 1.6.12 homepage: https://flyer.chat repository: https://github.com/flyerhq/flutter_chat_ui