{"repo":"ajinasokan/flutter_displaymode","free":true,"listed":false,"github":"https://github.com/ajinasokan/flutter_displaymode","clone":"git clone https://github.com/ajinasokan/flutter_displaymode.git","description":"A Flutter plugin to set display mode in Android","language":"Dart","stars":230,"topics":["flutter-plugin","android","flutter"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Flutter Display Mode A Flutter plugin to set display mode in Android. This is useful to enable high refresh rate in devices with discrete framerates like 60Hz, 90Hz etc. This library is ineffective on devices with LTPO panels and iOS devices with ProMotion. This library should be used as a temporary fix to #35162 until this API gets added to Flutter engine itself. Getting Started Add library to pubspec then and rebuild your app: Set to highest/lowest framerate Use helper functions FlutterDisplayMode.setHighRefreshRate or FlutterDisplayMode.setLowRefreshRate to switch to highest or lowest refresh rate maintaining current resolution. Get supported modes FlutterDisplayMode.supported returns all the modes that can be set as the preferred mode. This always returns DisplayMode.auto as one of the modes. Get active mode FlutterDisplayMode.active fetches the currently active mode. This is not always the preferred mode set by FlutterDisplayMode.setPreferredMode . It can be altered by the system based on the display settings. Set preferred mode FlutterDisplayMode.setPreferredMode changes the preferred mode. It is upto the system to use this mode. Sometimes system can choose not switch to this based on internal heuristics. Check FlutterDisplayMode.active to see if it actually switches. Get preferred mode FlutterDisplayMode.preferred returns the currently preferred mode. If not manually set with FlutterDisplayMode.setPreferredMode then it will be DisplayMode.auto . You can check out a com","default_branch":null,"files":null,"tree":[],"storefront":"/r/ajinasokan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ajinasokan/flutter_displaymode/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}