mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +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: [
|
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() // 番剧
|
|
||||||
: GestureDetector(
|
|
||||||
onTap: () {
|
|
||||||
feedBack();
|
feedBack();
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
'/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),
|
const SizedBox(width: 10),
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@@ -118,6 +117,7 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: source != 'detail' && item.modules.moduleTag?.text != null
|
child: source != 'detail' && item.modules.moduleTag?.text != null
|
||||||
|
|||||||
Reference in New Issue
Block a user