Overview
flutter_displaymode is a Flutter plugin that enables developers to programmatically set display modes—such as resolution and refresh rate—on Android devices. It is particularly useful for optimizing performance and visual quality by enabling high refresh rates on supported hardware. The plugin provides direct access to Android's display settings, allowing apps to adapt dynamically to device capabilities. It does not support iOS, as the functionality is platform-specific to Android.
Use cases
- Optimizing app performance on high-refresh-rate screens
- Enabling 90Hz or 120Hz refresh rates for gaming apps
- Adjusting display resolution for better visual clarity
- Improving UI smoothness in animation-heavy applications
- Testing display behavior across different screen configurations
Key features
- Sets Android display resolution and refresh rate
- Supports high refresh rate modes on compatible devices
- Provides simple API for setting display mode
- Platform-specific to Android
- Does not require root access
Suitable for
- Android game developers
- Apps requiring high-performance UI rendering
- Developers targeting premium Android devices
- Applications focused on visual fidelity
- Tools testing display capabilities
Considerations
- Only works on Android devices
- Requires device support for dynamic display mode changes
- May not function on all Android versions
- Changes may be reverted by system or user
- Limited to specific hardware capabilities