deprecate core lists

This commit is contained in:
Salvatore Giordano
2022-04-29 15:52:00 +02:00
parent ba353a2a37
commit 28e8910c11
3 changed files with 15 additions and 0 deletions
@@ -54,6 +54,11 @@ import 'package:stream_chat_flutter_core/src/typedef.dart';
///
/// Make sure to have a [StreamChatCore] ancestor in order to provide the
/// information about the channels.
@Deprecated('''
ChannelListCore is deprecated and will be removed in the next
major version. Use StreamChannelListController instead to create your custom list.
More details here https://getstream.io/chat/docs/sdk/flutter/stream_chat_flutter_core/stream_channel_list_controller
''')
class ChannelListCore extends StatefulWidget {
/// Instantiate a new ChannelListView
const ChannelListCore({
@@ -31,6 +31,11 @@ import 'package:stream_chat_flutter_core/src/typedef.dart';
/// information about the messages.
/// The widget uses a [ListView.separated] to render the list of messages.
///
@Deprecated('''
MessageSearchListCore is deprecated and will be removed in the next
major version. Use StreamMessageSearchListController instead to create your custom list.
More details here https://getstream.io/chat/docs/sdk/flutter/stream_chat_flutter_core/stream_message_search_list_controller
''')
class MessageSearchListCore extends StatefulWidget {
/// Instantiate a new [MessageSearchListView].
/// The following parameters must be supplied and not null:
@@ -53,6 +53,11 @@ import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
///
/// The parameters [listBuilder], [loadingBuilder], [emptyBuilder] and
/// [errorBuilder] must all be supplied and not null.
@Deprecated('''
UserListCore is deprecated and will be removed in the next
major version. Use StreamUserListController instead to create your custom list.
More details here https://getstream.io/chat/docs/sdk/flutter/stream_chat_flutter_core/stream_user_list_controller
''')
class UserListCore extends StatefulWidget {
/// Instantiate a new [UserListCore]
const UserListCore({