I have design one screen which is appear when intent from navigation drawer as well as from other screen.
Now i want to hide app bar when intent from navigation draw
You can make use of preferredSize widget like this:
true ? Appbar() : PreferredSize(preferredSize: Size(0.0, 0.0),child: Container(),) This will hide the appbar if the condition is false.
true ? Appbar() : PreferredSize(preferredSize: Size(0.0, 0.0),child: Container(),)
You can try this way
appBar: boolTrue ? AppBar(...) : null