我目前正在使用以下代码在Flutter中创建IconButton()
:
IconButton(
hoverColor: Colors.transparent,
color: _tweenButton.value,
icon: Icon(Icons.send),
onPressed: () => _isComposing ? _handleSubmitted(_textController.text) : null,
)
无论何时我点击图标按钮时,都会出现水波/点击效果,就像这张截图所示。这个小部件在
MaterialApp()
和Scaffold()
中运行。我该如何关闭这个视觉效果呢?