check number of items for alingment
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user