diff --git a/CHANGELOG.md b/CHANGELOG.md index 03db8a6d..945199b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/channel_list_view.dart b/lib/src/channel_list_view.dart index 9f09235b..a10ad4bc 100644 --- a/lib/src/channel_list_view.dart +++ b/lib/src/channel_list_view.dart @@ -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 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( diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 872864bd..6024169b 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -445,7 +445,7 @@ class MessageInputState extends State { return 'Search GIFs'; } if (_attachments.isNotEmpty) { - return 'Add a command or send'; + return 'Add a comment or send'; } return 'Write a message'; } diff --git a/pubspec.yaml b/pubspec.yaml index ccbc8463..9c1b0a29 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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