datdescartes/expansion_widget

One Expanded card at time

Closed this issue · 3 comments

Hello, first of all its a really great library , i love it. And i faced a common problem with expanding one tile at time. I tried alot of different solutions but nothing works for me, only if i put key: GlobalKey(), thats work but animation stops working. Thanks in advance

@everancii Could you give me some simple code? So, I can figure out the problem.

@everancii I have just released v0.0.2 that exposes the state. Now, you can use globalKey.currentState?.expand (or collapse/toggle) to expand the widget.

Hope this can help you solve the problem!

_key3.currentState?.toggle(animated: true);

That's great. Its work fabulously. Thanks alot :)