Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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