feat: 首页推荐视频缓存

This commit is contained in:
guozhigq
2023-05-17 10:27:54 +08:00
parent 83fac74630
commit 75ed91c29d
17 changed files with 526 additions and 14 deletions

View File

@ -89,8 +89,15 @@ class _HomePageState extends State<HomePage>
);
}
} else {
// 缓存数据
if(_homeController.videoList.isNotEmpty) {
return contentGrid(
_homeController, _homeController.videoList);
}
// 骨架屏
return contentGrid(_homeController, []);
else{
return contentGrid(_homeController, []);
}
}
},
),