show member guard

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent 279f21857d
commit c0b55f9af3
15 changed files with 776 additions and 300 deletions

View File

@@ -103,6 +103,10 @@ class _MemberPageState extends State<MemberPage> {
silence: _userController.silence,
headerControllerBuilder: getHeaderController,
showLiveMedalWall: _showLiveMedalWall,
charges: _userController.charges,
chargeCount: _userController.chargeCount,
guards: _userController.guards,
guardCount: _userController.guardCount,
),
),
),
@@ -218,23 +222,38 @@ class _MemberPageState extends State<MemberPage> {
],
),
),
if (_userController.hasCharge)
PopupMenuItem(
onTap: () => Get.toNamed(
'/upowerRank',
parameters: {
'mid': _userController.mid.toString(),
},
),
child: const Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.electric_bolt, size: 19),
SizedBox(width: 10),
Text('充电排行榜'),
],
),
),
// if (_userController.hasCharge)
// PopupMenuItem(
// onTap: () => UpowerRankPage.toUpowerRank(
// mid: _userController.mid,
// name: _userController.username ?? '',
// count: _userController.chargeCount,
// ),
// child: const Row(
// mainAxisSize: MainAxisSize.min,
// children: [
// Icon(Icons.electric_bolt, size: 19),
// SizedBox(width: 10),
// Text('充电排行榜'),
// ],
// ),
// ),
// if (_userController.hasGuard)
// PopupMenuItem(
// onTap: () => MemberGuard.toMemberGuard(
// mid: _userController.mid,
// name: _userController.username ?? '',
// count: _userController.guardCount,
// ),
// child: const Row(
// mainAxisSize: MainAxisSize.min,
// children: [
// Icon(Icons.anchor, size: 19),
// SizedBox(width: 10),
// Text('大航海舰队'),
// ],
// ),
// ),
if (Get.isRegistered<MemberContributeCtr>(tag: _heroTag))
PopupMenuItem(
onTap: _toWebArchive,