mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-21 02:50:14 +08:00
lint
opt pages Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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}',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user