Open cyany opened 5 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))
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)
i added screen: 0.0.5 in pubspec.yaml and run flutter pub get . but run main.dart cause the result