stargazing-dino / just_the_tooltip

A directional tooltip for flutter projects
https://pub.dev/packages/just_the_tooltip
MIT License
56 stars 55 forks source link

Bad state: This controller has not been attached to a tooltip yet. #70

Open Soliardi-Chyngyz opened 1 year ago

Soliardi-Chyngyz commented 1 year ago

Hello guys. Running the rules works, but time passes and bam

dhave-dev13 commented 8 months ago

My solution to this is to separate the tooltip and put it inside a stateful widget. And just call that ToolTipWidget to where you want it to be used

alirezat66 commented 8 months ago

actually it is not true way, you should add a bool method to show if it is attached or not.

SaturnoMark commented 7 months ago

My solution for this is putting it in async function

onPressed: () async => tooltipController.showTooltip();

guchengxi1994 commented 6 months ago

My solution to this is to separate the tooltip and put it inside a stateful widget. And just call that ToolTipWidget to where you want it to be used

this solution works

alirezat66 commented 6 months ago

@SaturnoMark let assume that you want to show it after going to a page. for example you want to open it using routing