Resolves #230 Vertical stack card

This commit is contained in:
Yegor Vialov 2018-11-29 21:45:46 +02:00
parent 9523ed2562
commit 4ae107fe4c

View File

@ -69,6 +69,23 @@ class HACard {
return Container(height: 0.0, width: 0.0,); return Container(height: 0.0, width: 0.0,);
} }
case CardType.verticalStack: {
if (childCards.isNotEmpty) {
List<Widget> children = [];
childCards.forEach((card) {
children.add(
card.build(context)
);
});
return Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,
children: children,
);
}
return Container(height: 0.0, width: 0.0,);
}
case CardType.weatherForecast: case CardType.weatherForecast:
case CardType.thermostat: case CardType.thermostat:
case CardType.sensor: case CardType.sensor: