I have an appbar which is used in more than one screen. I have a navigation drawer in the home screen. As the appbar is used in multiple places, i created as a separate widget. But I am not able to access navigation drawer. So I included appbar code in all the screens I needed. Then it works fine. But it will be code duplicate. Is there any fix for this in Flutter?
Thanks.