diff --git a/CHANGELOG.md b/CHANGELOG.md index 790d9884..94e1cc1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## [1.3.2] (Unreleased) +* **Fix**: [174](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/174) Fix + wrong username shown while replying to any messages. * **Fix**: [134](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/134) Added a reply message view for custom message type. * **Feat**: [157](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/pull/157) diff --git a/lib/src/widgets/send_message_widget.dart b/lib/src/widgets/send_message_widget.dart index 26731566..fad40d3a 100644 --- a/lib/src/widgets/send_message_widget.dart +++ b/lib/src/widgets/send_message_widget.dart @@ -100,7 +100,6 @@ class SendMessageWidgetState extends State { @override Widget build(BuildContext context) { - final replyTitle = "${PackageStrings.replyTo} $_replyTo"; return widget.sendMessageBuilder != null ? Positioned( right: 0, @@ -136,6 +135,8 @@ class SendMessageWidgetState extends State { children: [ ValueListenableBuilder( builder: (_, state, child) { + final replyTitle = + "${PackageStrings.replyTo} $_replyTo"; if (state.message.isNotEmpty) { return Container( decoration: BoxDecoration(