mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-20 10:30:13 +08:00
@@ -402,6 +402,8 @@ class _FavDetailPageState extends State<FavDetailPage> with GridMixin {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
folderInfo.title,
|
folderInfo.title,
|
||||||
|
maxLines: 2,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: theme.textTheme.titleMedium!.fontSize,
|
fontSize: theme.textTheme.titleMedium!.fontSize,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
@@ -614,6 +614,7 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
Widget child = Row(
|
Widget child = Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(width: 20),
|
const SizedBox(width: 20),
|
||||||
avatars,
|
avatars,
|
||||||
@@ -638,12 +639,11 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
size: 20,
|
size: 20,
|
||||||
color: colorScheme.outline,
|
color: colorScheme.outline,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 20),
|
const SizedBox(width: 10),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
if (item.jumpUrl?.isNotEmpty == true) {
|
if (item.jumpUrl?.isNotEmpty == true) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
behavior: HitTestBehavior.opaque,
|
|
||||||
onTap: () => PageUtils.handleWebview(item.jumpUrl!),
|
onTap: () => PageUtils.handleWebview(item.jumpUrl!),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class MemberAudioItem extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
|
final hasStat = item.statistic != null;
|
||||||
return Material(
|
return Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
@@ -58,25 +59,28 @@ class MemberAudioItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 6),
|
const SizedBox(height: 6),
|
||||||
Text(
|
Text(
|
||||||
DateUtil.dateFormat(item.ctime! ~/ 1000),
|
DateUtil.dateFormat(
|
||||||
|
hasStat ? item.ctime! ~/ 1000 : item.ctime!,
|
||||||
|
),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: theme.colorScheme.onSurfaceVariant,
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
if (hasStat)
|
||||||
spacing: 16,
|
Row(
|
||||||
children: [
|
spacing: 16,
|
||||||
StatWidget(
|
children: [
|
||||||
type: StatType.listen,
|
StatWidget(
|
||||||
value: item.statistic?.play,
|
type: StatType.listen,
|
||||||
),
|
value: item.statistic?.play,
|
||||||
StatWidget(
|
),
|
||||||
type: StatType.reply,
|
StatWidget(
|
||||||
value: item.statistic?.comment,
|
type: StatType.reply,
|
||||||
),
|
value: item.statistic?.comment,
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -173,6 +173,8 @@ class _SubDetailPageState extends State<SubDetailPage> with GridMixin {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
info.title!,
|
info.title!,
|
||||||
|
maxLines: 2,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
@@ -1883,7 +1883,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
else
|
else if (Platform.isAndroid)
|
||||||
const SizedBox.shrink(),
|
const SizedBox.shrink(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user