FLUTTER ECOSYSTEM

proximity_sensor

simple and easy to use flutter plugin package for proximity sensor (only)

Latest version
2.0.0
30-day downloads
22.9K
Likes
46
Pub points
160

Package Overview

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

Overview

The proximity_sensor package is a lightweight Flutter plugin designed to simplify access to the device's proximity sensor on Android and iOS. It enables apps to detect when an object is near the device, commonly used for features like automatically turning off the screen during phone calls. The plugin provides a straightforward API with minimal setup, making it ideal for developers seeking basic proximity detection without additional complexity. It supports both major mobile platforms and integrates seamlessly into existing Flutter projects.

Use cases
  • Auto screen dimming during calls
  • Gesture-based interaction detection
  • Proximity-triggered app behaviors
  • Device orientation awareness
  • Smart wake-up from sleep mode
Key features
  • Simple, minimal API
  • Cross-platform support (Android & iOS)
  • Real-time proximity event listening
  • Lightweight and fast
  • No additional dependencies
Suitable for
  • Mobile apps needing proximity detection
  • Call interface enhancements
  • IoT device interaction
  • Accessibility features
  • Low-level sensor integration
Considerations
  • Limited to proximity sensor only
  • Requires device hardware support
  • No fallback for unsupported devices
  • Platform-specific behavior differences
  • Sensor accuracy may vary by device
Supported platformsAndroidiOS

Install package

flutter pub add proximity_sensor

Categories

Source repository

Related projects