Fix light card with wrong domain entity. Show custom cards if there is entitites

This commit is contained in:
Yegor Vialov
2020-06-02 21:36:45 +00:00
parent 44c28ad106
commit f9b2d7d84c
4 changed files with 34 additions and 7 deletions

View File

@ -4,12 +4,14 @@ class CardWrapper extends StatelessWidget {
final Widget child;
final EdgeInsets padding;
final Color color;
const CardWrapper({Key key, this.child, this.padding: const EdgeInsets.all(0)}) : super(key: key);
const CardWrapper({Key key, this.child, this.color, this.padding: const EdgeInsets.all(0)}) : super(key: key);
@override
Widget build(BuildContext context) {
return Card(
color: color,
child: Padding(
padding: padding,
child: child