How to make Audio Trimming widget in flutter

Viewed 1137

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!!

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");
  },
)
Related