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

Null safety & mounted fix #405

Closed
wants to merge 2 commits into from
Closed

Null safety & mounted fix #405

wants to merge 2 commits into from

Conversation

krll-kov
Copy link

Fixed "This widget has been unmounted, so the State no longer has a context" error. Might happen when user switches screens very fast

kirill-21 added 2 commits December 19, 2023 15:46
…ckage:flutter/src/widgets/framework.dart:957)#1      _ShowcaseState.showCaseWidgetState (package:showcaseview/src/showcase.dart:363)#2      _ShowcaseState.buildOverlayOnTarget.<anonymous closure> (package:showcaseview/src/showcase.dart:498)#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275)#4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:654)#5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:311)#6      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:244)#7      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:630)#8      PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)#9      PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)#10     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:625)#11     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)#12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)#13     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:488)#14     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:468)#15     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:333)#16     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:413)#17     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:376)#18     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:323)#19     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:292)#20     _invoke1 (dart:ui/hooks.dart:186)#21     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:424)#22     _dispatchPointerDataPacket (dart:ui/hooks.dart:119)

" error
@aditya-css
Copy link
Collaborator

Closing this PR as the issue is not being reproduced. Thanks for the contribution.

@aditya-css aditya-css closed this Mar 7, 2024
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