Dn-a / flutter_inner_drawer

Inner Drawer is an easy way to create an internal side section (left/right) where you can insert a list-menu or other.
https://pub.dartlang.org/packages/flutter_inner_drawer
MIT License
514 stars 129 forks source link

Toogle drawer via _innerDrawerKey.currentState.toggle() #41

Closed uvlek closed 4 years ago

uvlek commented 4 years ago

I think its not a bug. But can you help me how deal with it?

When I use _innerDrawerKey.currentState.toggle() - it open/close previously right or lelt panel. But I need toggle specific side - left (When user click menu button - it must open left panel)

Thhanks!

Dn-a commented 4 years ago

hi @uvlek, can do it very simply like this:

_innerDrawerKey.currentState.open(
direction: InnerDrawerDirection.start // left
// OR
direction: InnerDrawerDirection.end // right
)
uvlek commented 4 years ago

Thank you @Dn-a !