How to remove or hide back icon from AppBar


I need to hide or remove back button or back icon from AppBar is that possible?
If it is possible then how?
I set leading: null, but it is still there without any changes


Adding the following line to your AppBar should work:

automaticallyImplyLeading: false

Answered By – Akshansh Bhanjana

Answer Checked By – Marilyn (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *