I'm trying to make a screen layout with a transparent AppBar that has to scroll content under it.
The problem is that when content is scrolled, the AppBar shows a shadow, shadowColor, but it is set to transparent color.
EDIT: I noticed that the cause of this is having useMaterial3 set to true in my App Theme.
I'm using Flutter 3.0.2.
This is my code:
Stack(
fit: StackFit.expand,
children: [
//AuthBackground(),
Container(color: Colors.brown,),
Theme(
data: AppStyles.mainDarkTheme.copyWith(
textTheme: AppStyles.mainDarkTheme.textTheme.apply(
bodyColor: Colors.blue,
displayColor: Colors.blue,
)
),
child: Scaffold(
backgroundColor: Colors.transparent,
extendBodyBehindAppBar: true,
appBar: AppBar(
backgroundColor: Colors.transparent,
shadowColor: Colors.transparent,
elevation: 0.0,
bottomOpacity: 0.0,
),
body: _content(),
),
),
],
)
Here you have a pic where you can notice the shadow on AppBar when content is scrolled:
Thanks in advance!