Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g123k/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.
https://github.com/g123k/flutter_torch_compat
android dart dartlang flash flutter ios torch
Last synced: 29 days ago
JSON representation
A plugin to enable or disable the torch of a device that works both on Android (including Android 4.x) and iOS.
- Host: GitHub
- URL: https://github.com/g123k/flutter_torch_compat
- Owner: g123k
- License: apache-2.0
- Created: 2019-10-31T12:59:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-12T19:55:06.000Z (about 3 years ago)
- Last Synced: 2024-10-01T16:39:57.219Z (about 1 month ago)
- Topics: android, dart, dartlang, flash, flutter, ios, torch
- Language: Kotlin
- Homepage: https://pub.dev/packages/torch_compat
- Size: 67.4 KB
- Stars: 7
- Watchers: 2
- Forks: 22
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Torch compat
[![Pub](https://img.shields.io/pub/v/torch_compat.svg)](https://pub.dartlang.org/packages/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`:```yaml
torch_compat: ^1.0.2
```### 2) Import the library in your Dart code
```dart
import 'package:torch_compat/torch_compat.dart';
```### 3) Turn on or off the flash
```dart
TorchCompat.turnOn();
TorchCompat.turnOff();
```