Skip to content

LateInitializationError: Field '_updatePosition' has not been initialized.#3

Open
b4nghh wants to merge 1 commit into
Baseflow:mainfrom
b4nghh:main
Open

LateInitializationError: Field '_updatePosition' has not been initialized.#3
b4nghh wants to merge 1 commit into
Baseflow:mainfrom
b4nghh:main

Conversation

@b4nghh
Copy link
Copy Markdown

@b4nghh b4nghh commented Oct 7, 2022

This PR is for fixing the issue bellow. It happens many times on my app.

════════ Exception caught by gesture ═══════════════════════════════════════════
The following LateError was thrown while handling a gesture:
LateInitializationError: Field '_updatePosition@39331832' has not been initialized.

When the exception was thrown, this was the stack
#0      _SwipeDetectorState._updatePosition (package:flutter_swipe_detector/src/swipe_detector.dart)
#1      _SwipeDetectorState._calculateAndExecute
#2      _SwipeDetectorState.build.<anonymous closure>
#3      DragGestureRecognizer._checkEnd.<anonymous closure>
#4      GestureRecognizer.invokeCallback
#5      DragGestureRecognizer._checkEnd
#6      DragGestureRecognizer.didStopTrackingLastPointer
#7      OneSequenceGestureRecognizer.stopTrackingPointer
#8      DragGestureRecognizer._giveUpPointer
#9      DragGestureRecognizer.handleEvent
#10     PointerRouter._dispatch
#11     PointerRouter._dispatchEventToRoutes.<anonymous closure>
#12     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:614:13)
#13     PointerRouter._dispatchEventToRoutes
#14     PointerRouter.route
#15     GestureBinding.handleEvent
#16     GestureBinding.dispatchEvent
#17     RendererBinding.dispatchEvent
#18     GestureBinding._handlePointerEventImmediately
#19     GestureBinding.handlePointerEvent
#20     GestureBinding._flushPointerEventQueue
#21     GestureBinding._handlePointerDataPacket
#22     _invoke1 (dart:ui/hooks.dart:164:13)
#23     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:361:7)
#24     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:31)
Handler: "onEnd"
Recognizer: PanGestureRecognizer#af55a
    debugOwner: GestureDetector
    start behavior: start
════════════════════════════════════════════════════════════════════════════════

@korzonkiee
Copy link
Copy Markdown

I am getting the same issue, @jopmiddelkamp any chance of getting this merged?

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 this pull request may close these issues.

2 participants