我已经使用 Flutter 几天了,我实现了 get API,但我担心的是当我向下滚动 AppBar 颜色更改为另一种颜色时。
在我的应用栏中,我只有标题和操作。
我希望 AppBar 不改变它的颜色。 预先感谢您的指导。
您可以在此 appBar 属性中添加您的 appBar 颜色。
AppBar(
// add your appBar color.
surfaceTintColor: Colors.white,
backgroundColor: Colors.white,
foregroundColor: foregroundColor,
shadowColor: shadowColor,
),