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

A OverlayEntry was used after being disposed. #218

Closed
jangruenwaldt opened this issue Nov 19, 2021 · 22 comments
Closed

A OverlayEntry was used after being disposed. #218

jangruenwaldt opened this issue Nov 19, 2021 · 22 comments
Labels
Need more info Your information is insufficient and requires more info/info to solve the issue.

Comments

@jangruenwaldt
Copy link

jangruenwaldt commented Nov 19, 2021

Hey guys, I get this stack trace when using the plugin. Ever seen this before?

stack trace
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while finalizing the widget tree:
flutter: A OverlayEntry was used after being disposed.
flutter: Once you have called dispose() on a OverlayEntry, it can no longer be used.
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:114:9)
flutter: #1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:120:6)
flutter: #2      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:288:12)
flutter: #3      OverlayEntry._updateMounted (package:flutter/src/widgets/overlay.dart:130:5)
flutter: #4      _OverlayEntryWidgetState.dispose (package:flutter/src/widgets/overlay.dart:200:18)
flutter: #5      StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4895:11)
flutter: #6      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1883:13)
flutter: #7      _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #8      MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6297:16)
flutter: #9      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #10     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #11     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #12     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #13     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #14     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #15     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #16     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #17     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #18     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #19     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #20     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #21     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #22     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #23     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #24     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #25     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #26     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #27     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #28     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #29     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #30     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #31     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #32     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #33     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #34     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #35     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #36     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #37     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #38     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #39     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #40     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #41     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #42     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #43     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #44     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #45     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #46     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #47     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #48     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #49     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #50     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #51     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #52     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #53     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #54     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #55     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #56     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #57     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #58     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #59     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #60     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #61     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #62     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #63     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #64     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #65     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #66     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #67     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #68     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #69     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #70     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #71     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #72     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #73     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #74     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #75     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #76     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #77     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #78     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #79     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #80     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #81     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #82     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #83     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #84     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #85     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #86     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #87     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #88     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #89     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #90     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #91     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #92     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #93     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #94     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #95     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #96     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #97     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #98     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #99     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #100    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #101    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #102    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #103    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #104    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #105    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #106    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #107    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #108    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #109    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #110    SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #111    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #112    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #113    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #114    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #115    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #116    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #117    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #118    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #119    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #120    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #121    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #122    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #123    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #124    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #125    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: 15:08 +72 -14: Task interaction tests:  can add reminder [E]
flutter:   Test failed. See exception logs above.
  The test description was: can add reminder
flutter:
flutter: Consider enabling the flag chain-stack-traces to receive more detailed exceptions.
For example, 'dart test --chain-stack-traces'.
flutter: 15:08 +72 -15: Task interaction tests:  can bulk select tasks and delete
flutter: 15:10 +72 -15: Task interaction tests:  can add reminder
flutter: #126    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #127    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #128    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #129    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #130    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #131    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #132    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #133    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #134    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #135    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #136    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #137    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #138    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #139    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #140    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #141    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #142    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #143    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #144    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #145    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #146    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #147    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #148    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #149    SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #150    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #151    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #152    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #153    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #154    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #155    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #156    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #157    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #158    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #159    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #160    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #161    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #162    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #163    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #164    SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #165    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #166    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #167    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #168    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #169    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #170    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #171    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #172    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #173    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #174    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #175    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #176    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #177    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #178    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #179    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #180    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #181    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #182    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #183    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #184    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #185    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #186    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #187    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #188    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #189    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #190    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #191    SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6182:14)
flutter: #192    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #193    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #194    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #195    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #196    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #197    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #198    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #199    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #200    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #201    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #202    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #203    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #204    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #205    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #206    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #207    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #208    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #209    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #210    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #211    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #212    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #213    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #214    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #215    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #216    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #217    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #218    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #219    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #220    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #221    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #222    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #223    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #224    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #225    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #226    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #227    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #228    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #229    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #230    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #231    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #232    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #233    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #234    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #235    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #236    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #237    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #238    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #239    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #240    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #241    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #242    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #243    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #244    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #245    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #246    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #247    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #248    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #249    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #250    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #251    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #252    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #253    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #254    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #255    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #256    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #257    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #258    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #259    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #260    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #261    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #262    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #263    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #264    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #265    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #266    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #267    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #268    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #269    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #270    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #271    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #272    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #273    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #274    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #275    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #276    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #277    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #278    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #279    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #280    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #281    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #282    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #283    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #284    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #285    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #286    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #287    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #288    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #289    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #290    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #291    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #292    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #293    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #294    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #295    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #296    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #297    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #298    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #299    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #300    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #301    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #302    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #303    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #304    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #305    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #306    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #307    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #308    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #309    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #310    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #311    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #312    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #313    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #314    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #315    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #316    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #317    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #318    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #319    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #320    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #321    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #322    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #323    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #324    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #325    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #326    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #327    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #328    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #329    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #330    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #331    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #332    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #333    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #334    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #335    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #336    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #337    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #338    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #339    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #340    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #341    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #342    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #343    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #344    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #345    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #346    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #347    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #348    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #349    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #350    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #351    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #352    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #353    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #354    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #355    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #356    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #357    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #358    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #359    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #360    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #361    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #362    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #363    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #364    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #365    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #366    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #367    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #368    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #369    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #370    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #371    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #372    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #373    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #374    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #375    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #376    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #377    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #378    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #379    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #380    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #381    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #382    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #383    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #384    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #385    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #386    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #387    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #388    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #389    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #390    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #391    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #392    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #393    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #394    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #395    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #396    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #397    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #398    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #399    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #400    _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1881:7)
flutter: #401    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4719:14)
flutter: #402    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1879:13)
flutter: #403    ListIterable.forEach (dart:_internal/iterable.dart:39:13)
flutter: #404    _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1892:25)
flutter: #405    BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2879:27)
flutter: #406    BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2510:15)
flutter: #407    BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2878:7)
flutter: #408    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
flutter: #409    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
flutter: #410    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
flutter: #411    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
flutter: #412    LiveTestWidgetsFlutterBinding.handleDrawFrame (package:flutter_test/src/binding.dart:1503:13)
flutter: #413    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:863:7)
flutter: (elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

My code:
SpeedDial(
        heroTag: null,
        child: const Icon(Icons.add),
        children: [
          SpeedDialChild(
            child: const Icon(Icons.add),
            label: 'ABC'
            onTap: () {},
          ),
          SpeedDialChild(
            child: const Icon(Icons.delete),
            label: 'XYZ'
            onTap: () {},
          ),
        ],
      );
@prateekmedia

This comment was marked as outdated.

@jangruenwaldt

This comment was marked as outdated.

@SakshiSamdaniSomani

This comment was marked as outdated.

@prateekmedia prateekmedia reopened this Dec 27, 2021
@luca-colazzo
Copy link
Collaborator

please post a complete sample class that works and throws that error so we can investigate

@luca-colazzo luca-colazzo added the Need more info Your information is insufficient and requires more info/info to solve the issue. label Dec 27, 2021
@SakshiSamdaniSomani
Copy link

SakshiSamdaniSomani commented Dec 27, 2021

Logs
The following assertion was thrown while finalizing the widget tree:
A OverlayEntry was used after being disposed.

Once you have called dispose() on a OverlayEntry, it can no longer be used.
When the exception was thrown, this was the stack: 
#0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:114:9)
#1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:120:6)
#2      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:288:12)
#3      OverlayEntry._updateMounted (package:flutter/src/widgets/overlay.dart:130:5)
#4      _OverlayEntryWidgetState.dispose (package:flutter/src/widgets/overlay.dart:200:18)
#5      StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4818:11)
#6      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1883:13)
#7      ListIterable.forEach (dart:_internal/iterable.dart:39:13)
#8      _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1892:25)
#9      BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2837:27)
#10     BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2468:15)
#11     BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2836:7)
#12     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#13     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#14     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1145:15)
#15     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
#16     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#20     _invoke (dart:ui/hooks.dart:150:10)
#21     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#22     _drawFrame (dart:ui/hooks.dart:114:31)
(elided 3 frames from dart:async)

@prateekmedia
Copy link
Collaborator

@SakshiSamdaniSomani Can you post a sample code to reproduce the error.

@SakshiSamdaniSomani
Copy link

SakshiSamdaniSomani commented Dec 27, 2021

Code
SpeedDial(
        child: SvgPicture.asset(
          ImageConstants().threedotwhite,
          width: 20,
          height: 20,
        ),
        activeChild: Icon(Icons.close),
        direction:
            isfabonleft ? SpeedDialDirection.right : SpeedDialDirection.left,
        backgroundColor: Color.fromRGBO(65, 132, 243, 1),
        overlayColor: Colors.grey,
        overlayOpacity: 0.0,
        spacing: 0,
        spaceBetweenChildren: 0,
        closeManually: false,
        foregroundColor: Colors.white,
        children: [
          SpeedDialChild(
              child: ImageIcon(
                AssetImage("assets/images/bell.png"),
                size: 20,
              ),
              backgroundColor: Theme.of(context).backgroundColor,
              onTap: () {
                print('Alerts Tapped');
              }),
          SpeedDialChild(
              child: ImageIcon(
                AssetImage("assets/images/openPos.png"),
                size: 20,
              ),
              backgroundColor: Theme.of(context).backgroundColor,
              onTap: () {
                print('Positions Tapped');
              }),
          SpeedDialChild(
              child: ImageIcon(
                AssetImage("assets/images/school.png"),
                size: 20,
              ),
              backgroundColor: Theme.of(context).backgroundColor,
              onTap: () {
                print('Orders Tapped');
              }),
          SpeedDialChild(
              child: SvgPicture.asset(
                "assets/svg/back.svg",
                width: 20,
                height: 20,
                color: Colors.white,
              ),
              backgroundColor: Theme.of(context).backgroundColor,
              onTap: () {
                print('Back Tapped');
              }),
        ],
      ),

@SakshiSamdaniSomani
Copy link

rotate the screen and then when we do any action using the buttons we get this error.

@prateekmedia prateekmedia removed the Need more info Your information is insufficient and requires more info/info to solve the issue. label Dec 27, 2021
@jangruenwaldt

This comment was marked as outdated.

@bartekpacia

This comment was marked as outdated.

@seenewmax

This comment was marked as outdated.

@94Sip

This comment was marked as outdated.

@prateekmedia prateekmedia pinned this issue Feb 11, 2022
@luca-colazzo

This comment was marked as outdated.

@luca-colazzo luca-colazzo unpinned this issue Apr 2, 2022
@bartekpacia

This comment was marked as outdated.

@ArtemNVK
Copy link

ArtemNVK commented Apr 22, 2022

Same issue when testing it with goldens
During the test, I open a screen with the FAB, tap on it and pump it. Then test fails and I'm getting this error

@luca-colazzo
Copy link
Collaborator

Try now (version 6.0.0)

@luca-colazzo luca-colazzo added the Need more info Your information is insufficient and requires more info/info to solve the issue. label May 4, 2022
@hashem78
Copy link

hashem78 commented May 7, 2022

I am facing this issue on 6.0.0

Stack trace
Exception caught by widgets library 

The following assertion was thrown while finalizing the widget tree:
A OverlayEntry was used after being disposed.

Once you have called dispose() on a OverlayEntry, it can no longer be used.
When the exception was thrown, this was the stack
#0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure>
package:flutter/…/foundation/change_notifier.dart:114
#1      ChangeNotifier._debugAssertNotDisposed
package:flutter/…/foundation/change_notifier.dart:120
#2      ChangeNotifier.notifyListeners
package:flutter/…/foundation/change_notifier.dart:288
#3      OverlayEntry._updateMounted
package:flutter/…/widgets/overlay.dart:130
#4      _OverlayEntryWidgetState.dispose
package:flutter/…/widgets/overlay.dart:200
#5      StatefulElement.unmount
package:flutter/…/widgets/framework.dart:4983
#6      _InactiveElements._unmount
package:flutter/…/widgets/framework.dart:1926
#7      ListIterable.forEach (dart:_internal/iterable.dart:39:13)
#8      _InactiveElements._unmountAll
package:flutter/…/widgets/framework.dart:1935
#9      BuildOwner.lockState
package:flutter/…/widgets/framework.dart:2519
#10     BuildOwner.finalizeTree
package:flutter/…/widgets/framework.dart:2932
#11     WidgetsBinding.drawFrame
package:flutter/…/widgets/binding.dart:884
#12     RendererBinding._handlePersistentFrameCallback
package:flutter/…/rendering/binding.dart:363
#13     SchedulerBinding._invokeFrameCallback
package:flutter/…/scheduler/binding.dart:1144
#14     SchedulerBinding.handleDrawFrame
package:flutter/…/scheduler/binding.dart:1081
#15     SchedulerBinding._handleDrawFrame
package:flutter/…/scheduler/binding.dart:995
#19     _invoke (dart:ui/hooks.dart:151:10)
#20     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#21     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)

@luca-colazzo luca-colazzo removed the Need more info Your information is insufficient and requires more info/info to solve the issue. label May 10, 2022
@ketanv-nt
Copy link

Yes, I'm also facing this issue on 6.0.0. Any update on this?

@ketanv-nt
Copy link

Fixed:
Works for me - https://stackoverflow.com/a/59810905/6578482

@luca-colazzo
Copy link
Collaborator

Will have a look when home

@luca-colazzo
Copy link
Collaborator

I cannot reproduce this in any suggested way. Post a small code example or, if you already found the solution, feel free to open a PR

@luca-colazzo luca-colazzo added the Need more info Your information is insufficient and requires more info/info to solve the issue. label Jun 25, 2022
@luca-colazzo
Copy link
Collaborator

Closing as inactive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need more info Your information is insufficient and requires more info/info to solve the issue.
Projects
None yet
Development

No branches or pull requests

10 participants