Skip to content
New issue

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

FormBuilderImagePicker #607

Closed
zlamlam10 opened this issue Nov 30, 2020 · 8 comments · Fixed by #610
Closed

FormBuilderImagePicker #607

zlamlam10 opened this issue Nov 30, 2020 · 8 comments · Fixed by #610

Comments

@zlamlam10
Copy link

zlamlam10 commented Nov 30, 2020

After add a photo the photo did not be added


E/flutter ( 8279): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.
E/flutter ( 8279): Receiver: null
E/flutter ( 8279): Tried calling: iterator
E/flutter ( 8279): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
E/flutter ( 8279): #1      new FormBuilderImagePicker.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>
package:flutter_form_builder/…/fields/form_builder_image_picker.dart:187
E/flutter ( 8279): #2      _ImageSourceBottomSheetState._onPickImage
package:flutter_form_builder/…/widgets/image_source_sheet.dart:89
E/flutter ( 8279): <asynchronous suspension>
E/flutter ( 8279): #3      _ImageSourceBottomSheetState.build.<anonymous closure>
package:flutter_form_builder/…/widgets/image_source_sheet.dart:106
E/flutter ( 8279): #4      _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:993
E/flutter ( 8279): #5      _InkResponseState.build.<anonymous closure>
package:flutter/…/material/ink_well.dart:1111
E/flutter ( 8279): #6      GestureRecognizer.invokeCallback
package:flutter/…/gestures/recognizer.dart:183
E/flutter ( 8279): #7      TapGestureRecognizer.handleTapUp
package:flutter/…/gestures/tap.dart:598
E/flutter ( 8279): #8      BaseTapGestureRecognizer._checkUp
package:flutter/…/gestures/tap.dart:287
E/flutter ( 8279): #9      BaseTapGestureRecognizer.acceptGesture
package:flutter/…/gestures/tap.dart:259
E/flutter ( 8279): #10     GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart:157
E/flutter ( 8279): #11     GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart:362
E/flutter ( 8279): #12     GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:338
E/flutter ( 8279): #13     RendererBinding.dispatchEvent
package:flutter/…/rendering/binding.dart:267
E/flutter ( 8279): #14     GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart:295
E/flutter ( 8279): #15     GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart:240
E/flutter ( 8279): #16     GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart:213
E/flutter ( 8279): #17     _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter ( 8279): #18     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter ( 8279): #19     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter ( 8279): #20     _invoke1 (dart:ui/hooks.dart:265:10)
E/flutter ( 8279): #21     _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)


@jordan15
Copy link

jordan15 commented Dec 1, 2020

+1 I have the same issue

@prakash-indorkar
Copy link

E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.
E/flutter ( 4749): Receiver: null
E/flutter ( 4749): Tried calling: iterator
�[38;5;244mE/flutter ( 4749): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)�[39;49m
�[38;5;248mE/flutter ( 4749): #1 new FormBuilderImagePicker....�[39;49m
package:flutter_form_builder/…/fields/form_builder_image_picker.dart
�[38;5;248mE/flutter ( 4749): #2 _ImageSourceBottomSheetState._onPickImage�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
E/flutter ( 4749):
�[38;5;248mE/flutter ( 4749): #3 _ImageSourceBottomSheetState.build.�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
�[38;5;244mE/flutter ( 4749): #4 _InkResponseState._handleTap�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #5 _InkResponseState.build.�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #6 GestureRecognizer.invokeCallback�[39;49m
package:flutter/…/gestures/recognizer.dart
�[38;5;244mE/flutter ( 4749): #7 TapGestureRecognizer.handleTapUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #8 BaseTapGestureRecognizer._checkUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #9 BaseTapGestureRecognizer.acceptGesture�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #10 GestureArenaManager.sweep�[39;49m
package:flutter/…/gestures/arena.dart
�[38;5;244mE/flutter ( 4749): #11 GestureBinding.handleEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #12 GestureBinding.dispatchEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #13 RendererBinding.dispatchEvent�[39;49m
package:flutter/…/rendering/binding.dart
�[38;5;244mE/flutter ( 4749): #14 GestureBinding._handlePointerEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #15 GestureBinding._flushPointerEventQueue�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #16 GestureBinding._handlePointerDataPacket�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #17 _rootRunUnary (dart:async/zone.dart:1206:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #18 _CustomZone.runUnary (dart:async/zone.dart:1100:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #19 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #20 _invoke1 (dart:ui/hooks.dart:265:10)�[39;49m
�[38;5;244mE/flutter ( 4749): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.
E/flutter ( 4749): Receiver: null
E/flutter ( 4749): Tried calling: iterator
�[38;5;244mE/flutter ( 4749): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)�[39;49m
�[38;5;248mE/flutter ( 4749): #1 new FormBuilderImagePicker....�[39;49m
package:flutter_form_builder/…/fields/form_builder_image_picker.dart
�[38;5;248mE/flutter ( 4749): #2 _ImageSourceBottomSheetState._onPickImage�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
E/flutter ( 4749):
�[38;5;248mE/flutter ( 4749): #3 _ImageSourceBottomSheetState.build.�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
�[38;5;244mE/flutter ( 4749): #4 _InkResponseState._handleTap�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #5 _InkResponseState.build.�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #6 GestureRecognizer.invokeCallback�[39;49m
package:flutter/…/gestures/recognizer.dart
�[38;5;244mE/flutter ( 4749): #7 TapGestureRecognizer.handleTapUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #8 BaseTapGestureRecognizer._checkUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #9 BaseTapGestureRecognizer.acceptGesture�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #10 GestureArenaManager.sweep�[39;49m
package:flutter/…/gestures/arena.dart
�[38;5;244mE/flutter ( 4749): #11 GestureBinding.handleEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #12 GestureBinding.dispatchEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #13 RendererBinding.dispatchEvent�[39;49m
package:flutter/…/rendering/binding.dart
�[38;5;244mE/flutter ( 4749): #14 GestureBinding._handlePointerEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #15 GestureBinding._flushPointerEventQueue�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #16 GestureBinding._handlePointerDataPacket�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #17 _rootRunUnary (dart:async/zone.dart:1206:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #18 _CustomZone.runUnary (dart:async/zone.dart:1100:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #19 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #20 _invoke1 (dart:ui/hooks.dart:265:10)�[39;49m
�[38;5;244mE/flutter ( 4749): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)�[39;49m
E/flutter ( 4749):
�[38;5;244m[GETX] �[39;49mOPEN DIALOG: 805039332
�[38;5;244m[GETX] �[39;49mCLOSE DIALOG: 805039332
W/IInputConnectionWrapper( 4749): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 4749): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 4749): setComposingRegion on inactive InputConnection
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.
E/flutter ( 4749): Receiver: null
E/flutter ( 4749): Tried calling: iterator
�[38;5;244mE/flutter ( 4749): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)�[39;49m
�[38;5;248mE/flutter ( 4749): #1 new FormBuilderImagePicker....�[39;49m
package:flutter_form_builder/…/fields/form_builder_image_picker.dart
�[38;5;248mE/flutter ( 4749): #2 _ImageSourceBottomSheetState._onPickImage�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
E/flutter ( 4749):
�[38;5;248mE/flutter ( 4749): #3 _ImageSourceBottomSheetState.build.�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
�[38;5;244mE/flutter ( 4749): #4 _InkResponseState._handleTap�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #5 _InkResponseState.build.�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #6 GestureRecognizer.invokeCallback�[39;49m
package:flutter/…/gestures/recognizer.dart
�[38;5;244mE/flutter ( 4749): #7 TapGestureRecognizer.handleTapUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #8 BaseTapGestureRecognizer._checkUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #9 BaseTapGestureRecognizer.acceptGesture�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #10 GestureArenaManager.sweep�[39;49m
package:flutter/…/gestures/arena.dart
�[38;5;244mE/flutter ( 4749): #11 GestureBinding.handleEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #12 GestureBinding.dispatchEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #13 RendererBinding.dispatchEvent�[39;49m
package:flutter/…/rendering/binding.dart
�[38;5;244mE/flutter ( 4749): #14 GestureBinding._handlePointerEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #15 GestureBinding._flushPointerEventQueue�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #16 GestureBinding._handlePointerDataPacket�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #17 _rootRunUnary (dart:async/zone.dart:1206:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #18 _CustomZone.runUnary (dart:async/zone.dart:1100:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #19 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #20 _invoke1 (dart:ui/hooks.dart:265:10)�[39;49m
�[38;5;244mE/flutter ( 4749): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)�[39;49m
E/flutter ( 4749):
�[38;5;244m[GETX] �[39;49mOPEN DIALOG: 354368698
�[38;5;244m[GETX] �[39;49mCLOSE DIALOG: 354368698
Reloaded 36 of 1862 libraries in 15,673ms.
I/flutter ( 4749): Total filtered sharings fetched: 3
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
W/sharingiscarin( 4749): Reducing the number of considered missed Gc histogram windows from 112 to 100
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null.
E/flutter ( 4749): Receiver: null
E/flutter ( 4749): Tried calling: iterator
�[38;5;244mE/flutter ( 4749): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)�[39;49m
�[38;5;248mE/flutter ( 4749): #1 new FormBuilderImagePicker....�[39;49m
package:flutter_form_builder/…/fields/form_builder_image_picker.dart
�[38;5;248mE/flutter ( 4749): #2 _ImageSourceBottomSheetState._onPickImage�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
E/flutter ( 4749):
�[38;5;248mE/flutter ( 4749): #3 _ImageSourceBottomSheetState.build.�[39;49m
package:flutter_form_builder/…/widgets/image_source_sheet.dart
�[38;5;244mE/flutter ( 4749): #4 _InkResponseState._handleTap�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #5 _InkResponseState.build.�[39;49m
package:flutter/…/material/ink_well.dart
�[38;5;244mE/flutter ( 4749): #6 GestureRecognizer.invokeCallback�[39;49m
package:flutter/…/gestures/recognizer.dart
�[38;5;244mE/flutter ( 4749): #7 TapGestureRecognizer.handleTapUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #8 BaseTapGestureRecognizer._checkUp�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #9 BaseTapGestureRecognizer.acceptGesture�[39;49m
package:flutter/…/gestures/tap.dart
�[38;5;244mE/flutter ( 4749): #10 GestureArenaManager.sweep�[39;49m
package:flutter/…/gestures/arena.dart
�[38;5;244mE/flutter ( 4749): #11 GestureBinding.handleEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #12 GestureBinding.dispatchEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #13 RendererBinding.dispatchEvent�[39;49m
package:flutter/…/rendering/binding.dart
�[38;5;244mE/flutter ( 4749): #14 GestureBinding._handlePointerEvent�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #15 GestureBinding._flushPointerEventQueue�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #16 GestureBinding._handlePointerDataPacket�[39;49m
package:flutter/…/gestures/binding.dart
�[38;5;244mE/flutter ( 4749): #17 _rootRunUnary (dart:async/zone.dart:1206:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #18 _CustomZone.runUnary (dart:async/zone.dart:1100:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #19 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #20 _invoke1 (dart:ui/hooks.dart:265:10)�[39;49m
�[38;5;244mE/flutter ( 4749): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
�[38;5;244m[GETX] �[39;49mCLOSE DIALOG: 1044086285
E/flutter ( 4749): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: A FocusNode was used after being disposed.
E/flutter ( 4749): Once you have called dispose() on a FocusNode, it can no longer be used.
�[38;5;244mE/flutter ( 4749): #0 ChangeNotifier._debugAssertNotDisposed.�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #1 ChangeNotifier._debugAssertNotDisposed�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #2 ChangeNotifier.notifyListeners�[39;49m
package:flutter/…/foundation/change_notifier.dart
�[38;5;244mE/flutter ( 4749): #3 FocusNode._notify�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #4 FocusManager._applyFocusChange�[39;49m
package:flutter/…/widgets/focus_manager.dart
�[38;5;244mE/flutter ( 4749): #5 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
�[38;5;244mE/flutter ( 4749): #6 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #7 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #9 _rootRun (dart:async/zone.dart:1190:13)�[39;49m
�[38;5;244mE/flutter ( 4749): #10 _CustomZone.run (dart:async/zone.dart:1093:19)�[39;49m
�[38;5;244mE/flutter ( 4749): #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)�[39;49m
�[38;5;244mE/flutter ( 4749): #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)�[39;49m
�[38;5;244mE/flutter ( 4749): #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244mE/flutter ( 4749): #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)�[39;49m
E/flutter ( 4749):
Lost connection to device.
Exited (sigterm)

@prakash-indorkar
Copy link

I'm not able to add images after new version upgrade

@awhitford
Copy link
Collaborator

Yikes! I think I see the problem:

https://github.com/danvick/flutter_form_builder/blob/d4f862d662242a4887c03613260791a0f3f660b8/lib/src/fields/form_builder_image_picker.dart#L187

When field.value is null, this triggers an NPE. This needs a null-safe operator like ...?.

In the meantime, you can try specifying an empty list as initialValue -- that should be a viable workaround to avoid the null.

awhitford added a commit to awhitford/flutter_form_builder that referenced this issue Dec 2, 2020
@zlamlam10
Copy link
Author

Yikes! I think I see the problem:

https://github.com/danvick/flutter_form_builder/blob/d4f862d662242a4887c03613260791a0f3f660b8/lib/src/fields/form_builder_image_picker.dart#L187

When field.value is null, this triggers an NPE. This needs a null-safe operator like ...?.

In the meantime, you can try specifying an empty list as initialValue -- that should be a viable workaround to avoid the null.

after adding a empty list in initialValue its work perfect thanks

@prakash-indorkar
Copy link

Thanks for the quick resolution. It's definitely a great package to use in the flutter apps.

awhitford added a commit that referenced this issue Dec 2, 2020
* Added a null-safe spread operator for field.value to guard against a null value. Resolves #607.
@israellias
Copy link

Thanks for the quick resolution. It's definitely a great package to use in the flutter apps.

It's a basic bug. It appears that unit tests are not here. How can we help?

@awhitford
Copy link
Collaborator

It's a basic bug. It appears that unit tests are not here. How can we help?

Correct. Test coverage is only 40%. PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants