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,
),
),
),
],
),
);
|