Kaushik Bhingradiya
Kaushik Bhingradiya

Reputation: 907

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

Upvotes: 10

Views: 2388

Answers (1)

Chirag Kothiya
Chirag Kothiya

Reputation: 1099

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

Upvotes: 5

Related Questions