Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -44,7 +44,7 @@ class SubController extends CommonListController<SubData, SubItemModel> {
),
TextButton(
onPressed: () async {
var res = await FavHttp.cancelSub(
final res = await FavHttp.cancelSub(
id: subFolderItem.id!,
type: subFolderItem.type!,
);

View File

@@ -43,7 +43,7 @@ class _SubPageState extends State<SubPage> with GridMixin {
Widget _buildBody(LoadingState<List<SubItemModel>?> loadingState) {
return switch (loadingState) {
Loading() => gridSkeleton,
Success(:var response) =>
Success(:final response) =>
response != null && response.isNotEmpty
? SliverGrid.builder(
gridDelegate: gridDelegate,
@@ -60,7 +60,7 @@ class _SubPageState extends State<SubPage> with GridMixin {
itemCount: response.length,
)
: HttpError(onReload: _subController.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _subController.onReload,
),