Container(
width: 1.sw,
height: 200.h,
child: ShaderMask(
shaderCallback: (Rect bounds) {
return LinearGradient(
colors: [
Colors.black.withOpacity(0.45),
Colors.transparent,
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
stops: [0.0, 0.45],
tileMode: TileMode.clamp,
).createShader(bounds);
},
blendMode: BlendMode.darken,
child: CachedNetworkImage(
imageUrl: baseinfo.bannerinfo[index]
['covers'],
fit: BoxFit.cover,
),
),
),
版权属于:
narakuyang
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论