Skip to content

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

License

Notifications You must be signed in to change notification settings

ilkamo/flutter_torch_compat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 39.9%
  • Ruby 21.3%
  • Dart 19.9%
  • Swift 16.3%
  • Objective-C 2.6%