Skip to content

asaarnak/flutter_thermal

 
 

Repository files navigation

thermal

pub package

Usage

To use this plugin, add thermal as a dependency in your pubspec.yaml file.

Example

// Import package
import 'package:thermal/thermal.dart';

// Instantiate it
var _thermal = Thermal();

// Access current thermal status
print(await _thermal.thermalStatus);

// Be informed when the status changes
_thermal.onThermalStatusChanged.listen((ThermalStatus state) {
  // Do something with new status
});

// Watch the battery temperature
_thermal.onBatteryTemperatureChanged.listen((double temperature) {
  // Do something wth the temperature
});

About

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 39.0%
  • Dart 23.1%
  • Swift 16.9%
  • Ruby 16.3%
  • Objective-C 4.7%