Flutter IconButton 溅射半径主题

4
如何更改应用程序主题中所有图标按钮的闪烁半径,而不是像这样单独更改。
IconButton(
onPressed: (){},
icon: Icon(Icons.keyboard_arrow_down_rounded),
splashRadius: 20,
),
1个回答

3
根据文档:
如果为null,则使用Material.defaultSplashRadius的默认溅射半径。
您无法从主题中获取它:它要么是个体设置,要么是Material常量。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接