diff --git a/lib/pages/dynamics/widgets/author_panel.dart b/lib/pages/dynamics/widgets/author_panel.dart index d933195a6..3348f5be7 100644 --- a/lib/pages/dynamics/widgets/author_panel.dart +++ b/lib/pages/dynamics/widgets/author_panel.dart @@ -73,10 +73,8 @@ class AuthorPanel extends StatelessWidget { alignment: Alignment.centerLeft, child: GestureDetector( behavior: HitTestBehavior.opaque, - onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_PGC' || - item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_UGC_SEASON' - ? null - : () { + onTap: item.modules.moduleAuthor!.type == 'AUTHOR_TYPE_NORMAL' + ? () { feedBack(); Get.toNamed( '/member?mid=${item.modules.moduleAuthor!.mid}', @@ -84,7 +82,8 @@ class AuthorPanel extends StatelessWidget { 'face': item.modules.moduleAuthor!.face, }, ); - }, + } + : null, child: Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/pages/dynamics/widgets/module_panel.dart b/lib/pages/dynamics/widgets/module_panel.dart index 30a251432..f6351b301 100644 --- a/lib/pages/dynamics/widgets/module_panel.dart +++ b/lib/pages/dynamics/widgets/module_panel.dart @@ -43,6 +43,8 @@ Widget module( final orig = item.orig!; final isNoneMajor = orig.modules.moduleDynamic?.major?.type == 'MAJOR_TYPE_NONE'; + late final isNormalAuth = + orig.modules.moduleAuthor!.type == 'AUTHOR_TYPE_NORMAL'; return InkWell( onTap: isNoneMajor ? null : () => PageUtils.pushDynDetail(orig, floor + 1), @@ -92,11 +94,16 @@ Widget module( Row( children: [ GestureDetector( - onTap: () => Get.toNamed( - '/member?mid=${orig.modules.moduleAuthor!.mid}', - arguments: {'face': orig.modules.moduleAuthor!.face}), + onTap: isNormalAuth + ? () => Get.toNamed( + '/member?mid=${orig.modules.moduleAuthor!.mid}', + arguments: { + 'face': orig.modules.moduleAuthor!.face + }, + ) + : null, child: Text( - '@${orig.modules.moduleAuthor!.name}', + '${isNormalAuth ? '@' : ''}${orig.modules.moduleAuthor!.name}', style: TextStyle(color: theme.colorScheme.primary), ), ),