Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Audio Trimming widget in flutter

I am new in flutter. I want to trim a audio. So i got the audiocutter package to implement trimming But problem is that "How to get input from the user in better UI?". I was search about that but not get any proper solution. So, how to make widget like below to get input from user.

enter image description here

Please help me to make this widget or if you have any idea to make above widget in flutter than tell me. Thanks in advance!!

like image 613
Kaushik Bhingradiya Avatar asked Nov 06 '22 07:11

Kaushik Bhingradiya


1 Answers

I created a widget like this.

enter image description here

If you want to create widget like above.
Then you can add wave_slider file and use following code.

WaveSlider(
  backgroundColor: Colors.grey.shade300,
  heightWaveSlider: 100,
  widthWaveSlider: 300,
  duration: 12.0,
  callbackStart: (duration) {
    print("Start $duration");
  },
  callbackEnd: (duration) {
    print("End $duration");
  },
)
like image 53
Chirag Kothiya Avatar answered Nov 15 '22 06:11

Chirag Kothiya