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