bump deps
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart'
|
||||
show
|
||||
Channel,
|
||||
ChannelListController,
|
||||
ChannelListCore,
|
||||
ChannelsBloc,
|
||||
LazyLoadScrollView,
|
||||
Level,
|
||||
PaginationParams,
|
||||
SortOption,
|
||||
StreamChatClient,
|
||||
StreamChatCore,
|
||||
User;
|
||||
hide ChannelListView;
|
||||
|
||||
import 'package:imessage/channel_list_view.dart';
|
||||
|
||||
@@ -64,14 +53,10 @@ class ChatLoader extends StatelessWidget {
|
||||
child: ChannelsBloc(
|
||||
child: ChannelListCore(
|
||||
channelListController: channelListController,
|
||||
filter: {
|
||||
'members': {
|
||||
r'$in': [user.id],
|
||||
},
|
||||
'type': {
|
||||
r'$eq': 'messaging',
|
||||
},
|
||||
},
|
||||
filter: Filter.and([
|
||||
Filter.in_('members', [user.id]),
|
||||
Filter.equal('type', 'messaging'),
|
||||
]),
|
||||
sort: [SortOption('last_message_at')],
|
||||
pagination: PaginationParams(
|
||||
limit: 20,
|
||||
@@ -102,12 +87,12 @@ class ChatLoader extends StatelessWidget {
|
||||
) =>
|
||||
LazyLoadScrollView(
|
||||
onEndOfPage: () async {
|
||||
channelListController.paginateData();
|
||||
return channelListController.paginateData();
|
||||
},
|
||||
child: CustomScrollView(
|
||||
slivers: [
|
||||
CupertinoSliverRefreshControl(onRefresh: () async {
|
||||
channelListController.loadData();
|
||||
return channelListController.loadData();
|
||||
}),
|
||||
ChannelPageAppBar(),
|
||||
SliverPadding(
|
||||
@@ -116,6 +101,9 @@ class ChatLoader extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
))));
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,11 +23,11 @@ environment:
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
intl: ^0.16.1
|
||||
stream_chat_flutter: ^1.3.0-beta
|
||||
animations: ^1.0.0+5
|
||||
collection: ^1.14.13
|
||||
cached_network_image: ^2.0.0-rc
|
||||
intl: ^0.17.0
|
||||
stream_chat_flutter: ^2.0.0-nullsafety.3
|
||||
animations: ^2.0.0
|
||||
collection: ^1.15.0
|
||||
cached_network_image: ^3.0.0
|
||||
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
|
||||
Reference in New Issue
Block a user