diff --git a/Frontend/patient_manager/lib/mih_components/mih_layout/mih_layout_builder.dart b/Frontend/patient_manager/lib/mih_components/mih_layout/mih_layout_builder.dart index d6a0c42b..aeedba10 100644 --- a/Frontend/patient_manager/lib/mih_components/mih_layout/mih_layout_builder.dart +++ b/Frontend/patient_manager/lib/mih_components/mih_layout/mih_layout_builder.dart @@ -48,9 +48,12 @@ class _MIHLayoutBuilderState extends State { 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,