From f7b571d96956bf4204d0d7089d31f6b6adf2483d Mon Sep 17 00:00:00 2001 From: pdenert Date: Tue, 12 Mar 2024 17:04:16 +0100 Subject: [PATCH] Change `PaginatedCubitLayout` firstPageError callback to `cubit.refresh` --- lib/src/paginated/paginated_cubit_layout.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/paginated/paginated_cubit_layout.dart b/lib/src/paginated/paginated_cubit_layout.dart index b9ae2fa..8cd2d43 100644 --- a/lib/src/paginated/paginated_cubit_layout.dart +++ b/lib/src/paginated/paginated_cubit_layout.dart @@ -164,7 +164,7 @@ class PaginatedCubitLayout extends StatelessWidget { final callback = firstPageErrorBuilder ?? config.onFirstPageError; return SliverFillRemaining( hasScrollBody: false, - child: callback(context, error, cubit.run), + child: callback(context, error, cubit.refresh), ); }