没有在FloatingActionButton

问题描述 投票:0回答:1

在and and上,能够正确设置背景颜色,如下:

AppBar

return Scaffold( appBar: AppBar( backgroundColor: Colors.red,

的动作中,a的颜色设置为相同的值:

AppBar
这是按预期的。但是,如果我在两个地方添加

FloatingActionButton
,则喜欢

actions: [ FloatingActionButton( backgroundColor: Colors.red,

the的背景颜色正确变为粉红色。但是,

withOpacity(0.3)
的颜色不是粉红色的,而是黑色的深粉红色,好像是黑色混合的。
问题是什么,正确的方法是什么? thanks

	
flutter
Colors.red.withOpacity(0.3)
,已被

AppBar

替换。

flutter
1个回答
0
投票

After


v3.27

有关更多详细信息,您可以查看“扑动迁移指南:

移民指南”

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.