flutter_refresh_rate_control 0.1.0+0
flutter_refresh_rate_control: ^0.1.0+0 copied to clipboard
A Flutter plugin that requests high refresh rate mode on Android, iOS and macOS devices.
0.1.0+0 #
- Added macOS support (macOS 14+)
- Android: Only use the current resolution modes
- Android:
stopHighRefreshRate()restores the previous preference - Added
forcetostopHighRefreshRate()to restore the previous setting, even if something else changed it - Android: Adaptive Refresh Rate is disabled by the plugin on API 35+, the
styles.xmlsetup step is no longer needed - Android: the request is made again when the activity is recreated (so it will continue to work after suspend)
- iOS: requests the display's maximum refresh rate (instead of 120Hz)
- iOS:
currentFramesPerSecondis no longer infinite before the display link has fired - Fixed all methods throwing on web
getRefreshRateInfo()reportscurrentRefreshRateon unsupported platforms- Methods fall back to no-op results when the native plugin is not registered (e.g. in widget tests)
exceptionOnUnsupportedPlatformis now consistent between instances- Added an integration test that measures the frame rate
- Updated example app, it now displays FPS and can be configured to turn off animation or lower the FPS counter update rate this lets you test various conditions - but the app render rate will slow down no matter what the display is requested at. Forcing frame rendering would make it render at a higher rate, but it would also trigger VRR on some devices, so it isn't a good indication of what's actually happening with the display.
0.0.7+0 #
- Remove KGP
- Update method channel invocation
- Update iOS to use swift package manager
- Remove pods
0.0.6+0 #
- Readme update, added TOC and clarified some documentation.
0.0.5+1 #
- Updated dependencies
- Upgraded gradle to 8.13.2
- Updated documentation thanks @makoConstruct (Issue #1)
- Added documentation for the
getRefreshRateInfo()method - Added default keys for the
getRefreshRateInfo()that are always returned.platform: (string) The platform the app is running on, e.g. "android", "ios", "windows", "linux", "macos"supported: (bool) Whether refresh rate control is supported on the current platform
- Aliased 'currentFramesPerSecond', 'currentRefreshRate' for iOS and Android so both will give you the same value.
0.0.4+1 #
- Lower Dart SDK minimum version to
3.7.0
0.0.3+1 #
- Migrated to Swift Package Manager
- Implemented
getPlatformVersionmethod for iOS and Android
0.0.2 #
- Documentation fixes
- Shortened package description
0.0.1 #
- Initial release of the package
- Attempts to set high refresh rate for iOS and Android devices