GotJimmy / accordion

Other
46 stars 43 forks source link

setState closes accordion #21

Closed cremfert closed 2 years ago

cremfert commented 2 years ago

I'm using the library on a Flutter desktop project and everything is working fine, except one thing: if an accordion section is open and somewhere else in the widget a setState is called, the accordion closes. How can I prevent this?

Thanks a lot!

GotJimmy commented 2 years ago

Shouldn't be but hard to say without an example. Is the section isOpen parameter controlled by setState in your app? Do you have a minimalistic example you could send me?