device_temperature
device_temperature is a flutter plugin that can provide you the current temperature of an android device.
- Note: This plugin can work only in Android as of now!
Usage
- Add devicetemperature as a dependency in your pubspec.yaml file.
import 'package:devicetemperature/devicetemperature.dart';
double temperature = await Devicetemperature.DeviceTemperature;
Available Methods
- getDeviceTemperature
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update the tests as appropriate.