mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
34 lines
780 B
Dart
34 lines
780 B
Dart
import 'package:PiliPlus/http/loading_state.dart';
|
|
import 'package:PiliPlus/pages/common/common_controller.dart';
|
|
import 'package:PiliPlus/http/video.dart';
|
|
|
|
class HotController extends CommonController {
|
|
// int idx = 0;
|
|
|
|
@override
|
|
void onInit() {
|
|
super.onInit();
|
|
queryData();
|
|
}
|
|
|
|
// @override
|
|
// Future onRefresh() {
|
|
// idx = 0;
|
|
// return super.onRefresh();
|
|
// }
|
|
|
|
@override
|
|
Future<LoadingState> customGetData() => VideoHttp.hotVideoList(
|
|
pn: currentPage,
|
|
ps: 20,
|
|
);
|
|
|
|
// @override
|
|
// void handleSuccess(List currentList, List dataList) {
|
|
// idx = (dataList.last as Card?)?.smallCoverV5.base.idx.toInt() ?? 0;
|
|
// }
|
|
|
|
// @override
|
|
// Future<LoadingState> customGetData() => VideoHttp.hotVideoListGrpc(idx: idx);
|
|
}
|