mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: playall
Closes #450 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:PiliPlus/common/skeleton/video_card_h.dart';
|
||||
import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/pages/fav_search/view.dart';
|
||||
import 'package:PiliPlus/pages/fav_search/view.dart' show SearchType;
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -47,14 +47,18 @@ class _FavPageState extends State<FavPage> {
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
if (_favController.loadingState.value is Success) {
|
||||
Get.toNamed('/favSearch', arguments: {
|
||||
'type': 1,
|
||||
'mediaId': (_favController.loadingState.value as Success)
|
||||
try {
|
||||
final item = (_favController.loadingState.value as Success)
|
||||
.response
|
||||
.first
|
||||
.id,
|
||||
'searchType': SearchType.fav,
|
||||
});
|
||||
.first;
|
||||
Get.toNamed('/favSearch', arguments: {
|
||||
'type': 1,
|
||||
'mediaId': item.id,
|
||||
'title': item.title,
|
||||
'count': item.mediaCount,
|
||||
'searchType': SearchType.fav,
|
||||
});
|
||||
} catch (_) {}
|
||||
}
|
||||
},
|
||||
icon: const Icon(Icons.search_outlined),
|
||||
|
||||
Reference in New Issue
Block a user