Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-19 18:15:22 +08:00
parent 33738c90bc
commit 4f2bfb8126
5 changed files with 25 additions and 17 deletions

View File

@@ -402,6 +402,8 @@ class _FavDetailPageState extends State<FavDetailPage> with GridMixin {
Expanded(
child: Text(
folderInfo.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: theme.textTheme.titleMedium!.fontSize,
fontWeight: FontWeight.bold,

View File

@@ -614,6 +614,7 @@ class UserInfoCard extends StatelessWidget {
);
}
Widget child = Row(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(width: 20),
avatars,
@@ -638,12 +639,11 @@ class UserInfoCard extends StatelessWidget {
size: 20,
color: colorScheme.outline,
),
const SizedBox(width: 20),
const SizedBox(width: 10),
],
);
if (item.jumpUrl?.isNotEmpty == true) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => PageUtils.handleWebview(item.jumpUrl!),
child: child,
);

View File

@@ -15,6 +15,7 @@ class MemberAudioItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final hasStat = item.statistic != null;
return Material(
type: MaterialType.transparency,
child: InkWell(
@@ -58,25 +59,28 @@ class MemberAudioItem extends StatelessWidget {
),
const SizedBox(height: 6),
Text(
DateUtil.dateFormat(item.ctime! ~/ 1000),
DateUtil.dateFormat(
hasStat ? item.ctime! ~/ 1000 : item.ctime!,
),
style: TextStyle(
fontSize: 13,
color: theme.colorScheme.onSurfaceVariant,
),
),
Row(
spacing: 16,
children: [
StatWidget(
type: StatType.listen,
value: item.statistic?.play,
),
StatWidget(
type: StatType.reply,
value: item.statistic?.comment,
),
],
),
if (hasStat)
Row(
spacing: 16,
children: [
StatWidget(
type: StatType.listen,
value: item.statistic?.play,
),
StatWidget(
type: StatType.reply,
value: item.statistic?.comment,
),
],
),
],
),
),

View File

@@ -173,6 +173,8 @@ class _SubDetailPageState extends State<SubDetailPage> with GridMixin {
Expanded(
child: Text(
info.title!,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,

View File

@@ -1883,7 +1883,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
),
),
)
else
else if (Platform.isAndroid)
const SizedBox.shrink(),
],
);