torch_flashlight 0.0.3 copy "torch_flashlight: ^0.0.3" to clipboard
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 TorchController for 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_flashlight plugin.
  • Features:
    • Check torch availability.
    • Enable torch.
    • Disable torch.
    • Toggle torch periodically.
6
likes
150
points
91
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for controlling torch/flashlight availability, state, blinking, SOS, brightness, and background operation.

Repository (GitHub)
View/report issues

Topics

#flashlight #torch #camera #blink #sos

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on torch_flashlight

Packages that implement torch_flashlight