One Expanded card at time
Closed this issue · 3 comments
everancii commented
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
datdescartes commented
@everancii Could you give me some simple code? So, I can figure out the problem.
datdescartes commented
@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!
expansion_widget/example/lib/main.dart
Line 162 in 3609bfb
everancii commented
That's great. Its work fabulously. Thanks alot :)