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

Error when using inside a ListView #51

Open
victorvuelma opened this issue Feb 16, 2022 · 0 comments
Open

Error when using inside a ListView #51

victorvuelma opened this issue Feb 16, 2022 · 0 comments

Comments

@victorvuelma
Copy link

victorvuelma commented Feb 16, 2022

I noticed a problem in the use of this library when used with the area mode and the tooltip inside a ListView or a GridView on Flutter 2.10.1.

When the widget that contains the tooltip is activated and move to outside of ListView, its cause this error

FlutterError (setState() or markNeedsBuild() called during build.
This ValueListenableBuilder<Widget?> widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase.

Possible to reproduce on example:
https://github.com/Nolence/just_the_tooltip/blob/main/example/lib/pages/tooltip_area_page.dart

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

No branches or pull requests

1 participant