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(),
                ),

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM