Merge pull request #1572 from geweald/bugfix/autocomplete-web

This commit is contained in:
Sahil Kumar
2023-05-25 18:03:18 +05:30
committed by GitHub
3 changed files with 8 additions and 5 deletions
@@ -20,6 +20,7 @@
for `WebOrDesktopAttachmentPickerOption` in `StreamMessageInput`. for `WebOrDesktopAttachmentPickerOption` in `StreamMessageInput`.
- [[#1250]](https://github.com/GetStream/stream-chat-flutter/issues/1250) Fixed bottomRow widgetSpans getting resized - [[#1250]](https://github.com/GetStream/stream-chat-flutter/issues/1250) Fixed bottomRow widgetSpans getting resized
twice when `textScaling` is enabled. twice when `textScaling` is enabled.
- [[#1498]](https://github.com/GetStream/stream-chat-flutter/issues/1498) Fixed `MessageInput` autocomplete not working on non-mobile platforms.
✅ Added ✅ Added
@@ -28,7 +28,7 @@ dependencies:
cupertino_icons: ^1.0.4 cupertino_icons: ^1.0.4
flutter: flutter:
sdk: flutter sdk: flutter
responsive_builder: ^0.6.4 responsive_builder: ^0.7.0
stream_chat_flutter: stream_chat_flutter:
path: ../ path: ../
stream_chat_localizations: stream_chat_localizations:
@@ -507,10 +507,12 @@ class _StreamAutocompleteState extends State<StreamAutocomplete> {
final anchor = widget.optionsAlignment._toAnchor(); final anchor = widget.optionsAlignment._toAnchor();
final shouldShowOptions = _shouldShowOptions; final shouldShowOptions = _shouldShowOptions;
final optionViewBuilder = shouldShowOptions final optionViewBuilder = shouldShowOptions
? _currentTrigger!.optionsViewBuilder( ? TextFieldTapRegion(
context, child: _currentTrigger!.optionsViewBuilder(
_currentQuery!, context,
_messageEditingController, _currentQuery!,
_messageEditingController,
),
) )
: null; : null;