I am working on an app where I need to have differnt appbar for every Screen based on BottomNavigation Buttons. But in my case I have only the main Appbar or in some screens I am having double appbars. I tried Appbar==false technique using preferrerd size to make it's size 0 but it did'nt work for me. is there any helpful tachnique to resolve this issue?
Enter code here
appBar: widget.appbar == false
? AppBar(
title: Text(
"Favrite",
style: TextStyle(color: Colors.white),
),
)
: PreferredSize(preferredSize: Size.fromHeight(0), child: AppBar()),
Thanking in advance.