ThermostatSlimWidget constructor

ThermostatSlimWidget(
  1. ThermostatProvider thermostatProvider, {
  2. Color? backgroundColor,
  3. 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);