clovisnicolas / flutter_screen

MIT License
145 stars 140 forks source link

Unhandled Exception: MissingPluginException(No implementation found for method brightness on channel github.com/clovisnicolas/flutter_screen) #19

Open cyany opened 5 years ago

cyany commented 5 years ago

i added screen: 0.0.5 in pubspec.yaml and run flutter pub get . but run main.dart cause the result

karolzlot commented 4 years ago

I tried this: Screen.setBrightness(0.5); And I have similar error:

Exception has occurred.
MissingPluginException (MissingPluginException(No implementation found for method setBrightness on channel github.com/clovisnicolas/flutter_screen))
karolzlot commented 4 years ago

This is solution: https://github.com/flutter/flutter/issues/10912#issuecomment-310637961

You just have to close whole debugging (close app completely) and start debugging again. Restart or refresh are not sufficient (in vscode at least)