feat: pgc review

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-24 18:17:57 +08:00
parent 8e1b2be073
commit 70164fa3f7
18 changed files with 1140 additions and 108 deletions

View File

@@ -94,24 +94,23 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
}
}
ButtonStyle get _style => TextButton.styleFrom(
padding: EdgeInsets.zero,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
visualDensity: VisualDensity.compact,
);
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
final Color color = theme.colorScheme.outline;
final Color primary = theme.colorScheme.primary;
final ButtonStyle style = TextButton.styleFrom(
padding: EdgeInsets.zero,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
visualDensity: VisualDensity.compact,
);
return Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
height: 32,
child: TextButton(
style: _style,
style: style,
onPressed: () => handleState(onHateReply),
child: Icon(
isDislike
@@ -126,7 +125,7 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
SizedBox(
height: 32,
child: TextButton(
style: _style,
style: style,
onPressed: () => handleState(onLikeReply),
child: Row(
children: [