clovisnicolas / flutter_screen

MIT License
145 stars 140 forks source link

Brightness not changing on Android 9.0 Pie? #28

Open QasimRailo opened 4 years ago

QasimRailo commented 4 years ago

[ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method setBrightness on channel github.com/clovisnicolas/flutter_screen) E/flutter (31279): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7) E/flutter (31279): E/flutter (31279): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12) E/flutter (31279): #2 Screen.setBrightness (package:screen/screen.dart:9:61) E/flutter (31279): #3 _MyAppState.build. (package:night_mode/main.dart:59:24) E/flutter (31279): #4 _SliderState._handleChanged (package:flutter/src/material/slider.dart:542:23) E/flutter (31279): #5 _RenderSlider._startInteraction (package:flutter/src/material/slider.dart:1253:16) E/flutter (31279): #6 _RenderSlider._handleDragStart (package:flutter/src/material/slider.dart:1288:54) E/flutter (31279): #7 DragGestureRecognizer._checkStart. (package:flutter/src/gestures/monodrag.dart:384:52) E/flutter (31279): #8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) E/flutter (31279): #9 DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:384:7) E/flutter (31279): #10 DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:308:7) E/flutter (31279): #11 _CombiningGestureArenaMember.acceptGesture (package:flutter/src/gestures/team.dart:41:13) E/flutter (31279): #12 GestureArenaManager._resolveByDefault (package:flutter/src/gestures/arena.dart:250:25) E/flutter (31279): #13 GestureArenaManager._tryToResolveArena. (package:flutter/src/gestures/arena.dart:231:31) E/flutter (31279): #14 _rootRun (dart:async/zone.dart:1182:47) E/flutter (31279): #15 _CustomZone.run (dart:async/zone.dart:1093:19) E/flutter (31279): #16 _CustomZone.runGuarded (dart:async/zone.dart:997:7) E/flutter (31279): #17 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) E/flutter (31279): #18 _rootRun (dart:async/zone.dart:1190:13) E/flutter (31279): #19 _CustomZone.run (dart:async/zone.dart:1093:19) E/flutter (31279): #20 _CustomZone.runGuarded (dart:async/zone.dart:997:7) E/flutter (31279): #21 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) E/flutter (31279): #22 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) E/flutter (31279): #23 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)