mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
@@ -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!,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user