fix boost and like buttons ruining the layout

This commit is contained in:
zoe 2022-09-26 12:51:44 +02:00
parent a60e144602
commit 3101b19a49
1 changed files with 42 additions and 28 deletions

View File

@ -309,40 +309,54 @@ class _PostActionBarState extends State<PostActionBar> {
@override
Widget build(BuildContext context) {
return Wrap(
spacing: 8,
spacing: 24,
runSpacing: 24,
runAlignment: WrapAlignment.center,
alignment: WrapAlignment.spaceAround,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
IconButton(
onPressed: () {
showDialog(
context: context,
builder: ((context) => MakePost(
inReplyTo: widget.model,
)));
},
icon: const Icon(Icons.reply),
tooltip: "reply".i18n(),
),
InteractionButton(
model: widget.model,
type: interactions.InteractionType.reblog,
),
InteractionButton(
model: widget.model,
type: interactions.InteractionType.favorite,
),
IconButton(
tooltip: "show-in-full".i18n(),
SizedBox(
width: 64,
child: IconButton(
onPressed: () {
showDialog(
context: context,
builder: (context) => FullPostView(
originPostModel: widget.model,
),
);
context: context,
builder: ((context) => MakePost(
inReplyTo: widget.model,
)));
},
icon: const Icon(Icons.open_in_full)),
icon: const Icon(Icons.reply),
tooltip: "reply".i18n(),
),
),
SizedBox(
width: 64,
child: InteractionButton(
model: widget.model,
type: interactions.InteractionType.reblog,
),
),
SizedBox(
width: 64,
child: InteractionButton(
model: widget.model,
type: interactions.InteractionType.favorite,
),
),
SizedBox(
width: 64,
child: IconButton(
tooltip: "show-in-full".i18n(),
onPressed: () {
showDialog(
context: context,
builder: (context) => FullPostView(
originPostModel: widget.model,
),
);
},
icon: const Icon(Icons.open_in_full)),
),
IconButton(
tooltip: "post-options".i18n(),
onPressed: () {