torchx 1.0.4 copy "torchx: ^1.0.4" to clipboard
torchx: ^1.0.4 copied to clipboard

control all about torch(flashlight). on/off and measure torch levels

torchx #

Pub Version

TorchX flutter library #

#torch #flash #flashlight #lantern #torchlight

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

🚧 version #

Android iOS
Support SDK 23+πŸ”Ό
LolliPop🍭
iOS 10+πŸ”Ό

🌱 torch level(strength) measure tip #

os type min max
Android integer 1 5
iOS float 0.1 1.0

πŸš€ usage #

Flash ON 🌝

Torch.instance.flashOn();

measure torch level and flashOn 🌝

double torchLevel = 0.5;

Torch.instance.flashOnLevel(strengthLevel: level);

Flash OFF 🌚

Torch.instance.flashOff();

Flash On/Off state 🌝/🌚

await Torch.instance.isTorched;

set/get torch strength level 🌞

double torchLevel = 0.5;

// set
Torch.instance.setLevel(strengthLevel: torchLevel);

// get
torchLevel = await Torch.instance.getLevel();


6
likes
160
pub points
33%
popularity
screenshot

Publisher

verified publisherdonguran.com

control all about torch(flashlight). on/off and measure torch levels

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_logcat, plugin_platform_interface

More

Packages that depend on torchx