mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 20:16:26 +08:00
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1883,7 +1883,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
else if (Platform.isAndroid)
|
||||
const SizedBox.shrink(),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user