Removing the drop shadow from a Scaffold AppBar in Flutter?

 To remove appbar drop down shadow set a AppBar constructor elevation: 0.0

The arguments primary, toolbarOpacity, bottomOpacity and automaticallyImplyLeading must not be null. Additionally, if elevation is specified, it must be non-negative.

If backgroundColor, elevation, shadowColor, brightness, iconTheme, actionsIconTheme, textTheme or centerTitle are null, then their AppBarTheme values will be used. If the corresponding AppBarTheme property is null, then the default specified in the property's documentation will be used.

appBar: AppBar(
   title: Text('App Title'),
   elevation: 0.0,
   bottomOpacity: 0.0,
),

enter image description here

To more : AppBar constructor

Post a Comment

Previous Post Next Post

Subscribe Us


Get tutorials, Flutter news and other exclusive content delivered to your inbox. Join 1000+ growth-oriented Flutter developers subscribed to the newsletter

100% value, 0% spam. Unsubscribe anytime