opt pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-06 13:46:39 +08:00
parent b149ee4998
commit 4a00b45c5c
43 changed files with 261 additions and 227 deletions

View File

@@ -90,7 +90,7 @@ class FavArticleItem extends StatelessWidget {
StatWidget(
type: StatType.like,
value: item.stat!.like,
textColor: theme.colorScheme.outline,
color: theme.colorScheme.outline,
),
Text(
' · ${item.pubTime}',

View File

@@ -65,7 +65,7 @@ class FavPgcController
SmartDialog.showToast(result['msg']);
}
Future<void> onUpdateList(followStatus) async {
Future<void> onUpdateList(int followStatus) async {
List<FavPgcItemModel> dataList = loadingState.value.data!;
Set<FavPgcItemModel> updateList =
dataList.where((item) => item.checked == true).toSet();
@@ -95,7 +95,7 @@ class FavPgcController
SmartDialog.showToast(res['msg']);
}
Future<void> onUpdate(index, followStatus, seasonId) async {
Future<void> onUpdate(int index, int followStatus, int? seasonId) async {
var result = await VideoHttp.pgcUpdate(
seasonId: [seasonId],
status: followStatus,

View File

@@ -38,7 +38,7 @@ class FavTopicController
Future<LoadingState<FavTopicData>> customGetData() =>
FavHttp.favTopic(page: page);
Future<void> onRemove(index, id) async {
Future<void> onRemove(int index, int? id) async {
var res = await FavHttp.delFavTopic(id);
if (res['status']) {
loadingState