flashlight_plugin 0.0.1
flashlight_plugin: ^0.0.1 copied to clipboard
A Flutter Plugin to control the flashlight on android devices that are Android 6.0 or higher
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flashlight_pluginThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flashlight_plugin: ^0.0.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flashlight_plugin/flashlight_plugin.dart';