fix boost and like buttons ruining the layout
This commit is contained in:
parent
a60e144602
commit
3101b19a49
|
@ -309,40 +309,54 @@ class _PostActionBarState extends State<PostActionBar> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Wrap(
|
return Wrap(
|
||||||
spacing: 8,
|
spacing: 24,
|
||||||
|
runSpacing: 24,
|
||||||
|
runAlignment: WrapAlignment.center,
|
||||||
alignment: WrapAlignment.spaceAround,
|
alignment: WrapAlignment.spaceAround,
|
||||||
crossAxisAlignment: WrapCrossAlignment.center,
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
IconButton(
|
SizedBox(
|
||||||
onPressed: () {
|
width: 64,
|
||||||
showDialog(
|
child: IconButton(
|
||||||
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(),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => FullPostView(
|
builder: ((context) => MakePost(
|
||||||
originPostModel: widget.model,
|
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(
|
IconButton(
|
||||||
tooltip: "post-options".i18n(),
|
tooltip: "post-options".i18n(),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
Loading…
Reference in New Issue