Merge branch 'master' into feature/new-ui
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
## 0.2.13
|
||||
|
||||
- Update llc dependency
|
||||
- Send parent_id in typing events
|
||||
- Expose addition input styling options
|
||||
- Expose builder for empty channel state
|
||||
|
||||
## 0.2.12
|
||||
|
||||
- Upgrade dependencies
|
||||
|
||||
@@ -67,6 +67,7 @@ class ChannelListView extends StatefulWidget {
|
||||
this.channelPreviewBuilder,
|
||||
this.separatorBuilder,
|
||||
this.errorBuilder,
|
||||
this.emptyBuilder,
|
||||
this.onImageTap,
|
||||
this.swipeToAction = false,
|
||||
this.pullToRefresh = true,
|
||||
@@ -78,6 +79,9 @@ class ChannelListView extends StatefulWidget {
|
||||
/// If true a default swipe to action behaviour will be added to this widget
|
||||
final bool swipeToAction;
|
||||
|
||||
/// The builder used when the channel list is empty.
|
||||
final WidgetBuilder emptyBuilder;
|
||||
|
||||
/// The query filters to use.
|
||||
/// You can query on any of the custom fields you've defined on the [Channel].
|
||||
/// You can also filter other built-in channel fields.
|
||||
@@ -239,7 +243,11 @@ class _ChannelListViewState extends State<ChannelListView>
|
||||
|
||||
final channels = snapshot.data;
|
||||
|
||||
if (channels.isEmpty) {
|
||||
if (channels.isEmpty && widget.emptyBuilder != null) {
|
||||
return widget.emptyBuilder(context);
|
||||
}
|
||||
|
||||
if (channels.isEmpty && widget.emptyBuilder == null) {
|
||||
return LayoutBuilder(
|
||||
builder: (context, viewportConstraints) {
|
||||
return SingleChildScrollView(
|
||||
|
||||
@@ -445,7 +445,7 @@ class MessageInputState extends State<MessageInput> {
|
||||
return 'Search GIFs';
|
||||
}
|
||||
if (_attachments.isNotEmpty) {
|
||||
return 'Add a command or send';
|
||||
return 'Add a comment or send';
|
||||
}
|
||||
return 'Write a message';
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
name: 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.
|
||||
version: 0.2.12
|
||||
version: 0.2.13
|
||||
repository: https://github.com/GetStream/stream-chat-flutter
|
||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||
|
||||
@@ -27,7 +27,7 @@ dependencies:
|
||||
file_picker: ^2.0.12
|
||||
image_picker: ^0.6.7+2
|
||||
flutter_keyboard_visibility: ^3.3.0
|
||||
stream_chat: ^0.2.11+2
|
||||
stream_chat: ^0.2.13
|
||||
mime: ^0.9.6+3
|
||||
visibility_detector: ^0.1.5
|
||||
http_parser: ^3.1.4
|
||||
|
||||
Reference in New Issue
Block a user