如何在颤动的移动应用程序中播放按钮声音?

时间:2018-09-25 04:56:10

标签: flutter flutter-layout flutter-dependencies flutter-animation flutter-test

我想在按下按钮动作或称为的通知动作时发出自定义声音,以下是简单的凸起按钮代码

 new RaisedButton(
      onPressed: () => print('pressed!'), // play custom sound here
      child: new Text('Play'),
      color: Colors.indigoAccent,
    );
  }

0 个答案:

没有答案