ThermostatSlimWidget constructor
ThermostatSlimWidget(
- ThermostatProvider thermostatProvider, {
- Color? backgroundColor,
- Key? key,
Implementation
ThermostatSlimWidget(ThermostatProvider thermostatProvider,
{Color? backgroundColor, Key? key})
: super(
provider: thermostatProvider,
leftIcon: Icon(BootstrapIcons.thermometer,
size: 20.0,
color: WidgetStyleConstants.deviceDetailIconColorActive),
headerText: Text(
'Target Temperature: ${thermostatProvider.getTargetTemperatureState?.toInt() ?? "--"}\u{00B0}',
style: TextStyle(
fontSize: 20, color: WidgetStyleConstants.darkTextColor)),
backgroundColor: backgroundColor,
createContent: (context) => _content(context, thermostatProvider),
key: key);