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 issue #46: the width is not properly calculated when the widget is drawn a second time #58

Closed rodrigomb81 closed 1 year ago

rodrigomb81 commented 1 year ago

This PR fixes the issue by separating notifying the parent when the mode changes from returning the correct width. Also, it introduces a regression test to prevent this bug from appearing again.

From what I've seen, this bug might be present on the other display modes too so further investigation might be required.