tj-noor / 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.

Home Page:https://pub.dev/packages/torch_compat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.0

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();  

About

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

https://pub.dev/packages/torch_compat

License:Apache License 2.0


Languages

Language:Kotlin 40.0%Language:Ruby 21.3%Language:Dart 19.9%Language:Swift 16.3%Language:Objective-C 2.6%