check number of items for alingment
This commit is contained in:
@@ -48,10 +48,13 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
|
|||||||
if (widget.secondaryActionButton != null) {
|
if (widget.secondaryActionButton != null) {
|
||||||
temp.add(widget.secondaryActionButton!);
|
temp.add(widget.secondaryActionButton!);
|
||||||
} else {
|
} else {
|
||||||
|
print(widget.header.headerItems.length);
|
||||||
|
if (widget.header.headerItems.length == 1) {
|
||||||
temp.add(const SizedBox(
|
temp.add(const SizedBox(
|
||||||
width: 50,
|
width: 50,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|||||||
Reference in New Issue
Block a user