Skip to content

Commit

Permalink
Refactor _PagedResultList widget slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
petlyh committed Nov 7, 2024
1 parent b762e94 commit a1f63b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/screens/search/result_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,12 @@ class _PagedResultList<T extends ResultType> extends HookWidget {
final Name name => NameItem(name: name),
},
newPageErrorIndicatorBuilder: (context) {
final error = controller.error as (Object, StackTrace);
final (error, stackTrace) =
controller.error as (Object, StackTrace);

return ErrorIndicator(
error: error.$1,
stackTrace: error.$2,
error: error,
stackTrace: stackTrace,
onRetry: controller.retryLastFailedRequest,
isCompact: true,
);
Expand Down

0 comments on commit a1f63b7

Please sign in to comment.