BUG: Fix screen brightness changing
This commit is contained in:
parent
de4b6e8fcc
commit
6a12fa9e6e
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||
KenLogger.success("Can change system brightness: $canChange");
|
||||
if (canChange) {
|
||||
// Permission is granted, you can now change the system brightness
|
||||
ScreenBrightness.instance.system.then((brightness) {
|
||||
await ScreenBrightness.instance.system.then((brightness) {
|
||||
setState(() {
|
||||
_originalBrightness = brightness;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue