opt models

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-04 15:20:35 +08:00
parent f50b1d2beb
commit b960359a39
858 changed files with 11000 additions and 12588 deletions

View File

@@ -70,11 +70,13 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
if (res['status']) {
SmartDialog.showToast(isLike ? '取消赞' : '点赞成功');
if (action == 1) {
widget.replyItem.like += $fixnum.Int64.ONE;
widget.replyItem.replyControl.action = $fixnum.Int64.ONE;
widget.replyItem
..like += $fixnum.Int64.ONE
..replyControl.action = $fixnum.Int64.ONE;
} else {
widget.replyItem.like -= $fixnum.Int64.ONE;
widget.replyItem.replyControl.action = $fixnum.Int64.ZERO;
widget.replyItem
..like -= $fixnum.Int64.ONE
..replyControl.action = $fixnum.Int64.ZERO;
}
if (mounted) {
setState(() {});