opt handle data

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 21:11:57 +08:00
parent c9450992d9
commit 9a63e23478
24 changed files with 147 additions and 116 deletions

View File

@@ -94,10 +94,9 @@ class _FollowChildPageState extends State<FollowChildPage>
isOwner: widget.controller?.isOwner,
onSelect: widget.onSelect,
callback: (attr) {
List<FollowItemModel> list =
_followController.loadingState.value.data!;
list[index].attribute = attr == 0 ? -1 : 0;
_followController.loadingState.refresh();
_followController.loadingState
..value.data![index].attribute = attr == 0 ? -1 : 0
..refresh();
},
);
},