I need to change implement custom Icons for default button and drawer button for all pages in my project.
I know we have the option of using leading
property, however, this only affects that certain page.
How can we change the default back button and open drawer button of AppBar
in Flutter for the whole app?
Unfortunately, there is not a property called defaultBackButton or defaultDrawerButton.
So, in order to change these defaults in the whole app, we can create a CustomAppBar which and set Icons as we wish.
Please click here to see Demo on DartPad and test it yourself.
For a bit longer description, checkout my Medium story.