feat: 自定义列数

This commit is contained in:
guozhigq
2023-10-04 23:15:46 +08:00
parent d83b4bc59e
commit 692d596818
6 changed files with 70 additions and 45 deletions

View File

@ -287,23 +287,18 @@ class VideoStat extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
children: [
Text(
'${videoItem.stat.view}观看',
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
color: Theme.of(context).colorScheme.outline,
),
return RichText(
maxLines: 1,
text: TextSpan(
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
color: Theme.of(context).colorScheme.outline,
),
Text(
'${videoItem.stat.danmu}弹幕',
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
color: Theme.of(context).colorScheme.outline,
),
),
],
children: [
TextSpan(text: '${videoItem.stat.view}观看'),
TextSpan(text: '${videoItem.stat.danmu}弹幕'),
],
),
);
}
}