torch_compat 1.0.2 copy "torch_compat: ^1.0.2" to clipboard
torch_compat: ^1.0.2 copied to clipboard

discontinued

Plugin to turn on / off the torch (or flash of the camera) on all supported versions of Android (4.1+) and iOS

Torch compat #

Pub

A plugin to enable or disable the torch of a device that works both on Android (including Android 4.x) and ioS.

Getting started #

1) Dependency setup #

First import the library to your project in your pubspec.yaml:

torch_compat: ^1.0.2

2) Import the library in your Dart code #

import 'package:torch_compat/torch_compat.dart';

3) Turn on or off the flash #

TorchCompat.turnOn();
TorchCompat.turnOff();  
32
likes
40
pub points
69%
popularity

Publisher

verified publisherdaad.mobi

Plugin to turn on / off the torch (or flash of the camera) on all supported versions of Android (4.1+) and iOS

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on torch_compat