mod: 视频详情页

This commit is contained in:
guozhigq
2023-04-20 23:24:14 +08:00
parent dcc99083a4
commit 297020a16f
2 changed files with 157 additions and 4 deletions

View File

@ -0,0 +1,29 @@
import 'package:get/get.dart';
class VideoDetailController extends GetxController {
// 视频aid
String aid = Get.parameters['aid']!;
// 是否预渲染 骨架屏
bool preRender = false;
// 视频详情 上个页面传入
Map videoItem = {};
// 请求状态
RxBool isLoading = false.obs;
@override
void onInit() {
super.onInit();
if (Get.arguments.isNotEmpty) {
if (Get.arguments.containsKey('videoItem')) {
preRender = true;
var args = Get.arguments['videoItem'];
if (args.pic != null && args.pic != '') {
videoItem['pic'] = args.pic;
}
}
}
}
}