ListView.build|ListView.build 顶部留白

把ListView.build改成ListView.custom,同时 padding 的top 设置为 0 即可。例如: ListView.custom( padding: EdgeInsets.only(top: 0), childrenDelegate: SliverChildBuilderDelegate( (ctx,index){ return ...; }, childCount: 10), );

    推荐阅读