when changing the bottom navigation bar color in flutter using these lines of code inside main method:
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
systemNavigationBarColor: Colors.white,
statusBarColor: Colors.transparent,
));
it works fine but the bottom navBar color revert to black after some times when using SilverAppBar inside main page :
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
expandedHeight: 300,
floating: false,
pinned: true,
snap: false,
backgroundColor: Colors.white,
flexibleSpace: FlexibleSpaceBar(),
),
SliverList(
delegate: SliverChildListDelegate(<Widget>[
]),
)
],
),
when changing the value of expandedHeight: 250
the color of bottom navBar won't change,
so the problem is inside expandedHeight
value , so why and how to fix that .