Skip to content

Commit

Permalink
Change PaginatedCubitLayout firstPageError callback to cubit.refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
pdenert committed Mar 12, 2024
1 parent 4f4216d commit f7b571d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/paginated/paginated_cubit_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class PaginatedCubitLayout<TData, TItem> extends StatelessWidget {
final callback = firstPageErrorBuilder ?? config.onFirstPageError;
return SliverFillRemaining(
hasScrollBody: false,
child: callback(context, error, cubit.run),
child: callback(context, error, cubit.refresh),
);
}

Expand Down

0 comments on commit f7b571d

Please sign in to comment.