Fix light card with wrong domain entity. Show custom cards if there is entitites
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user