mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt dyn auth
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -73,10 +73,8 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' ||
|
onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_NORMAL'
|
||||||
item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_UGC_SEASON'
|
? () {
|
||||||
? null
|
|
||||||
: () {
|
|
||||||
feedBack();
|
feedBack();
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
'/member?mid=${item.modules.moduleAuthor!.mid}',
|
||||||
@@ -84,7 +82,8 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
'face': item.modules.moduleAuthor!.face,
|
'face': item.modules.moduleAuthor!.face,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
|
: null,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ Widget module(
|
|||||||
final orig = item.orig!;
|
final orig = item.orig!;
|
||||||
final isNoneMajor =
|
final isNoneMajor =
|
||||||
orig.modules.moduleDynamic?.major?.type == 'MAJOR_TYPE_NONE';
|
orig.modules.moduleDynamic?.major?.type == 'MAJOR_TYPE_NONE';
|
||||||
|
late final isNormalAuth =
|
||||||
|
orig.modules.moduleAuthor!.type == 'AUTHOR_TYPE_NORMAL';
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap:
|
onTap:
|
||||||
isNoneMajor ? null : () => PageUtils.pushDynDetail(orig, floor + 1),
|
isNoneMajor ? null : () => PageUtils.pushDynDetail(orig, floor + 1),
|
||||||
@@ -92,11 +94,16 @@ Widget module(
|
|||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () => Get.toNamed(
|
onTap: isNormalAuth
|
||||||
'/member?mid=${orig.modules.moduleAuthor!.mid}',
|
? () => Get.toNamed(
|
||||||
arguments: {'face': orig.modules.moduleAuthor!.face}),
|
'/member?mid=${orig.modules.moduleAuthor!.mid}',
|
||||||
|
arguments: {
|
||||||
|
'face': orig.modules.moduleAuthor!.face
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: null,
|
||||||
child: Text(
|
child: Text(
|
||||||
'@${orig.modules.moduleAuthor!.name}',
|
'${isNormalAuth ? '@' : ''}${orig.modules.moduleAuthor!.name}',
|
||||||
style: TextStyle(color: theme.colorScheme.primary),
|
style: TextStyle(color: theme.colorScheme.primary),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user