类似于App的轮播图,要求图片高度固定为200,宽度铺满屏幕
ConstrainedBox(
constraints: const BoxConstraints.expand(width: double.infinity, height: 200),
child: Image.network('https://i0.hdslb.com/bfs/live/8353d5fd51d3abbb883f299ba45f39fa51fef3ad.png@672w_378h_1c.webp', fit: BoxFit.cover,),
)
效果如下图