File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
* ** Feat** : [ 251] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/251 ) Add
4
4
support to provide a type of suggestions item(Scrollable or Multi Line).
5
- * ** Fix** : [ 281] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/281 ) Fix date
5
+ * ** Fix** : [ 281] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/281 ) Fix date
6
6
and time divider in between messages
7
7
* ** Fix** : [ 282] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/pull/282 ) Upgrade
8
8
version of audio wave forms 1.2.0
9
9
* ** Fix** : [ 276] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/276 ) link preview
10
10
custom error message
11
11
* ** Feat** : [ 280] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/280 ) ability to
12
12
disable link preview
13
+ * ** Fix** : [ 253] ( https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/253 )
14
+ chatTextFieldViewKey key gets re-initialized every widget render
13
15
14
16
## [ 2.3.0]
15
17
Original file line number Diff line number Diff line change @@ -179,10 +179,13 @@ class _ChatViewState extends State<ChatView>
179
179
180
180
FeatureActiveConfig get featureActiveConfig => widget.featureActiveConfig;
181
181
182
+ late GlobalKey chatTextFieldViewKey;
183
+
182
184
@override
183
185
void initState () {
184
186
super .initState ();
185
187
setLocaleMessages ('en' , ReceiptsCustomMessages ());
188
+ chatTextFieldViewKey = GlobalKey ();
186
189
}
187
190
188
191
@override
@@ -196,6 +199,7 @@ class _ChatViewState extends State<ChatView>
196
199
chatController: chatController,
197
200
featureActiveConfig: featureActiveConfig,
198
201
profileCircleConfiguration: widget.profileCircleConfig,
202
+ chatTextFieldViewKey: chatTextFieldViewKey,
199
203
child: SuggestionsConfigIW (
200
204
suggestionsConfig: widget.replySuggestionsConfig,
201
205
child: Builder (builder: (context) {
Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ class ChatViewInheritedWidget extends InheritedWidget {
10
10
required Widget child,
11
11
required this .featureActiveConfig,
12
12
required this .chatController,
13
+ required this .chatTextFieldViewKey,
13
14
this .profileCircleConfiguration,
14
15
}) : super (key: key, child: child);
15
16
final FeatureActiveConfig featureActiveConfig;
16
17
final ProfileCircleConfiguration ? profileCircleConfiguration;
17
18
final ChatController chatController;
18
- final GlobalKey chatTextFieldViewKey = GlobalKey () ;
19
+ final GlobalKey chatTextFieldViewKey;
19
20
final ValueNotifier <bool > showPopUp = ValueNotifier (false );
20
21
final GlobalKey <ReactionPopupState > reactionPopupKey = GlobalKey ();
21
22
You can’t perform that action at this time.
0 commit comments