fix fan/follow params

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-07 19:40:32 +08:00
parent 3d1199363b
commit d5bb4bc149
12 changed files with 94 additions and 30 deletions

View File

@@ -20,13 +20,26 @@ class FansPage extends StatefulWidget {
@override
State<FansPage> createState() => _FansPageState();
static void toFansPage({dynamic mid, String? name}) {
if (mid == null) {
return;
}
Get.toNamed(
'/fan',
arguments: {
'mid': Utils.safeToInt(mid),
'name': name,
},
);
}
}
class _FansPageState extends FollowTypePageState<FansPage> {
@override
late final FansController controller = Get.put(
FansController(widget.showName),
tag: Get.parameters['mid'],
tag: Get.arguments?['mid']?.toString() ?? Utils.generateRandomString(8),
);
late final flag = widget.onSelect == null && controller.isOwner;