chore: migrate to latest dependencies

This commit is contained in:
Sahil Kumar
2021-10-05 16:23:30 +05:30
committed by xsahil03x
parent 38a6884465
commit 865ae2cbd7
22 changed files with 142 additions and 120 deletions
@@ -14,7 +14,7 @@ class ChannelMediaDisplayScreen extends StatefulWidget {
/// limit: the number of users to return (max is 30)
/// offset: the offset (max is 1000)
/// message_limit: how many messages should be included to each channel
final PaginationParams? paginationParams;
final PaginationParams paginationParams;
/// The builder used when the file list is empty.
final WidgetBuilder? emptyBuilder;
@@ -26,7 +26,7 @@ class ChannelMediaDisplayScreen extends StatefulWidget {
const ChannelMediaDisplayScreen({
required this.messageTheme,
this.sortOptions,
this.paginationParams,
this.paginationParams = const PaginationParams(limit: 20),
this.emptyBuilder,
this.onShowMessage,
});
@@ -163,7 +163,7 @@ class _ChannelMediaDisplayScreenState extends State<ChannelMediaDisplayScreen> {
['image', 'video'],
),
sort: widget.sortOptions,
pagination: widget.paginationParams!.copyWith(
pagination: widget.paginationParams.copyWith(
offset: messageSearchBloc.messageResponses?.length ?? 0,
),
),