fix(ui): autocomplete clicks on web
This commit is contained in:
@@ -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 mentioning on some 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:
|
||||||
|
|||||||
@@ -610,32 +610,34 @@ class StreamAutocompleteOptions<T extends Object> extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final height = MediaQuery.of(context).size.height;
|
final height = MediaQuery.of(context).size.height;
|
||||||
final colorTheme = StreamChatTheme.of(context).colorTheme;
|
final colorTheme = StreamChatTheme.of(context).colorTheme;
|
||||||
return Card(
|
return TextFieldTapRegion(
|
||||||
margin: margin,
|
child: Card(
|
||||||
elevation: elevation,
|
margin: margin,
|
||||||
color: color ?? colorTheme.barsBg,
|
elevation: elevation,
|
||||||
shape: shape,
|
color: color ?? colorTheme.barsBg,
|
||||||
clipBehavior: clipBehavior,
|
shape: shape,
|
||||||
child: Column(
|
clipBehavior: clipBehavior,
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Column(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
if (headerBuilder != null) ...[
|
children: [
|
||||||
headerBuilder!(context),
|
if (headerBuilder != null) ...[
|
||||||
const Divider(height: 0),
|
headerBuilder!(context),
|
||||||
],
|
const Divider(height: 0),
|
||||||
LimitedBox(
|
],
|
||||||
maxHeight: maxHeight ?? height * 0.5,
|
LimitedBox(
|
||||||
child: ListView.builder(
|
maxHeight: maxHeight ?? height * 0.5,
|
||||||
shrinkWrap: true,
|
child: ListView.builder(
|
||||||
padding: EdgeInsets.zero,
|
shrinkWrap: true,
|
||||||
itemCount: options.length,
|
padding: EdgeInsets.zero,
|
||||||
itemBuilder: (context, index) {
|
itemCount: options.length,
|
||||||
final option = options.elementAt(index);
|
itemBuilder: (context, index) {
|
||||||
return optionBuilder(context, option);
|
final option = options.elementAt(index);
|
||||||
},
|
return optionBuilder(context, option);
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user