Overview
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