mod: 请求参数结构、评论页面初始化

This commit is contained in:
guozhigq
2023-04-21 21:44:51 +08:00
parent 3aee691d00
commit ebbb0b86a2
13 changed files with 98 additions and 26 deletions

View File

@ -0,0 +1,17 @@
import 'package:get/get.dart';
import 'package:pilipala/http/reply.dart';
class VideoReplyController extends GetxController {
// 视频aid
String aid = Get.parameters['aid']!;
@override
void onInit() {
super.onInit();
queryReplyList();
}
Future queryReplyList() async {
var res = await ReplyHttp.replyList(oid: aid, pageNum: 1, type: 1);
}
}

View File

@ -0,0 +1,4 @@
library video_reply_panel;
export './controller.dart';
export './view.dart';

View File

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class VideoReplyPanel extends StatefulWidget {
const VideoReplyPanel({super.key});
@override
State<VideoReplyPanel> createState() => _VideoReplyPanelState();
}
class _VideoReplyPanelState extends State<VideoReplyPanel> {
@override
Widget build(BuildContext context) {
return const SliverToBoxAdapter(
child: Text('评论'),
);
}
}