feat: 评论点赞

This commit is contained in:
guozhigq
2023-07-24 20:01:10 +08:00
parent 7a3f6cf5ee
commit 1c744e3f59
5 changed files with 116 additions and 24 deletions

View File

@ -9,6 +9,8 @@ import 'package:pilipala/pages/video/detail/controller.dart';
import 'package:pilipala/pages/video/detail/replyNew/index.dart';
import 'package:pilipala/utils/utils.dart';
import 'zan.dart';
class ReplyItem extends StatelessWidget {
ReplyItem({
super.key,
@ -282,29 +284,7 @@ class ReplyItem extends StatelessWidget {
},
),
),
SizedBox(
height: 32,
child: TextButton(
child: Row(
children: [
Icon(
FontAwesomeIcons.thumbsUp,
size: 16,
color: color,
),
const SizedBox(width: 4),
Text(
replyItem!.like.toString(),
style: TextStyle(
color: color,
fontSize:
Theme.of(context).textTheme.labelSmall!.fontSize),
),
],
),
onPressed: () {},
),
),
ZanButton(replyItem: replyItem, replyType: replyType),
const SizedBox(width: 5)
],
);