torch 0.1.1 copy "torch: ^0.1.1" to clipboard
torch: ^0.1.1 copied to clipboard

discontinued

A Flutter plugin to access the device's torch on Android and iOS.

torch #

A Flutter plugin to access the device's torch on Android and iOS.

Usage #

To use this plugin, add torch as a dependency in your pubspec.yaml file.

For android, add the following to your manifest

Example #

// Import package
import 'package:torch/torch.dart';

// Turn the torch on:
Torch.turnOn();

// Turn the torch off:
Torch.turnOff();

// Make a flash:
Torch.flash(Duration(milliseconds: 300));

// Check if the device has torch:
bool hasTorch = await Torch.hasTorch;

0
likes
20
pub points
70%
popularity

Publisher

unverified uploader

A Flutter plugin to access the device's torch on Android and iOS.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on torch