refa: whisper detail

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-10 11:05:28 +08:00
parent 024e74115e
commit 024a249e6b
6 changed files with 635 additions and 616 deletions

View File

@@ -46,9 +46,9 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
widget.replyItem.like =
$fixnum.Int64(widget.replyItem.like.toInt() - 1);
}
widget.replyItem.replyControl.action = $fixnum.Int64(2);
widget.replyItem.replyControl.action = $fixnum.Int64.TWO;
} else {
widget.replyItem.replyControl.action = $fixnum.Int64(0);
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
}
setState(() {});
} else {
@@ -76,11 +76,11 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
if (action == 1) {
widget.replyItem.like =
$fixnum.Int64(widget.replyItem.like.toInt() + 1);
widget.replyItem.replyControl.action = $fixnum.Int64(1);
widget.replyItem.replyControl.action = $fixnum.Int64.ONE;
} else {
widget.replyItem.like =
$fixnum.Int64(widget.replyItem.like.toInt() - 1);
widget.replyItem.replyControl.action = $fixnum.Int64(0);
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
}
setState(() {});
} else {