aaassseee / screen_brightness

A Plugin for controlling screen brightness with application life cycle set and reset brightness implemented
https://pub.dev/packages/screen_brightness
MIT License
25 stars 22 forks source link

[feat] Duration of brightness change on Android #21

Closed francistac closed 1 year ago

francistac commented 1 year ago

Description (What is the problem)

There is no way to control how fast the brightness changes on Android.

Solution suggestion

A 'duration' property that lets you set the duration with the Duration class. Is this possible?

aaassseee commented 1 year ago

Hi @francistac. If I am right, you would like to change the brightness changing animation duration. Right?

francistac commented 1 year ago

Hi @francistac. If I am right, you would like to change the brightness changing animation duration. Right?

Correct

aaassseee commented 1 year ago

Hi @francistac, for Android, there isn't any native provided method to change the screen brightness with duration. Any suggestion and what you are trying to achieve?

francistac commented 1 year ago

Hi @francistac, for Android, there isn't any native provided method to change the screen brightness with duration. Any suggestion and what you are trying to achieve?

I guess there is no possible way to change the duration then, thanks for looking anyways. Thank you for your work so far with this plugin, & thank you for your time.

francistac commented 1 year ago

Is there a way to remove the brightness 'fade' animation? Like just an immediate change between different brightness values, with no animation between the transition.

aaassseee commented 1 year ago

Nope I don't think so. It depends on the Android ROM.