Making a demo media player using flutter

Janhavi Jain
2 min readAug 4, 2020

--

The flutter framework can be used to easily integrate audio and videos from local devices as well as the internet. I used flutter through the IDE VScode, here I have used the video_player, audioplayers and assets_audio_player packages. I have installed them by adding them under the dependencies as shown below.

I started the coding by defining the main function, followed by the stateless widget. After defining the basic code by referencing the flutter site, I worked on improving the User Interface by setting appealing colours to the background and widgets.

Since the ratios weren’t very appealing in the first try, I tried out different ratios and finally it resulted in a beautiful media player with buttons to play, pause and stop the video and audio.

The final app looked like this.

--

--

Janhavi Jain
Janhavi Jain

Written by Janhavi Jain

Hi there! I write about many technologies like Docker and Hadoop in an easy to understand language. My LinkedIn: https://www.linkedin.com/in/janhavi-jain

No responses yet