Relative Content

Tag Archive for flutterpaginationsetstateinfinite-scroll

Flutter Pagination & Provider: setState() or markNeedsBuild() called during build in NotificationListener

I am currently building a GridView for an image gallery in Flutter, utilizing a provider to manage my media list and to integrate a caching system. The GridView is designed to work with pagination, where the first 30 items are fetched and displayed, and additional items are fetched only when the user scrolls to the bottom of the ListView. The GridView is shrink-wrapped inside the ListView to accommodate additional widgets on the screen.