Search packages, repositories and app categories

Package detailsv2.0.1

torch_controller

A controller to manage torch/flash device resource. We give you access to native resources to toggle flashlight, to natively check torch status and more!

AndroidiOS
30-day downloads
1.8K
Likes
27
Pub points
150

Install package

flutter pub add torch_controller

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The torch_controller package provides a simple and efficient way to manage the flashlight (torch) functionality on Android and iOS devices. It gives developers direct access to native device resources, enabling actions like toggling the flashlight, checking its current status, and handling permissions seamlessly. Built with Flutter, it ensures cross-platform compatibility while leveraging platform-specific capabilities for reliable performance. Ideal for apps requiring real-time lighting control, such as flashlights, QR code scanners, or night mode utilities.

Use cases

  • Flashlight applications
  • QR code scanning tools
  • Night mode lighting controls
  • Emergency lighting features
  • Camera-based utility apps

Key features

  • Toggle flashlight on/off
  • Check torch status natively
  • Cross-platform support (Android & iOS)
  • Native resource access
  • Simple API integration
  • Permission handling

Suitable for

  • Mobile flashlight apps
  • Camera enhancement tools
  • Utility apps needing lighting control
  • Developers seeking native hardware access
  • Apps requiring low-level device interaction

Considerations

  • Requires camera permission on both platforms
  • May not work on all devices due to hardware limitations
  • Background operation may be restricted by OS
  • Battery usage increases when torch is on
  • Limited to torch/flashlight functionality only

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

opensource_qwkin_dart

Packages

Categories

Source repository

Projects using this package