Flutter-RefreshIndicator下拉刷新

小筆記下拉刷新頁面

child: Container(
                child: RefreshIndicator(
                onRefresh: _refresh,
                child:Column()
        )

Future<Null> _refresh() async {
    setState(() {
      _list.clear();
      _serviceList.clear();
      _describeList.clear();
    });
    _getCourse();
    _getAdvertisement();
    _getTuitionService();
    return;
  }

還有上拉加載數據需要學習

原文地址:https://www.cnblogs.com/ssjf/p/12692395.html