just_the_tooltip icon indicating copy to clipboard operation
just_the_tooltip copied to clipboard

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

Open Soliardi-Chyngyz opened this issue 2 years ago • 5 comments

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

Soliardi-Chyngyz avatar Feb 22 '23 11:02 Soliardi-Chyngyz

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

dhave-dev13 avatar Jan 03 '24 13:01 dhave-dev13

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

alirezat66 avatar Jan 12 '24 15:01 alirezat66

My solution for this is putting it in async function

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

SaturnoMark avatar Feb 07 '24 05:02 SaturnoMark

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

guchengxi1994 avatar Feb 27 '24 07:02 guchengxi1994

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

alirezat66 avatar Feb 27 '24 10:02 alirezat66