Closed clragon closed 3 years ago
Hi @clragon . Do you have any screenshots of the kind of layout you're trying to achieve? Thank you
Hi @EdsonBueno ,
Here is a diagram of the layout I would like to achieve:
this package can easily provide loading indicators for grid views, but since my data can also be viewed in a page view, it would be nice to have some kind of support for page view pagination etc...
I would understand if this is not the goal of this package though.
Thank you for the diagram @clragon .
Please, try replacing your PageView
with a PagedListView
with the following properties:
scrollDirection: Axis.horizontal,
physics: const PageScrollPhysics(),
I'm closing this due to inactivity, but feel free to continue the discussion. Thank you
hi @EdsonBueno,
I have looked at the approach with PageScrollPhysics
but my app also makes use of PageController
s function to be notified when the page is changed or to animate to / jump to specific items, which doesn't seem to be possible here.
any work around for this ?
hey @EdsonBueno i think i have same feature request. i am developing kind of tiktok; where each media take full height.
Pageview is the right widget for the task, but it will be awesome to have goodness from infinite_scroll_pagination with pageview..
Hey guys, I'll look on adding that to the package in the future, I'm just not sure when I'll have the time for that. In the meantime you have two solutions:
PagedListView
this way. The problem is you won't be able to use PageController
to programmatically jump to specific items.PagedPageView
using this method. It shouldn't be hard. @clragon mentioned he was worried this solution is only suitable for vertical scroll, but that isn't true.Hey guys, I'll look on adding that to the package in the future, I'm just not sure when I'll have the time for that. In the meantime you have two solutions:
- Use
PagedListView
this way. The problem is you won't be able to usePageController
to programmatically jump to specific items.- Try creating a
PagedPageView
using this method. It shouldn't be hard. @clragon mentioned he was worried this solution is only suitable for vertical scroll, but that isn't true.
@EdsonBueno In case of List and Grid, we could use the AppendDelegate thing to append the list to the end. In case of Page, its not an implementation of scrollbox and yet it is made by a scrolllistener which rendering a child inside a Viewport. So say putting PageView directly under the completedListingBuilder
will not give you the same effect for Page.
Not sure I understand what you mean @vin-fandemand . Can you try explaining it another way?
The AppendedSliverChildBuilderDelegate
is a utility only to add the indicators as the last item of the Grid/List.
@EdsonBueno got it, I created a PagedPageView with the method you recommended. I will make an MR for it.
Some of the grids in my app can be opened into a PageView. When the end of the pageview is reached, new data should be loaded and the grid should be also updated with that data. Using the pagingcontroller with the grid should be easy enough, and triggering an update from somewhere else should also work.
Could we get support for pageviews? I assume the PagedSliverBuilder is a vertical scroll view, and not suitable for this task.