Open
Description
It might be related to this comment: #8 (comment)
It would be great to have a way to reset the user brightness, but more like turning off the plugin.
This is because (as the related comment says) it becomes impossible to manually change the brightness.
// on initState, get original brightness.
_userBrightnessRatio = await Screen.brightness;
...
// This correctly sets the original brightness back, but
// there is no way to change it using the user preferences.
// You need to close the app to be able to change it.
Screen.setBrightness(_userBrightnessRatio);
Do you believe there is a way to do this? I thought of adding the proper method to the https://github.com/clovisnicolas/flutter_screen/blob/master/android/src/main/java/flutter/plugins/screen/screen/ScreenPlugin.java file. I would be willing to create a PR if we could find a solution 😁.
Metadata
Metadata
Assignees
Labels
No labels