Resolves #243
This commit is contained in:
		| @@ -150,6 +150,9 @@ class CardWidget extends StatelessWidget { | ||||
|   } | ||||
|  | ||||
|   Widget _buildMediaControlsCard(BuildContext context) { | ||||
|     if (card.linkedEntityWrapper == null || card.linkedEntityWrapper.entity == null) { | ||||
|       return Container(width: 0, height: 0,); | ||||
|     } else { | ||||
|       return Card( | ||||
|           child: EntityModel( | ||||
|               entityWrapper: card.linkedEntityWrapper, | ||||
| @@ -158,9 +161,14 @@ class CardWidget extends StatelessWidget { | ||||
|           ) | ||||
|       ); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   Widget _buildEntityButtonCard(BuildContext context) { | ||||
|     card.linkedEntityWrapper.displayName = card.name?.toUpperCase() ?? card.linkedEntityWrapper.displayName.toUpperCase(); | ||||
|     if (card.linkedEntityWrapper == null || card.linkedEntityWrapper.entity == null) { | ||||
|       return Container(width: 0, height: 0,); | ||||
|     } else { | ||||
|       card.linkedEntityWrapper.displayName = card.name?.toUpperCase() ?? | ||||
|           card.linkedEntityWrapper.displayName.toUpperCase(); | ||||
|       return Card( | ||||
|           child: EntityModel( | ||||
|               entityWrapper: card.linkedEntityWrapper, | ||||
| @@ -169,6 +177,7 @@ class CardWidget extends StatelessWidget { | ||||
|           ) | ||||
|       ); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   Widget _buildUnsupportedCard(BuildContext context) { | ||||
|     List<Widget> body = []; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user