mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: show count of reply2reply
This commit is contained in:
@@ -153,13 +153,14 @@ class VideoDetailController extends GetxController
|
||||
oid.value = IdUtils.bv2av(Get.parameters['bvid']!);
|
||||
}
|
||||
|
||||
showReplyReplyPanel() {
|
||||
showReplyReplyPanel(dynamic rcount) {
|
||||
replyReplyBottomSheetCtr =
|
||||
scaffoldKey.currentState?.showBottomSheet((BuildContext context) {
|
||||
// SmartDialog.show(
|
||||
// alignment: Alignment.bottomRight,
|
||||
// builder: (context) {
|
||||
return VideoReplyReplyPanel(
|
||||
rcount: rcount,
|
||||
oid: oid.value,
|
||||
rpid: fRpid,
|
||||
closePanel: () => {
|
||||
|
||||
@@ -127,7 +127,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
videoDetailCtr.oid.value = replyItem.oid;
|
||||
videoDetailCtr.fRpid = replyItem.rpid!;
|
||||
videoDetailCtr.firstFloor = replyItem;
|
||||
videoDetailCtr.showReplyReplyPanel();
|
||||
videoDetailCtr.showReplyReplyPanel(replyItem.rcount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import 'controller.dart';
|
||||
|
||||
class VideoReplyReplyPanel extends StatefulWidget {
|
||||
const VideoReplyReplyPanel({
|
||||
this.rcount,
|
||||
this.oid,
|
||||
this.rpid,
|
||||
this.closePanel,
|
||||
@@ -22,6 +23,7 @@ class VideoReplyReplyPanel extends StatefulWidget {
|
||||
this.replyType,
|
||||
super.key,
|
||||
});
|
||||
final dynamic rcount;
|
||||
final int? oid;
|
||||
final int? rpid;
|
||||
final Function? closePanel;
|
||||
@@ -88,7 +90,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
const Text('评论详情'),
|
||||
Text('评论详情${widget.rcount > 0 ? '(${widget.rcount})' : ''}'),
|
||||
IconButton(
|
||||
tooltip: '关闭',
|
||||
icon: const Icon(Icons.close, size: 20),
|
||||
|
||||
Reference in New Issue
Block a user