Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-05 20:55:52 +08:00
parent 224bd88473
commit 5bf09b98f4
15 changed files with 401 additions and 340 deletions

View File

@@ -39,14 +39,15 @@ class _FansPageState extends State<FansPage> {
void initState() {
super.initState();
AccountService accountService = Get.find<AccountService>();
mid =
widget.mid ??
(Get.parameters['mid'] != null
? int.parse(Get.parameters['mid']!)
: accountService.mid);
isOwner = mid == accountService.mid;
late final mid = Get.parameters['mid'];
this.mid =
widget.mid ?? (mid != null ? int.parse(mid) : accountService.mid);
isOwner = this.mid == accountService.mid;
name = Get.parameters['name'] ?? accountService.name.value;
_fansController = Get.put(FansController(mid), tag: Utils.makeHeroTag(mid));
_fansController = Get.put(
FansController(this.mid),
tag: Utils.makeHeroTag(this.mid),
);
}
@override