mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user