Flutter ios 使用ListView 。滚动时 AppBar 改变颜色问题 - MaterialApp(
在Ios 中 列表滚动条向下滚动一段距离后 会导致 AppBar 颜色改变
可以给 AppBar 或者 AppBarTheme。 scrolledUnderElevation: 0.0 属性
全局:
MaterialApp(
theme: ThemeData(
appBarTheme: AppBarTheme(scrolledUnderElevation: 0.0)
)
)
局部: 拼多多帮助力入口
AppBar(
scrolledUnderElevation: 0.0
)
效果:
滚动前滚动后
x
ke z
参考文章,Flutter