Skip to content
pubscout

thermal

1.2.2, released 5 months ago by muxable.com

Flutter plugin to access device thermal state and detect thermal throttling.

$ flutter pub add thermal
Source repository

What it does

It allows Flutter apps to access the current thermal state of the device and listen to thermal status changes. Additionally, it provides a stream to watch battery temperature changes on Android.

AI-written summary of version 1.2.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to detect if the user's device is undergoing thermal throttling
  • You need to monitor battery or device temperature changes to adjust app workloads

Skip it when

  • You need detailed hardware diagnostics beyond thermal status and battery temperature

Strengths

  • Simple API to query thermal status
  • Stream-based updates for thermal status changes and battery temperature

Weaknesses

  • Limited documentation regarding platform-specific limitations or supported versions
  • Battery temperature tracking is Android-only based on changelog

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Add the dependency to pubspec.yaml and import the package. Follow standard platform configuration if required by native thermal APIs.

var _thermal = Thermal();
print(await _thermal.thermalStatus);

_thermal.onThermalStatusChanged.listen((ThermalStatus state) {
  // Do something with new status
});

Alternatives

Packages that do the same job and could replace thermal.

  • device_info_plus

    Provides general hardware and OS device information if thermal metrics are not strictly required.

Works with

Packages commonly used together with thermal: ones it builds on, ones built on it, and its own family.