flutter_floating icon indicating copy to clipboard operation
flutter_floating copied to clipboard

多次调用open方法会实例化多个组件

Open JoinLi opened this issue 2 years ago • 1 comments

当多次调用open方法,会渲染多个组件,我希望他是单例的

JoinLi avatar May 17 '22 09:05 JoinLi

你好,每次调用 open 都会是新的,如果需要保留之前的状态或者不想实例化多个,可以调用 hideFloating 方法来隐藏,调用 showFloating 来进行显示。如果彻底不用了在调用 close即可。

LvKang-insist avatar Jun 02 '22 08:06 LvKang-insist