mod: 使用PageView替换IndexedStack

This commit is contained in:
guozhigq
2023-05-08 12:46:48 +08:00
parent 89766a72d9
commit f3b57bfe7b
3 changed files with 47 additions and 21 deletions

View File

@ -11,12 +11,6 @@ class HotController extends GetxController {
bool isLoadingMore = false;
bool flag = false;
@override
void onInit() {
super.onInit();
queryHotFeed('init');
}
// 获取推荐
Future queryHotFeed(type) async {
var res = await VideoHttp.hotVideoList(
@ -34,6 +28,7 @@ class HotController extends GetxController {
_currentPage += 1;
}
isLoadingMore = false;
return res;
}
// 下拉刷新