mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
opt dyn author panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -71,15 +71,12 @@ class AuthorPanel extends StatelessWidget {
|
||||
children: [
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
(item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' ||
|
||||
item.modules.moduleAuthor!.type ==
|
||||
'AUTHOR_TYPE_UGC_SEASON')
|
||||
? _buildAvatar() // 番剧
|
||||
: GestureDetector(
|
||||
onTap: () {
|
||||
child: GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' ||
|
||||
item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_UGC_SEASON'
|
||||
? null
|
||||
: () {
|
||||
feedBack();
|
||||
Get.toNamed(
|
||||
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
||||
@@ -88,8 +85,10 @@ class AuthorPanel extends StatelessWidget {
|
||||
},
|
||||
);
|
||||
},
|
||||
child: _buildAvatar(),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_buildAvatar(),
|
||||
const SizedBox(width: 10),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -118,6 +117,7 @@ class AuthorPanel extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: source != 'detail' && item.modules.moduleTag?.text != null
|
||||
|
||||
Reference in New Issue
Block a user