Deprecated disable emoji suggestions flag in favour of enableEmojiSuggestions
This commit is contained in:
@@ -208,6 +208,7 @@ class StreamMessageInput extends StatefulWidget {
|
||||
this.elevation,
|
||||
this.shadow,
|
||||
this.autoCorrect = true,
|
||||
this.disableEmojiSuggestionsOverlay = false,
|
||||
this.enableEmojiSuggestionsOverlay = true,
|
||||
this.enableMentionsOverlay = true,
|
||||
}) : super(key: key);
|
||||
@@ -330,6 +331,11 @@ class StreamMessageInput extends StatefulWidget {
|
||||
/// autoCorrect is enabled by default
|
||||
final bool autoCorrect;
|
||||
|
||||
/// Disable the default emoji
|
||||
/// Enabled by default
|
||||
@Deprecated('Please use enableEmojiSuggestionsOverlay')
|
||||
final bool disableEmojiSuggestionsOverlay;
|
||||
|
||||
/// Disable the default emoji suggestions by passing `false`
|
||||
/// Enabled by default
|
||||
final bool enableEmojiSuggestionsOverlay;
|
||||
@@ -598,7 +604,8 @@ class StreamMessageInputState extends State<StreamMessageInput>
|
||||
visible: _showCommandsOverlay,
|
||||
widget: _buildCommandsOverlayEntry(),
|
||||
),
|
||||
if (widget.enableEmojiSuggestionsOverlay)
|
||||
if (widget.enableEmojiSuggestionsOverlay &&
|
||||
!widget.disableEmojiSuggestionsOverlay)
|
||||
OverlayOptions(
|
||||
visible: _focusNode.hasFocus &&
|
||||
_effectiveController.text.isNotEmpty &&
|
||||
|
||||
Reference in New Issue
Block a user