deprecate old widgets
This commit is contained in:
@@ -44,6 +44,11 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
/// The widget renders the ui based on the first ancestor of type
|
||||
/// [StreamChatTheme].
|
||||
/// Modify it to change the widget appearance.
|
||||
|
||||
@Deprecated(
|
||||
"'ChannelName' is deprecated and shouldn't be used. "
|
||||
"Please use 'StreamChannelName' instead.",
|
||||
)
|
||||
class ChannelAvatar extends StatelessWidget {
|
||||
/// Instantiate a new ChannelImage
|
||||
const ChannelAvatar({
|
||||
|
||||
@@ -52,6 +52,10 @@ typedef ViewInfoCallback = void Function(Channel);
|
||||
/// The widget components render the ui based on the first ancestor of
|
||||
/// type [StreamChatTheme].
|
||||
/// Modify it to change the widget appearance.
|
||||
@Deprecated(
|
||||
"'ChannelListView' is deprecated and shouldn't be used. "
|
||||
"Please use 'StreamChannelListView' instead.",
|
||||
)
|
||||
class ChannelListView extends StatefulWidget {
|
||||
/// Instantiate a new ChannelListView
|
||||
ChannelListView({
|
||||
|
||||
@@ -6,6 +6,10 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
///
|
||||
/// The widget uses a [StreamBuilder] to render the channel information
|
||||
/// image as soon as it updates.
|
||||
@Deprecated(
|
||||
"'ChannelName' is deprecated and shouldn't be used. "
|
||||
"Please use 'StreamChannelName' instead.",
|
||||
)
|
||||
class ChannelName extends StatelessWidget {
|
||||
/// Instantiate a new ChannelName
|
||||
const ChannelName({
|
||||
|
||||
Reference in New Issue
Block a user