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.
- 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
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();
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.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- 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 ↗
- g123k/flutter_torch_compat · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗