torch_flashlight 0.0.3
torch_flashlight: ^0.0.3 copied to clipboard
A Flutter plugin for controlling torch/flashlight availability, state, blinking, SOS, brightness, and background operation.
0.0.3 #
- Added torch state stream support to listen for on/off changes from the platform.
- Added
TorchControllerfor instance-based torch control and timer cleanup. - Added platform capability checks for strength, blinking, background, fade, SOS, and custom blink support.
- Added current torch state APIs, torch strength APIs, auto-off duration support, SOS mode, custom blink patterns, fade in/out, flash mode, and native blinking APIs.
- Added Android foreground service support for background torch operation.
- Improved Android implementation to use a torch-capable camera, track real torch state, emit state updates, and use Android 13+ torch strength APIs.
- Improved iOS implementation with state streaming, native blinking, and 0-100 torch strength handling.
- Added web fallback implementation for unsupported torch APIs.
- Updated tests and example smoke test for the current API.
- Fixed analyzer issues and cleaned up package metadata for publishing.
0.0.2 #
- Added Android Marshmallow API annotations.
0.0.1 #
- Initial release of the
torch_flashlightplugin. - Features:
- Check torch availability.
- Enable torch.
- Disable torch.
- Toggle torch periodically.