Closed milindgoel15 closed 1 year ago
From my experiments I have found that it is not possible. Final decision is up to the system. If the phone display settings has an Auto mode then we will be able to switch to whatever mode deterministically. Otherwise users setting is respected.
Gotcha thanks
So I have just implemented the flutter_displaymode in my app. I have currently used the
setHighRefreshRate();
method in the root widget which works fine. But this has its own downside for users who prefer using a lower refresh rate.In the example application provided and in the documentation, the function
setPreferredMode()
is there to basically set a preference for the app to use the desired mode. But according to this line:If the system is set to 90hz and we use the setPreferredMode to set to 60hz, the active rate does not switch to 60hz and it stays on 90hz because the system is set to 90. So how can we force the app to use the preferred mode?