且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Flutter中禁用FlatButton的启动突出显示?

更新时间:2022-02-23 06:07:00

我希望有一个不可见的突出显示颜色可以做什么您想要:

I'd expect an invisible highlight color to do what you want:

new FlatButton({
  ...
  splashColor: Colors.transparent,  
  highlightColor: Colors.transparent, // makes highlight invisible too
})