Jamalianpour / easy_sidemenu

An easy to use side menu (navigation rail) in flutter and can used for navigations
https://pub.dev/packages/easy_sidemenu
MIT License
145 stars 70 forks source link

fix: fix width not being returned on 2nd load #61

Closed Coder-Manuel closed 1 year ago

Coder-Manuel commented 1 year ago

The code in the if statements when in auto mode aren't being fired the 2nd time. This is because the displayModeState is set to open (atleast with my use case), hence the _widthSize() returns 0;

I've refined the statements and placed the return statement outside the 2nd condition check.

Related to #46