I want to make my NavigationBar transparent. I have tried extendBody: true
on Scafold
with surfaceTintColor=Colors.transparent
to the NavigationBar
widget, but nothing changed.
I want to make my NavigationBar transparent. I have tried extendBody: true
on Scafold
with surfaceTintColor=Colors.transparent
to the NavigationBar
widget, but nothing changed.
2
Answers
According to the document, SurfaceTintColor is the color of the surface tint overlay applied to the app bar’s background color to indicate elevation.
If you want to make the AppBar transparent, just use the property backgroundColor instead.
It is also applied to NavigationBar
You can use SystemChrome.setSystemUIOverlayStyle and ColoredBox to make NavigationBar become transparent.
It work on Android and Web.