错误: type 'Null' is not a subtype of type 'List<int>' in type cast
解决方案:使用异步方法,延迟刷新页面
解决效果图:
关键代码:
body: RefreshIndicator(
child: Image.network(
"http://www.devio.org/img/avatar.png",
width: 50,
height: 50,