From ee1685e98148cb5fa3a230f28891832285dab054 Mon Sep 17 00:00:00 2001 From: estevez-dev Date: Wed, 4 Sep 2019 23:42:19 +0300 Subject: [PATCH] Refix #439 --- lib/ui_class/card.class.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui_class/card.class.dart b/lib/ui_class/card.class.dart index f6a2e67..ecc1dfd 100644 --- a/lib/ui_class/card.class.dart +++ b/lib/ui_class/card.class.dart @@ -29,7 +29,11 @@ class HACard { this.states, this.conditions: const [], @required this.type - }); + }) { + if (this.columnsCount <= 0) { + this.columnsCount = 4; + } + } List getEntitiesToShow() { return entities.where((entityWrapper) {