Skip to content

Commit

Permalink
fix bug with details page when loading failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed Sep 11, 2022
1 parent 7699d1f commit dcf3d99
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/src/pages/details/details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ class DetailsPage extends StatelessWidget {

Widget buildBody() {
if (state.gallery == null) {
return LoadingStateIndicator(
indicatorRadius: 18,
loadingState: state.loadingState,
errorTapCallback: logic.handleRefresh,
return GetBuilder<DetailsPageLogic>(
id: DetailsPageLogic.loadingStateId,
tag: tag,
builder: (_) => LoadingStateIndicator(
indicatorRadius: 18,
loadingState: state.loadingState,
errorTapCallback: logic.getDetails,
),
);
}

Expand Down

0 comments on commit dcf3d99

Please sign in to comment.