Skip to content

Commit

Permalink
fix(thermostat_icon_test.dart): Use text style when provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rlperez committed Dec 8, 2021
1 parent 9760b56 commit 0742522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/assets/traits/thermostat_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class ThermostatIcon extends StatelessWidget {
border: Border.all(
width: WidgetStyleConstants.defaultBorderWidth,
color: WidgetStyleConstants.defaultBorderColor));
this._textStyle = WidgetStyleConstants.deviceItemTextPrimaryState;
this._textStyle =
textStyle ?? WidgetStyleConstants.deviceItemTextPrimaryState;
}

@override
Expand Down

0 comments on commit 0742522

Please sign in to comment.