flutter_torch_compat

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

APACHE-2.0 License

Stars
7
Committers
2

Torch compat

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();  
Package Rankings
Top 11.61% on Pub.dev
Badges
Extracted from project README
Pub
Related Projects