How to remove the back button from the Appbar — Flutter small explanations | part 1

Tomic Riedel
2 min readJul 25, 2021

“Flutter Small Explanations” is a series of indefinite length, where in each blogpost some small thing will be explained to you and how to solve it.

In the first part of this series we will deal with how to remove the back button from the app bar. But first we have to deal with the question how this button is created in the first place.

How is the back button created?

Well, this button is created when you open a new page. This will automatically generate the back button, which you can use to go back one page, as the name says. That’s it and now we can deal with the question how to get rid of it.

How do I get rid of the backbutton programmatically?

The solution to this is easier than we thought. There is a property called “automaticallyImplyLeading”. With this one you specify a bool that can be false or true, logically. In our example, we now set this to false, since we don’t want the button.

This now looks like this:

So, and that was it, now it should look exactly like this:

Conclusion

So, that was it. If you liked it, then I would be very happy about a few claps 😊

PS: Sorry for the Rickroll, it just had to be 😂😅

--

--

Tomic Riedel

Sharing the process of building a portfolio of apps to make people more productive.