Flutter — EasyRefresh

场景1

body{
    Column[
    Container(),
    EasyRefresh(
      Container(
         ListView.builder(
           itemBuilder() 
         )
       ),
    )
  ]
}

a、column中包含easyRefresh,会报错,easyRefresh要用expend包裹住

b、用expend包裹后仍不能滑动,要去掉listView外的Container

        Expanded(
          child: EasyRefresh(
            child: ListView.builder(
                 itemCount: 2,
                 itemBuilder: (context,index){
                   return Container(
                        color: Colors.white,
                        margin: EdgeInsets.only(left: 15,right: 10),
                        child: Row(
                          children: [
                            ClipOval(
                              child: FadeInImage.assetNetwork(
                                placeholder: 'assets/images/default_icon_v1.png',
                                image: 'https://gimg2.baidu.com/image_search',
                                height: 60,
                                width: 60,
                                fit: BoxFit.cover,
                              ),
                            ),
                            
                          ],
                        ),
                   );
                 }),
          ),
        )

你可能感兴趣的:(#Flutter实践问题收集,flutter)