check number of items for alingment

This commit is contained in:
2024-10-01 14:07:21 +02:00
parent 45d563310e
commit 7eaa879ff4

View File

@@ -48,9 +48,12 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
if (widget.secondaryActionButton != null) { if (widget.secondaryActionButton != null) {
temp.add(widget.secondaryActionButton!); temp.add(widget.secondaryActionButton!);
} else { } else {
temp.add(const SizedBox( print(widget.header.headerItems.length);
width: 50, if (widget.header.headerItems.length == 1) {
)); temp.add(const SizedBox(
width: 50,
));
}
} }
return Row( return Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,