Merge pull request #168 from GetStream/hotfix/channelPreview
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "stream-chat-flutter",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "dart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "example",
|
||||||
|
"cwd": "example",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "dart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## 0.2.16
|
||||||
|
|
||||||
|
- Do not wrap channel preview builder. Users will have to implement they're custom onTap/onLongPress implementation
|
||||||
|
- Make public autofocus field of the TextField of message_input
|
||||||
|
|
||||||
## 0.2.15
|
## 0.2.15
|
||||||
|
|
||||||
- Add onLongPress on channel when using custom channel builder
|
- Add onLongPress on channel when using custom channel builder
|
||||||
|
|||||||
@@ -316,28 +316,9 @@ class _ChannelListViewState extends State<ChannelListView>
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
Widget child;
|
Widget child;
|
||||||
if (widget.channelPreviewBuilder != null) {
|
if (widget.channelPreviewBuilder != null) {
|
||||||
child = Stack(
|
child = widget.channelPreviewBuilder(
|
||||||
children: [
|
context,
|
||||||
widget.channelPreviewBuilder(
|
channel,
|
||||||
context,
|
|
||||||
channel,
|
|
||||||
),
|
|
||||||
Positioned.fill(
|
|
||||||
child: Material(
|
|
||||||
color: Colors.transparent,
|
|
||||||
child: InkWell(
|
|
||||||
onTap: () {
|
|
||||||
onTap(channel, widget.channelWidget);
|
|
||||||
},
|
|
||||||
onLongPress: widget.onChannelLongPress != null
|
|
||||||
? () {
|
|
||||||
widget.onChannelLongPress(channel);
|
|
||||||
}
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
child = ChannelPreview(
|
child = ChannelPreview(
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class MessageInput extends StatefulWidget {
|
|||||||
this.attachmentThumbnailBuilders,
|
this.attachmentThumbnailBuilders,
|
||||||
this.inputTextStyle,
|
this.inputTextStyle,
|
||||||
this.attachmentIconColor,
|
this.attachmentIconColor,
|
||||||
this.autofocus,
|
this.autofocus = false,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
/// Message to edit
|
/// Message to edit
|
||||||
@@ -262,7 +262,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
style: widget.inputTextStyle ?? Theme.of(context).textTheme.bodyText2,
|
style: widget.inputTextStyle ?? Theme.of(context).textTheme.bodyText2,
|
||||||
autofocus: widget.autofocus ?? false,
|
autofocus: widget.autofocus,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Write a message',
|
hintText: 'Write a message',
|
||||||
hintStyle:
|
hintStyle:
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 0.2.15
|
version: 0.2.16
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user