We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232214c commit 9cbfcc8Copy full SHA for 9cbfcc8
lib/src/extensions/extensions.dart
@@ -129,7 +129,8 @@ extension ChatViewStateTitleExtension on String? {
129
130
/// Extension on State for accessing inherited widget.
131
extension StatefulWidgetExtension on State {
132
- ChatViewInheritedWidget? get provide => ChatViewInheritedWidget.of(context);
+ ChatViewInheritedWidget? get provide =>
133
+ mounted ? ChatViewInheritedWidget.of(context) : null;
134
135
ReplySuggestionsConfig? get suggestionsConfig =>
136
SuggestionsConfigIW.of(context)?.suggestionsConfig;
0 commit comments