fix: state

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 10:51:55 +08:00
parent 5aa5308a50
commit 01b30d942b
10 changed files with 61 additions and 19 deletions

View File

@@ -348,8 +348,11 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
mid: widget.mid,
isFollow: memberInfoModel.isFollowed ?? false,
callback: (attribute) {
_controller.userState.value = LoadingState.success(
memberInfoModel..isFollowed = attribute != 0);
(_controller.userState.value
as Success<MemberInfoModel>)
.response
.isFollowed = attribute != 0;
_controller.userState.refresh();
},
);
}