头像图片的大小不想改变并且我无法控制间距
这就是我想改变它的方式:

FilterChip(
backgroundColor: _changeColor(t),
avatar: Image.asset('assets/types/$t.png',),
label: Text(t,overflow: TextOverflow.ellipsis,
style: TextStyle(color: Colors.white)),onSelected: (b){},
),
Run Code Online (Sandbox Code Playgroud) 所以我试图在 Inkwell 小部件上加载近一千个 gif,其中包含一个盒子装饰图像网络中的 Hero 子元素,我想了解处理此问题的最佳实践,因为加载需要很长时间,我希望它通过第一个出现的,无论是正常的还是通过过滤的,那么 flutter 开发人员如何处理这个问题呢?
那么我如何通过决定首先加载哪个 NetworkImage 来支持慢速互联网用户
InkWell(
onTap: (){
Navigator.push(context, MaterialPageRoute(builder:(context)=>GifDetail(
gifs: gifs,
)));
},
child: Hero(
tag: gifs.url,
child: Card(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(
height: 110,
width: 110,
decoration: BoxDecoration(
image: DecorationImage(image: NetworkImage(gifs.url))
),
),
],
),
),
),
),
Run Code Online (Sandbox Code Playgroud)