torch_controller 2.0.1 copy "torch_controller: ^2.0.1" to clipboard
torch_controller: ^2.0.1 copied to clipboard

A controller to manage torch/flash device resource. We give you access to native resources to toggle flashlight, to natively check torch status and more!

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add torch_controller

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  torch_controller: ^2.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:torch_controller/torch_controller.dart';
25
likes
160
points
2.93k
downloads

Publisher

unverified uploader

Weekly Downloads

A controller to manage torch/flash device resource. We give you access to native resources to toggle flashlight, to natively check torch status and more!

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on torch_controller