-
Notifications
You must be signed in to change notification settings - Fork 447
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
EXCEPTION: FlutterError (Cannot get renderObject of inactive element. #455
Comments
I have found this line in layout_overlays.dart be the one causing the problem, since context is detacched when it attempts findRenderObject.
|
I know that somehow the problem is because of rootRenderObject being added here. I don't know why but for me everything works in showcaseview 2.0.3. and this rootRenderObject is something new. I think this is the cause |
Hi @mehrdad1990. The rootRenderObject seems to be there since always. It fails in 2.0.3, I tested it. |
@pamafe1976 |
@mehrdad1990 Conditionally removing the ShowCaseWidget is not the best solution, since the user can send the app to back before the showcase has ended, and that would anyway trigger the error. I have created an issue in Flutter just to check if the IOS build calls are normal. But for sure Showcase and ShowCaseWidget should be able to build in that situation, as every other widget does. Regards |
Does this PR fix the issue? this is a try-catch wrap. check if it fixes the problem but I don't think this is the best. |
Hi @mehrdad1990 , Regards
|
Thank you for reporting this issue. We've tested the provided code with the latest version of the showcaseview package, and the issue no longer appears. We’re closing this issue for now. Please try updating to the latest version and let us know if the problem persists. Feel free to reopen the issue if it still occurs. We will continue exploring ways to improve the handling of the RenderBox in future updates to ensure greater robustness. |
This is still happening to me on the latest 3.0.0 version @Sahil-Simform. It happens on Android only, iOS is not having this issue (contrary to what the OP posted) |
Hi,
I've been working a couple days trying to isolate this problem, and I simplified it to a point where I know it appears with a combination of Showcaseview, Getx and ResponsiveSizer.
I hope someone can point me in the right direction to solve it.
I have made a small app to reproduce the problem I was having.
STEPS TO REPRODUCE
Start the test app.
Close the first tooltip.
Press button "ONE" to go to the seconds page
Press button "TWO" to return to the first page.
Minimize the app.
You will get an exception in framework.dart
FACTS:
Thanks!
CODE TO REPRODUCE
PUBSPEC.YAML
FLUTTER DOCTOR -V:
The text was updated successfully, but these errors were encountered: