EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
632 stars 215 forks source link

Center Try again widget #121

Closed chitgoks closed 3 years ago

chitgoks commented 3 years ago

Screenshot_20210718_232355_org droidgox katunog

perhaps an option to set this at vertical center?

EdsonBueno commented 3 years ago

Hey @chitgoks . Try playing with the shrinkWrapFirstPageIndicators property of your PagedListView. Thanks.

chitgoks commented 3 years ago

hi @EdsonBueno shrinkWrapFirstPageIndicators is only true or false and nothing changed regardless. Perhaps you mean firstPageErrorIndicatorBuilder? I wish to use the same widget as the one above which is the default the library uses. I only wish to have this centered vertically.

chitgoks commented 3 years ago

The issue here is FirstPageExceptionIndicator . Column should have mainAxisAlignment: MainAxisAlignment.center so it will be vertically aligned at the center.

Can a feature request be possible, such that to add a property to have this center aligned vertically? does not look good if it is at the top.

EdsonBueno commented 3 years ago

Hey @chitgoks . In that case I recommend you to replace the default indicator with one of your own using the firstPageErrorIndicatorBuilder.

chitgoks commented 3 years ago

your default is pretty much ok. its jsut the vertical alignment thats the issue. ill just copy your dart file then if you dont plan to add an option.