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 = []; List<Widget> body = [];
body.add(CardHeader(name: card.name)); body.add(CardHeader(name: card.name));
entitiesToShow.forEach((EntityWrapper entity) { entitiesToShow.forEach((EntityWrapper entity) {
if (!entity.entity.isHidden) { body.add(
body.add( Padding(
Padding( padding: EdgeInsets.fromLTRB(0.0, 4.0, 0.0, 4.0),
padding: EdgeInsets.fromLTRB(0.0, 4.0, 0.0, 4.0), child: EntityModel(
child: EntityModel( entityWrapper: entity,
entityWrapper: entity, handleTap: true,
handleTap: true, child: entity.entity.buildDefaultWidget(context)
child: entity.entity.buildDefaultWidget(context) ),
), ));
));
}
}); });
return Card( return Card(
child: Padding( child: Padding(