mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -72,17 +72,17 @@ void showPgcFollowDialog({
|
|||||||
content: Column(
|
content: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
...[
|
...const [
|
||||||
{'followStatus': 3, 'title': '看过'},
|
(followStatus: 3, title: '看过'),
|
||||||
{'followStatus': 2, 'title': '在看'},
|
(followStatus: 2, title: '在看'),
|
||||||
{'followStatus': 1, 'title': '想看'},
|
(followStatus: 1, title: '想看'),
|
||||||
].map(
|
].map(
|
||||||
(Map item) => statusItem(
|
(item) => statusItem(
|
||||||
enabled: followStatus != item['followStatus'],
|
enabled: followStatus != item.followStatus,
|
||||||
text: item['title'],
|
text: item.title,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
onUpdateStatus(item['followStatus']);
|
onUpdateStatus(item.followStatus);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -102,5 +102,6 @@ void showPgcFollowDialog({
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
));
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class _MemberReportPanelState extends State<MemberReportPanel> {
|
|||||||
_reason.remove(index + 1);
|
_reason.remove(index + 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
['头像违规', '昵称违规', '签名违规'][index],
|
const ['头像违规', '昵称违规', '签名违规'][index],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Text('举报理由(单选,非必选)'),
|
const Text('举报理由(单选,非必选)'),
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ class DynamicsHttp {
|
|||||||
"type": 1,
|
"type": 1,
|
||||||
"biz_id": "",
|
"biz_id": "",
|
||||||
},
|
},
|
||||||
if (extraContent != null) ...extraContent,
|
...?extraContent,
|
||||||
],
|
],
|
||||||
if (title?.isNotEmpty == true) 'title': title,
|
if (title?.isNotEmpty == true) 'title': title,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,9 +39,10 @@ class DynTopicController
|
|||||||
Future<void> queryTop() async {
|
Future<void> queryTop() async {
|
||||||
topState.value = await DynamicsHttp.topicTop(topicId: topicId);
|
topState.value = await DynamicsHttp.topicTop(topicId: topicId);
|
||||||
if (topState.value.isSuccess) {
|
if (topState.value.isSuccess) {
|
||||||
topicName = topState.value.data!.topicItem!.name!;
|
var topicItem = topState.value.data!.topicItem!;
|
||||||
isFav.value = topState.value.data!.topicItem!.isFav;
|
topicName = topicItem.name!;
|
||||||
isLike.value = topState.value.data!.topicItem!.isLike;
|
isFav.value = topicItem.isFav;
|
||||||
|
isLike.value = topicItem.isLike;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class _FavPgcChildPageState extends State<FavPgcChildPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
...const <({int followStatus, String title})>[
|
...const [
|
||||||
(followStatus: 1, title: '想看'),
|
(followStatus: 1, title: '想看'),
|
||||||
(followStatus: 2, title: '在看'),
|
(followStatus: 2, title: '在看'),
|
||||||
(followStatus: 3, title: '看过'),
|
(followStatus: 3, title: '看过'),
|
||||||
|
|||||||
@@ -240,8 +240,7 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!card.spaceTag.isNullOrEmpty)
|
...?card.spaceTag?.map(
|
||||||
...card.spaceTag!.map(
|
|
||||||
(item) => Text(
|
(item) => Text(
|
||||||
item.title ?? '',
|
item.title ?? '',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -834,7 +834,7 @@ class PiliScheme {
|
|||||||
'/webview',
|
'/webview',
|
||||||
parameters: {
|
parameters: {
|
||||||
'url': url,
|
'url': url,
|
||||||
if (parameters != null) ...parameters,
|
...?parameters,
|
||||||
},
|
},
|
||||||
off: off,
|
off: off,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -596,7 +596,7 @@ class PageUtils {
|
|||||||
'/webview',
|
'/webview',
|
||||||
parameters: {
|
parameters: {
|
||||||
'url': url,
|
'url': url,
|
||||||
if (parameters != null) ...parameters,
|
...?parameters,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user