GitHub repositoryg123k/flutter_torch_compat

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.

flutter_torch_compat project cover
Stars
7
Forks
22
Last push (UTC)
Nov 12, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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();  
Edouard Marquez GitHub avatar
GitHub author

Edouard Marquez ↗

Android & Flutter developer

LanguagesKotlinRubyDartSwiftObjective-C

Categories

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗