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

innerDrawerCallback startup time #57

Open noobloser opened 3 years ago

noobloser commented 3 years ago

If I analyzed that correct, the callback waits for the animation to finish. Giving the Use Case that a Trigger Button's Color should change onToggle, this creates an ugly visible delay :/ I could imaging 3 ways to fix this issue:

  1. an additional callback, which fires on before the animation finishes
  2. move the innerDrawerCallback before the animation (might create issues for other existing use cases I am not aware of)
  3. open the value of InnerDrawerState, so one can listen to the actual value change and react

(sry, if I am to overreaching)