From 976a82204b22bdc506eda8379f7bc1d83e0a9be2 Mon Sep 17 00:00:00 2001 From: kidozh <11661760+kidozh@users.noreply.github.com> Date: Thu, 28 Nov 2024 00:53:02 +0000 Subject: [PATCH] update project --- lib/JsonResult/BilibiliVideoResult.dart | 2 +- lib/JsonResult/BilibiliVideoResult.g.dart | 2 -- lib/widget/BilibiliWidget.dart | 12 ++++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/JsonResult/BilibiliVideoResult.dart b/lib/JsonResult/BilibiliVideoResult.dart index 62ded83..eb3f6ef 100644 --- a/lib/JsonResult/BilibiliVideoResult.dart +++ b/lib/JsonResult/BilibiliVideoResult.dart @@ -45,7 +45,7 @@ class BilibiliVideoViewData{ int pubdate = 0, ctime = 0; String desc = ""; int state = 0; - int duration = 0, mission_id=0; + int duration = 0; BilibiliVideoViewDataOwner owner = BilibiliVideoViewDataOwner(); diff --git a/lib/JsonResult/BilibiliVideoResult.g.dart b/lib/JsonResult/BilibiliVideoResult.g.dart index 9f292c6..8904ebf 100644 --- a/lib/JsonResult/BilibiliVideoResult.g.dart +++ b/lib/JsonResult/BilibiliVideoResult.g.dart @@ -48,7 +48,6 @@ BilibiliVideoViewData _$BilibiliVideoViewDataFromJson( ..desc = json['desc'] as String ..state = (json['state'] as num).toInt() ..duration = (json['duration'] as num).toInt() - ..mission_id = (json['mission_id'] as num).toInt() ..owner = BilibiliVideoViewDataOwner.fromJson( json['owner'] as Map); @@ -68,7 +67,6 @@ Map _$BilibiliVideoViewDataToJson( 'desc': instance.desc, 'state': instance.state, 'duration': instance.duration, - 'mission_id': instance.mission_id, 'owner': instance.owner, }; diff --git a/lib/widget/BilibiliWidget.dart b/lib/widget/BilibiliWidget.dart index 07b5fc7..788cbbd 100644 --- a/lib/widget/BilibiliWidget.dart +++ b/lib/widget/BilibiliWidget.dart @@ -166,7 +166,7 @@ class BilibiliState extends State { child: Row( children: [ Expanded( - flex: 4, + flex: 6, child: CachedNetworkImage( imageUrl: videoResult.data.viewData.pic), ), @@ -180,7 +180,7 @@ class BilibiliState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ RichText( - maxLines: 2, + maxLines: 3, overflow: TextOverflow.ellipsis, text: TextSpan(children: [ WidgetSpan( @@ -222,7 +222,7 @@ class BilibiliState extends State { color: Theme.of(context) .colorScheme .onPrimaryContainer, - fontSize: 18)), + fontSize: 16)), ]), ), SizedBox( @@ -237,8 +237,8 @@ class BilibiliState extends State { padding: EdgeInsets.zero, margin: EdgeInsets.only(top: 8,right: 8), child: SizedBox( - width: 18, - height: 18, + width: 16, + height: 16, child: CircleAvatar( backgroundImage: CachedNetworkImageProvider( @@ -252,7 +252,7 @@ class BilibiliState extends State { TextSpan( text: videoResult.data.viewData.owner.name, style: TextStyle( - fontSize: 16, + fontSize: 14, color: Theme.of(context) .colorScheme .onPrimaryContainer,