Home > Mobile >  Flutter: 2 differents appbars in same page
Flutter: 2 differents appbars in same page

Time:04-06

Is it possible to have two different appbars in the same page in flutter? I need one for the header, but after some scroll, another comes with the rest of the body and takes the place of the initial one.

CodePudding user response:

You might want to try the package enter image description here

CodePudding user response:

Yes, when you create a child you can create new scaffold which can add a new AppBar

ex..

Return Scaffold(
appBar: AppBar(),
body: Center(
child: Scaffold(
appBar: AppBar()
)
)
)

then if you want anything else built you can add it to the body ofthe second scaffold.

  • Related