I want to implement pagination in GridView I use GridView.builder I want to download 10 by 10 items when the user reaches the last row
相关问题
- What means in Dart static type and why it differs
- Flutter : Prepare list data from http request
- How to schedule an alarm on specific time in Flutt
- MappedListIterable is not a SubType
- 'firebase_messaging/FirebaseMessagingPlugin.h&
相关文章
- Observatory server failed to start - Fails to crea
- Flutter error retrieving device properties for ro.
- Adding Shadows at the bottom of a container in flu
- Flutter. Check if a file exists before loading it
- Flutter - http.get fails on macos build target: Co
- Receive share file intents with Flutter
- Do stateless widgets dispose on their own?
- How to clean your build with Flutter RP2 in Androi
I also needed this but couldn't find any widget for the
gridview
pagination
, so I tried to make a component based on @Mazin Ibrahim's answer below. It seems to be working but not sure if it is the right way to do this.Example -
You can use this plugin here: Paging. Wrap your GridView inside of it and tell me if this works!
You can do this using a
NotificationListener
. As a simple demonstration it will increase the length of yourGridView
whenever it reaches end of page :create a Scroll controller
add a scroll event listener
Now just need to set the controller in your
GridView
,ListView
and ...