Flutter: ListView Builder inside SliverList

后端 未结 1 1331
一向
一向 2020-12-12 06:34

I am trying to use Flutter EasyRefresh plugin in Listbox Builder. https://pub.dev/packages/flutter_easyrefresh

Earlier I was using Scroll Controller for load more fun

相关标签:
1条回答
  • 2020-12-12 07:04

    You need to await for getData(), instead of await delayed 2 seconds. Once the future is completed, you should change the state of your widget

    Your code should we something like:

    1. await getData();
    2. update the state
    0 讨论(0)
提交回复
热议问题