Flutter Material3 disable appbar color change on scroll

Viewed 864
2 Answers

I had same problem.

In my case i had an AppBar with transparent background and a Scaffold with extendBodyBehindAppBar set to true.

I tried with shadowColor and surfaceTintColor with Colors.transparent value, but the shadow was still visible.

Then I noticed the scrolledUnderElevation property of AppBar. Setting it to 0.0 was the solution.

I think you can just set the surfaceTintColor property of AppBar:

surfaceTintColor: Colors.transparent

I was facing this same issue and solved it right after looking at your question.

Related