Call service state color from theme

This commit is contained in:
Yegor Vialov 2020-04-29 20:11:37 +00:00
parent 0792cae2b1
commit bfb24b9d11
2 changed files with 1 additions and 2 deletions

View File

@ -36,7 +36,6 @@ class DefaultEntityContainer extends StatelessWidget {
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: <Widget>[ children: <Widget>[
EntityIcon(), EntityIcon(),
Flexible( Flexible(
fit: FlexFit.tight, fit: FlexFit.tight,
flex: 3, flex: 3,

View File

@ -27,7 +27,7 @@ class SimpleEntityState extends StatelessWidget {
tStyle = textStyle; tStyle = textStyle;
} else if (entityModel.entityWrapper.entity.statelessType == StatelessEntityType.callService) { } else if (entityModel.entityWrapper.entity.statelessType == StatelessEntityType.callService) {
tStyle = Theme.of(context).textTheme.subhead.copyWith( tStyle = Theme.of(context).textTheme.subhead.copyWith(
color: Colors.blue color: HAClientTheme().getLinkTextStyle(context).color
); );
} else { } else {
tStyle = Theme.of(context).textTheme.body1; tStyle = Theme.of(context).textTheme.body1;