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) {
temp.add(widget.secondaryActionButton!);
} else {
temp.add(const SizedBox(
width: 50,
));
print(widget.header.headerItems.length);
if (widget.header.headerItems.length == 1) {
temp.add(const SizedBox(
width: 50,
));
}
}
return Row(
mainAxisSize: MainAxisSize.min,