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].
|
/// The UI is rendered based on the first ancestor of type [StreamChatTheme].
|
||||||
/// Modify it to change the widget's appearance.
|
/// Modify it to change the widget's appearance.
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
|
@Deprecated('Use StreamChannelListTile instead.')
|
||||||
class ChannelPreview extends StatelessWidget {
|
class ChannelPreview extends StatelessWidget {
|
||||||
/// {@macro channelPreview}
|
/// {@macro channelPreview}
|
||||||
const ChannelPreview({
|
const ChannelPreview({
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ typedef ChannelInfoCallback = void Function(Channel);
|
|||||||
/// {@template channelPreviewBuilder}
|
/// {@template channelPreviewBuilder}
|
||||||
/// Builder used to create a custom [ChannelPreview] for a [Channel]
|
/// Builder used to create a custom [ChannelPreview] for a [Channel]
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
|
@Deprecated('Use StreamChannelListViewIndexedWidgetBuilder instead')
|
||||||
typedef ChannelPreviewBuilder = Widget Function(BuildContext, Channel);
|
typedef ChannelPreviewBuilder = Widget Function(BuildContext, Channel);
|
||||||
|
|
||||||
/// {@template viewInfoCallback}
|
/// {@template viewInfoCallback}
|
||||||
|
|||||||
Reference in New Issue
Block a user