Card separation by type

This commit is contained in:
Yegor Vialov
2018-10-27 17:28:47 +03:00
parent 9edfec7dff
commit 809c7d6355
9 changed files with 215 additions and 91 deletions

View File

@ -0,0 +1,27 @@
part of '../main.dart';
class MediaControlCardWidget extends StatelessWidget {
final HACard card;
const MediaControlCardWidget({
Key key,
this.card
}) : super(key: key);
@override
Widget build(BuildContext context) {
if ((card.linkedEntity!= null) && (card.linkedEntity.isHidden)) {
return Container(width: 0.0, height: 0.0,);
}
List<Widget> body = [];
return Card(
child: new Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: body
)
);
}
}