27 lines
583 B
Dart
27 lines
583 B
Dart
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
|
|
)
|
|
);
|
|
}
|
|
|
|
} |