We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to get this working. Here's the errors I'm getting after capturing a photo and pushing the translate button. Any help appreciated.Thanks!
2021-04-07 22:12:01.688770-0700 Runner[11309:5002256] [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: Unhandled error NoSuchMethodError: The method '[]' was called on null. Receiver: null Tried calling: occurred in Instance of 'TranslatorBloc'. #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5) #1 _CamelCase.toCamelCase (package:translator/src/langs/language.dart:146:19) #2 LanguageList.contains (package:translator/src/langs/language.dart:131:41) #3 GoogleTranslator.translate (package:translator/src/google_translator.dart:29:25) #4 MLKit.translateText (package:flutter_translator/sevices/mlkit.dart:41:26) #5 TranslatorBloc.mapEventToState (package:flutter_translator/bloc/translate_bloc/translator_bloc.dart:22:45) #6 Bloc._bindEventsToStates. (package:bloc/src/bloc.dart:232:20) #7 Stream.asyncExpand.. (dart:async/stream.dart:644:30) #8 _rootRunUnary (dart:async/zone.dart:1198:47) #9 _CustomZone.runUnary (dart:async/zone.dart:1100:19) #10 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7) #11 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11) #12 _DelayedData.perform (dart:async/stream_impl.dart:611:14) #13 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11) #14 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7) #15 _rootRun (dart:async/zone.dart:1182:47) #16 _CustomZone.run (dart:async/zone.dart:1093:19) #17 _CustomZone.runGuarded (dart:async/zone.dart:997:7) #18 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) #19 _rootRun (dart:async/zone.dart:1190:13) #20 _CustomZone.run (dart:async/zone.dart:1093:19) #21 _CustomZone.runGuarded (dart:async/zone.dart:997:7) #22 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) #23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#0 Cubit.onError. (package:bloc/src/cubit.dart:144:7) #1 Cubit.onError (package:bloc/src/cubit.dart:145:6) #2 Bloc.onError (package:bloc/src/bloc.dart:201:11) #3 _rootRunBinary (dart:async/zone.dart:1214:47) #4 _CustomZone.runBinary (dart:async/zone.dart:1107:19) #5 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7) #6 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15) #7 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16) #8 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:294:7) #9 _SyncBroadcastStreamController._sendError. (dart:async/broadcast_stream_controller.dart:400:20) #10 _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:330:15) #11 _SyncBroadcastStreamController._sendError (dart:async/broadcast_stream_controller.dart:399:5) #12 _BroadcastStreamController._addError (dart:async/broadcast_stream_controller.dart:297:5) #13 _rootRunBinary (dart:async/zone.dart:1214:47) #14 _CustomZone.runBinary (dart:async/zone.dart:1107:19) #15 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7) #16 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15) #17 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16) #18 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:294:7) #19 _ForwardingStreamSubscription._addError (dart:async/stream_pipe.dart:132:11) #20 _ForwardingStream._handleError (dart:async/stream_pipe.dart:97:10) #21 _ForwardingStreamSubscription._handleError (dart:async/stream_pipe.dart:161:13) #22 _rootRunBinary (dart:async/zone.dart:1214:47) #23 _CustomZone.runBinary (dart:async/zone.dart:1107:19) #24 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7) #25 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15) #26 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16) #27 _DelayedError.perform (dart:async/stream_impl.dart:622:14) #28 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11) #29 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7) #30 _rootRun (dart:async/zone.dart:1182:47) #31 _CustomZone.run (dart:async/zone.dart:1093:19) #32 _CustomZone.runGuarded (dart:async/zone.dart:997:7) #33 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) #34 _rootRun (dart:async/zone.dart:1190:13) #35 _CustomZone.run (dart:async/zone.dart:1093:19) #36 _CustomZone.runGuarded (dart:async/zone.dart:997:7) #37 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) #38 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #39 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not able to get this working. Here's the errors I'm getting after capturing a photo and pushing the translate button. Any help appreciated.Thanks!
2021-04-07 22:12:01.688770-0700 Runner[11309:5002256] [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: Unhandled error NoSuchMethodError: The method '[]' was called on null.
Receiver: null
Tried calling: occurred in Instance of 'TranslatorBloc'.
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _CamelCase.toCamelCase (package:translator/src/langs/language.dart:146:19)
#2 LanguageList.contains (package:translator/src/langs/language.dart:131:41)
#3 GoogleTranslator.translate (package:translator/src/google_translator.dart:29:25)
#4 MLKit.translateText (package:flutter_translator/sevices/mlkit.dart:41:26)
#5 TranslatorBloc.mapEventToState (package:flutter_translator/bloc/translate_bloc/translator_bloc.dart:22:45)
#6 Bloc._bindEventsToStates. (package:bloc/src/bloc.dart:232:20)
#7 Stream.asyncExpand.. (dart:async/stream.dart:644:30)
#8 _rootRunUnary (dart:async/zone.dart:1198:47)
#9 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#10 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
#11 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#12 _DelayedData.perform (dart:async/stream_impl.dart:611:14)
#13 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)
#14 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7)
#15 _rootRun (dart:async/zone.dart:1182:47)
#16 _CustomZone.run (dart:async/zone.dart:1093:19)
#17 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#18 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#19 _rootRun (dart:async/zone.dart:1190:13)
#20 _CustomZone.run (dart:async/zone.dart:1093:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#22 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#0 Cubit.onError. (package:bloc/src/cubit.dart:144:7)
#1 Cubit.onError (package:bloc/src/cubit.dart:145:6)
#2 Bloc.onError (package:bloc/src/bloc.dart:201:11)
#3 _rootRunBinary (dart:async/zone.dart:1214:47)
#4 _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#5 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7)
#6 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15)
#7 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16)
#8 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:294:7)
#9 _SyncBroadcastStreamController._sendError. (dart:async/broadcast_stream_controller.dart:400:20)
#10 _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:330:15)
#11 _SyncBroadcastStreamController._sendError (dart:async/broadcast_stream_controller.dart:399:5)
#12 _BroadcastStreamController._addError (dart:async/broadcast_stream_controller.dart:297:5)
#13 _rootRunBinary (dart:async/zone.dart:1214:47)
#14 _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#15 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7)
#16 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15)
#17 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16)
#18 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:294:7)
#19 _ForwardingStreamSubscription._addError (dart:async/stream_pipe.dart:132:11)
#20 _ForwardingStream._handleError (dart:async/stream_pipe.dart:97:10)
#21 _ForwardingStreamSubscription._handleError (dart:async/stream_pipe.dart:161:13)
#22 _rootRunBinary (dart:async/zone.dart:1214:47)
#23 _CustomZone.runBinary (dart:async/zone.dart:1107:19)
#24 _CustomZone.runBinaryGuarded (dart:async/zone.dart:1013:7)
#25 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:376:15)
#26 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:394:16)
#27 _DelayedError.perform (dart:async/stream_impl.dart:622:14)
#28 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)
#29 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7)
#30 _rootRun (dart:async/zone.dart:1182:47)
#31 _CustomZone.run (dart:async/zone.dart:1093:19)
#32 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#33 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#34 _rootRun (dart:async/zone.dart:1190:13)
#35 _CustomZone.run (dart:async/zone.dart:1093:19)
#36 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#37 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#38 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#39 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
The text was updated successfully, but these errors were encountered: