chore: deprecate ChannelPreview in favor of StreamChannelListTile.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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