FLUTTER ECOSYSTEM

screen_brightness

A Plugin for controlling screen brightness with application life cycle reset implemented

Latest version
2.1.11
30-day downloads
205K
Likes
169
Pub points
160

Package Overview

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

Overview

The screen_brightness package allows developers to programmatically control screen brightness on Android, iOS, macOS, and Windows devices. It provides a simple API to set brightness levels and automatically resets brightness when the app is paused or resumed, ensuring a consistent user experience. The plugin is particularly useful for apps that require dynamic screen adjustments based on user interaction or ambient conditions. It supports both absolute and relative brightness values across platforms.

Use cases
  • Adjusting screen brightness in media playback apps
  • Implementing adaptive brightness for accessibility features
  • Optimizing battery usage in mobile applications
  • Creating ambient lighting effects in interactive apps
  • Managing brightness during full-screen gaming experiences
Key features
  • Cross-platform support for Android, iOS, macOS, and Windows
  • Automatic brightness reset on app lifecycle changes
  • Support for absolute and relative brightness values
  • Simple and consistent API across platforms
  • Built-in handling of platform-specific brightness limits
Suitable for
  • Developers building cross-platform apps with brightness controls
  • Accessibility-focused applications requiring dynamic brightness adjustment
  • Media and gaming apps needing responsive screen settings
  • Apps targeting desktop and mobile platforms simultaneously
Considerations
  • Brightness control may be restricted by device policies or system settings
  • Permissions might be required on certain platforms
  • Behavior can vary slightly between operating systems
  • Not all devices support fine-grained brightness adjustments
  • Requires careful testing across different hardware configurations
Supported platformsAndroidiOSmacOSWindows

Install package

flutter pub add screen_brightness

Categories

Dependencies

Dependency list 6 items
  • screen_brightness_android>=2.1.6 <3.0.0
  • screen_brightness_ios>=2.1.4 <3.0.0
  • screen_brightness_macos>=2.1.4 <3.0.0
  • screen_brightness_ohos>=2.1.4 <3.0.0
  • screen_brightness_platform_interface>=2.1.2 <3.0.0
  • screen_brightness_windows>=2.1.2 <3.0.0

Source repository

Related projects