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

[bug] abort() has been callled #12

Closed UnluckyY1 closed 2 years ago

UnluckyY1 commented 2 years ago

Description (bug summary)

adding the plugin to any flutter project will cause a crash on the windows platform you can find more details in this issue link

Step to reproduce (how to reproduce the bug)

Simply add screen_brightness: ^0.2.2 to any flutter windows project and the app will crash immediately

Platform (Windows)

aaassseee commented 2 years ago

Hi @UnluckyY1. Thanks for opening the issue. Is that every one crash on start up?

aaassseee commented 2 years ago

Hi @UnluckyY1. Can you please try with the fix?

dependency_overrides:
  screen_brightness_windows:
    git:
      url: https://github.com/aaassseee/screen_brightness.git
      ref: develop
      path: screen_brightness_windows
UnluckyY1 commented 2 years ago

Hi @UnluckyY1. Can you please try with the fix?

dependency_overrides:
  screen_brightness_windows:
    git:
      url: https://github.com/aaassseee/screen_brightness.git
      ref: develop
      path: screen_brightness_windows

Thank's for your quick response @aaassseee I can confirm that this fixes the crash on the startup

aaassseee commented 2 years ago

@UnluckyY1 Package has been released, please do a pub upgrade. Feel free to reopen or create new issues if you have any problems.