return Container( margin: EdgeInsets.only(left: 12), width: cardWidth, height:
cardHeihgt, decoration: BoxDecoration( image: DecorationImage( fit:
BoxFit.fill, image: NetworkImage(widget.listModel.liveStreamCover ?? ''), ), ),
child: Stack( children: [ Center( child: Container( width: 33, height: 33,
child: Image.asset(CommonImages.find_main_liveStream_play), ), ), Positioned(
left:12, bottom: 27, child: Container( width: 11, height: 12, child: Image.asset
( CommonImages.find_main_liveStream_open, fit: BoxFit.cover, ), ), ), Positioned
(//换行,定位暂时没有更好的想法,以后再说 left: 26, bottom: 25, right: 11, child: Text( '
${model.title}', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w400,
color: Colors.white,), maxLines: 1, overflow: TextOverflow.ellipsis, ), ),
Positioned( right: 11, bottom: 11, child: Text( model.watchNumberStr ?? '',
style: TextStyle( fontSize: 9, fontWeight: FontWeight.w400, color: Colors.white,
), ), ), ], ), );

技术
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:766591547
关注微信