flutter_lamp
flutter_lamp copied to clipboard
Flash not work in Android
D/ViewRootImpl(16291): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(16291): ViewPostImeInputStage processPointer 1
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): Failed to handle method call
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): java.lang.RuntimeException: getParameters failed (empty parameters)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.hardware.Camera.native_getParameters(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.hardware.Camera.getParameters(Camera.java:1996)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at plugins.flutter.lamp.lamp.LampPlugin.turn(LampPlugin.java:63)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at plugins.flutter.lamp.lamp.LampPlugin.onMethodCall(LampPlugin.java:34)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(FlutterNativeView.java:188)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.os.Looper.loop(Looper.java:135)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at android.app.ActivityThread.main(ActivityThread.java:7325)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(16291): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
E/flutter (16291): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, getParameters failed (empty parameters), null)
E/flutter (16291): #0 StandardMethodCodec.decodeEnvelope
E/flutter (16291): #1 MethodChannel.invokeMethod
E/flutter (16291):
Same here
camera permission not working for flashlight , Have to restart app to make it work for flashlight using lamp 0.0.6 plugin #9 Posted this issue 3 months ago and still there is no response from flutter community . What should i do ?
Because import android.hardware.Camera deprecated
So what is the solution for this ?
2020... And any solution?
@malikdoksoz then solution? @GustavoFigueira did you find any solution?
@namittoppr use this, i solve my problem from this: LINK
+1