deprecate old widgets

This commit is contained in:
Salvatore Giordano
2022-02-01 12:03:29 +01:00
parent e80cebe9aa
commit 6351fa0a5f
3 changed files with 11 additions and 2 deletions
@@ -46,8 +46,8 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
/// Modify it to change the widget appearance.
@Deprecated(
"'ChannelName' is deprecated and shouldn't be used. "
"Please use 'StreamChannelName' instead.",
"'ChannelAvatar' is deprecated and shouldn't be used. "
"Please use 'StreamChannelAvatar' instead.",
)
class ChannelAvatar extends StatelessWidget {
/// Instantiate a new ChannelImage
@@ -4,6 +4,10 @@ import 'package:stream_chat_flutter/src/extension.dart';
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
/// Bottom Sheet with options
@Deprecated(
"'ChannelBottomSheet' is deprecated and shouldn't be used. "
"Please use 'StreamChannelBottomSheet' instead.",
)
class ChannelBottomSheet extends StatefulWidget {
/// Constructor for creating bottom sheet
const ChannelBottomSheet({Key? key, this.onViewInfoTap}) : super(key: key);
@@ -15,6 +19,7 @@ class ChannelBottomSheet extends StatefulWidget {
_ChannelBottomSheetState createState() => _ChannelBottomSheetState();
}
// ignore: deprecated_member_use_from_same_package
class _ChannelBottomSheetState extends State<ChannelBottomSheet> {
bool _showActions = true;
@@ -16,6 +16,10 @@ import 'package:stream_chat_flutter_core/src/stream_controller_extension.dart';
/// using Flutter's [BuildContext].
///
/// API docs: https://getstream.io/chat/docs/flutter-dart/query_channels/
@Deprecated(
"'ChannelsBloc' is deprecated and shouldn't be used. "
"Please use 'StreamChannelListView' instead.",
)
class ChannelsBloc extends StatefulWidget {
/// Creates a new [ChannelsBloc]. The parameter [child] must be supplied and
/// not null.