mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: minimize reply item btn
This commit is contained in:
@@ -334,6 +334,12 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get _style => TextButton.styleFrom(
|
||||||
|
padding: const EdgeInsets.all(0),
|
||||||
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
visualDensity: VisualDensity(horizontal: -2, vertical: -2),
|
||||||
|
);
|
||||||
|
|
||||||
// 感谢、回复、复制
|
// 感谢、回复、复制
|
||||||
Widget buttonAction(BuildContext context, replyControl) {
|
Widget buttonAction(BuildContext context, replyControl) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -342,6 +348,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 32,
|
height: 32,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
|
style: _style,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
feedBack();
|
feedBack();
|
||||||
if (onReply != null) {
|
if (onReply != null) {
|
||||||
@@ -371,6 +378,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
height: 32,
|
height: 32,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: null,
|
onPressed: null,
|
||||||
|
style: _style,
|
||||||
child: Text(
|
child: Text(
|
||||||
'UP主觉得很赞',
|
'UP主觉得很赞',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -400,6 +408,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
height: 32,
|
height: 32,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: showDialogue,
|
onPressed: showDialogue,
|
||||||
|
style: _style,
|
||||||
child: Text(
|
child: Text(
|
||||||
'查看对话',
|
'查看对话',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -101,6 +101,12 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get _style => TextButton.styleFrom(
|
||||||
|
padding: const EdgeInsets.all(0),
|
||||||
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
visualDensity: VisualDensity(horizontal: -2, vertical: -2),
|
||||||
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final ThemeData t = Theme.of(context);
|
final ThemeData t = Theme.of(context);
|
||||||
@@ -112,6 +118,7 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 32,
|
height: 32,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
|
style: _style,
|
||||||
onPressed: handleState(onHateReply),
|
onPressed: handleState(onHateReply),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
widget.replyItem.replyControl.action.toInt() == 2
|
widget.replyItem.replyControl.action.toInt() == 2
|
||||||
@@ -130,6 +137,7 @@ class _ZanButtonGrpcState extends State<ZanButtonGrpc> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 32,
|
height: 32,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
|
style: _style,
|
||||||
onPressed: handleState(onLikeReply),
|
onPressed: handleState(onLikeReply),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user