flutter TabBarView添加列表加上加载更多

TabBarView(
                  controller: _controller,
                  children: _tabValues.map((f) {
                    return EasyRefresh(
                      refreshFooter: ClassicsFooter(
                        key: _footerKey,
                        bgColor: Colors.white,
                        textColor: Colors.red,
                        moreInfoColor: Colors.red,
                        showMore: true,
                        noMoreText: '没有数据了',
                        moreInfo: "加载更多", //
                        loadReadyText: "加载中", // 上拉加载
                      ),
                      child: ListView( // 内容主体部分
                        children: [
                          cardBoxList()
                        ],
                      ),
                      loadMore: () async {
                        _loadData();
                      },
                    );
                  }).toList(),
                ),

 

posted @ 2020-09-07 15:53  lude1994  阅读(865)  评论(0)    收藏  举报