Merge pull request #1582 from GetStream/chore/deprecate-channel-preview
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
- Updated `shimmer` dependency to `^3.0.0`.
|
||||
- Updated `image_gallery_saver` dependency to `^2.0.1`.
|
||||
- Deprecated `ChannelPreview` in favor of `StreamChannelListTile`.
|
||||
|
||||
## 6.1.0
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ import 'package:stream_chat_persistence/stream_chat_persistence.dart';
|
||||
|
||||
final chatPersistentClient = StreamChatPersistenceClient(
|
||||
logLevel: Level.INFO,
|
||||
connectionMode: ConnectionMode.background,
|
||||
connectionMode: ConnectionMode.regular,
|
||||
);
|
||||
|
||||
final client = StreamChatClient(
|
||||
|
||||
@@ -24,6 +24,7 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
/// The UI is rendered based on the first ancestor of type [StreamChatTheme].
|
||||
/// Modify it to change the widget's appearance.
|
||||
/// {@endtemplate}
|
||||
@Deprecated('Use StreamChannelListTile instead.')
|
||||
class ChannelPreview extends StatelessWidget {
|
||||
/// {@macro channelPreview}
|
||||
const ChannelPreview({
|
||||
|
||||
@@ -90,6 +90,7 @@ typedef ChannelInfoCallback = void Function(Channel);
|
||||
/// {@template channelPreviewBuilder}
|
||||
/// Builder used to create a custom [ChannelPreview] for a [Channel]
|
||||
/// {@endtemplate}
|
||||
@Deprecated('Use StreamChannelListViewIndexedWidgetBuilder instead')
|
||||
typedef ChannelPreviewBuilder = Widget Function(BuildContext, Channel);
|
||||
|
||||
/// {@template viewInfoCallback}
|
||||
|
||||
Reference in New Issue
Block a user