Closed pinktoadette closed 11 months ago
just wrap this with GetX builder on the widget side
PagedSliverList<int, MyList>.separated(
pagingController: getController.pagingController,
...
)
Then update your item in GetxController
item.foo = "updated"
update(); --> from GetXController
When moving pagingControls to GetXControllers, the pagination cannot get the new updates.
page.dart
getController.dart I have something a bit more, general idea is just updating one of the items
You can see the item gets updated in pagingControllers in getX controller, but PagedSliverlist isn't wrapped with obx and shouldn't, but it can't receive changes from pagingController.
Using refresh works, but will trigger an entire page refresh and loses the placement when a user hits back, which is not desire.
Any other ways to get it update?