mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt dyn author panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -71,51 +71,51 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Row(
|
child: GestureDetector(
|
||||||
mainAxisSize: MainAxisSize.min,
|
behavior: HitTestBehavior.opaque,
|
||||||
children: [
|
onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' ||
|
||||||
(item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' ||
|
item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_UGC_SEASON'
|
||||||
item.modules.moduleAuthor!.type ==
|
? null
|
||||||
'AUTHOR_TYPE_UGC_SEASON')
|
: () {
|
||||||
? _buildAvatar() // 番剧
|
feedBack();
|
||||||
: GestureDetector(
|
Get.toNamed(
|
||||||
onTap: () {
|
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
||||||
feedBack();
|
arguments: {
|
||||||
Get.toNamed(
|
'face': item.modules.moduleAuthor!.face,
|
||||||
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
|
||||||
arguments: {
|
|
||||||
'face': item.modules.moduleAuthor!.face,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
child: _buildAvatar(),
|
);
|
||||||
),
|
},
|
||||||
const SizedBox(width: 10),
|
child: Row(
|
||||||
Column(
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
children: [
|
||||||
children: [
|
_buildAvatar(),
|
||||||
Text(
|
const SizedBox(width: 10),
|
||||||
item.modules.moduleAuthor?.name ?? '',
|
Column(
|
||||||
style: TextStyle(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
color: item.modules.moduleAuthor!.vip != null &&
|
children: [
|
||||||
item.modules.moduleAuthor!.vip!.status > 0 &&
|
|
||||||
item.modules.moduleAuthor!.vip!.type == 2
|
|
||||||
? context.vipColor
|
|
||||||
: theme.colorScheme.onSurface,
|
|
||||||
fontSize: theme.textTheme.titleSmall!.fontSize,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (pubTime != null)
|
|
||||||
Text(
|
Text(
|
||||||
'$pubTime${item.modules.moduleAuthor?.pubAction != null ? ' ${item.modules.moduleAuthor!.pubAction}' : ''}',
|
item.modules.moduleAuthor?.name ?? '',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: theme.colorScheme.outline,
|
color: item.modules.moduleAuthor!.vip != null &&
|
||||||
fontSize: theme.textTheme.labelSmall!.fontSize,
|
item.modules.moduleAuthor!.vip!.status > 0 &&
|
||||||
|
item.modules.moduleAuthor!.vip!.type == 2
|
||||||
|
? context.vipColor
|
||||||
|
: theme.colorScheme.onSurface,
|
||||||
|
fontSize: theme.textTheme.titleSmall!.fontSize,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
if (pubTime != null)
|
||||||
),
|
Text(
|
||||||
],
|
'$pubTime${item.modules.moduleAuthor?.pubAction != null ? ' ${item.modules.moduleAuthor!.pubAction}' : ''}',
|
||||||
|
style: TextStyle(
|
||||||
|
color: theme.colorScheme.outline,
|
||||||
|
fontSize: theme.textTheme.labelSmall!.fontSize,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
|
|||||||
Reference in New Issue
Block a user