Resolves #324 devider fix, entity card padding fix

This commit is contained in:
estevez-dev
2019-06-23 16:08:12 +03:00
parent 1fe82d8b0d
commit 8f55be187d
3 changed files with 13 additions and 6 deletions

View File

@ -112,7 +112,7 @@ class CardWidget extends StatelessWidget {
if (!entity.entity.isHidden) {
body.add(
Padding(
padding: EdgeInsets.fromLTRB(10.0, 4.0, 0.0, 4.0),
padding: EdgeInsets.fromLTRB(0.0, 4.0, 0.0, 4.0),
child: EntityModel(
entityWrapper: entity,
handleTap: true,
@ -122,7 +122,10 @@ class CardWidget extends StatelessWidget {
}
});
return Card(
child: new Column(mainAxisSize: MainAxisSize.min, children: body)
child: Padding(
padding: EdgeInsets.only(right: Sizes.rightWidgetPadding, left: Sizes.leftWidgetPadding),
child: Column(mainAxisSize: MainAxisSize.min, children: body),
)
);
}