Minor gauge fixes

This commit is contained in:
estevez-dev
2019-09-07 17:04:40 +03:00
parent 37e63637a7
commit 6508f109f7
5 changed files with 28 additions and 15 deletions

View File

@ -291,13 +291,14 @@ class CardWidget extends StatelessWidget {
Widget _buildGaugeCard(BuildContext context) {
card.linkedEntityWrapper.displayName = card.name ??
card.linkedEntityWrapper.displayName;
card.linkedEntityWrapper.unitOfMeasurement = card.unit ??
card.linkedEntityWrapper.unitOfMeasurement;
return Card(
child: EntityModel(
entityWrapper: card.linkedEntityWrapper,
child: GaugeCardBody(
min: card.min,
max: card.max,
unit: card.unit ?? card.linkedEntityWrapper.entity.unitOfMeasurement,
severity: card.severity,
),
handleTap: true