AIM: I wish to make my flutter app also on the web, hence, like most websites, I want it to have an AppBar
that is always there no matter how many screens (routes) I push or where I navigate.
PROBLEM: However, when I do Navigator.push()
, the AppBar
disappears, since a new Scaffold
is created with it’s own AppBar
.
QUESTION: Is there any way to achieve a constant AppBar
in my flutter app?
WHAT I TRIED: I tried using IndexedStack
, which worked for my main screens. However, when I want to navigate from one of my main screens (which are in the indexed stack), this approach fails.