opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 17:17:35 +08:00
parent b643cb1bd0
commit 924d51d41b
198 changed files with 3715 additions and 2001 deletions

View File

@@ -34,7 +34,7 @@ class FollowChildController
if (controller!.isOwner &&
tagid == null &&
isRefresh &&
controller!.followState.value is Success) {
controller!.followState.value.isSuccess) {
controller!.tabs[0].count = response.response.total;
controller!.tabs.refresh();
}

View File

@@ -95,8 +95,7 @@ class _FollowChildPageState extends State<FollowChildPage>
onSelect: widget.onSelect,
callback: (attr) {
List<FollowItemModel> list =
(_followController.loadingState.value as Success)
.response;
_followController.loadingState.value.data!;
list[index].attribute = attr == 0 ? -1 : 0;
_followController.loadingState.refresh();
},

View File

@@ -54,8 +54,7 @@ class FollowItem extends StatelessWidget {
src: item.face,
),
),
if (item.officialVerify?['type'] == 0 ||
item.officialVerify?['type'] == 1)
if (item.officialVerify?.type == 0 || item.officialVerify?.type == 1)
Positioned(
bottom: 0,
right: 0,
@@ -66,7 +65,7 @@ class FollowItem extends StatelessWidget {
),
child: Icon(
Icons.offline_bolt,
color: item.officialVerify?['type'] == 0
color: item.officialVerify?.type == 0
? const Color(0xFFFFCC00)
: Colors.lightBlueAccent,
size: 14,