Resolves #365 Fix missed group entities

This commit is contained in:
estevez-dev 2019-10-14 13:39:00 +03:00
parent f88e6f9b61
commit 2f110b20bb

View File

@ -134,17 +134,15 @@ class CardWidget extends StatelessWidget {
List<Widget> body = [];
body.add(CardHeader(name: card.name));
entitiesToShow.forEach((EntityWrapper entity) {
if (!entity.entity.isHidden) {
body.add(
Padding(
padding: EdgeInsets.fromLTRB(0.0, 4.0, 0.0, 4.0),
child: EntityModel(
entityWrapper: entity,
handleTap: true,
child: entity.entity.buildDefaultWidget(context)
),
));
}
body.add(
Padding(
padding: EdgeInsets.fromLTRB(0.0, 4.0, 0.0, 4.0),
child: EntityModel(
entityWrapper: entity,
handleTap: true,
child: entity.entity.buildDefaultWidget(context)
),
));
});
return Card(
child: Padding(