Flutter Audio Player Tutorial Step By Step | Flutter Music Player | Flutter audioplayer
In this tutorial, you learn how to create a flutter music or audio player app, where you will be able to play the audios from the internet or the url with flutter ui design. This would work as a music player as well as Flutter tutorial for beginners. This is one of the flutter projects for beginners.
Download the graphics resources from here
https://www.dbestech.com/tutorials/flutter-e-book-reading-app-using-audio-player
Visit my patreon page to get the full source code with assets
https://www.patreon.com/dbestech
Build Flutter App Backend With Rest API Step by Step
https://youtu.be/kTrbcb21ENU
Learn about Dart List and Map
https://youtu.be/Uz0FgKxXt2o
The timestamp code for this tutorial
0:00:00 Introduction
0:00:04 Content introduction
0:01:08 The app overview
0:02:15 Start coding for the app
0:03:46 Learn about Stack and Positioned Widget
0:05:13 Draw the blue background using positioned widget. Explain positioned widget
0:08:15 Draw the icons inside positioned widget which are inside AppBar widget with leading and actions
0:11:05 Change the AppBar color and elevation
0:12:04 Build a round bordered container inside positioned widget
0:15:00 Change the background color of the body inside Scaffold
0:15:33 Wrap texts inside Column widget and style them
0:20:00 Positioned Widget overlapping with each other and dynamically change the container size
0:27:19 Display an image inside a container using DecorationImage and AssetImage
0:30:05 Set background for BoxDecoration content
0:33:00 Start building Audio player in flutter
0:33:08 Install plugin AudioPlayers
0:35:39 Create a file for audio player
0:36:38 Initialize Audio Player
0:41:47 info.plist set up iOS audio player for non https
0:42:40 Initialize audio player handlers onDurationChanged and onAudioPositionChanged
0:43:15 Set url for audio player asset
0:43:53 Introduce control buttons for audio player
0:45:23 Play the flutter music player
0:46:06 Changed start button icon based on press and condition
0:47:00 Create a pause button for the player and use setState function for state management
0:49:41 Done with play and pause buttons using set state
0:50:49 Show the audio time
0:51:50 Split the time using split function in dart and show seconds, minute and hour
0:53:57 Implement slider in the audio player using slider widget and explain min and max value of the slider
0:54:24 Fast forward and slow forward buttons using audioPlayers.setPlaybackRate
0:59:20 Work on the repeat audio button using audioPlayer.setReleaseMode and display on the screen
1:01:56 Change the background color of repeat button using setState() and setReleaseMode.Release
1:05:39 Reset the slider button using onPlayerCompletion of AudioPlayers plugin
1:11:55 Connect home page with audio player page
1:13:40 JSON file and audio from network url or internet
1:14:50 Use GestureDetector to navigate to a different page by pushing, using onTap
1:16:07 Use MaterialPageRoute to pass audio to another class
1:17:00 Go back to the previous page using Navigator.pop() and stop the audio
1:18:03 Load the audio from JSON file and pass around using MaterialPageRoute
1:20:00 Change the text Dynamically
1:22:39 Load audio dynamically
Appreciate our work by donating a coffee on paypal. It's mike@moniredu.info
The contents of this tutorial are
Audio UI
Play audio
Stop audio
Repeat audio
Release audio
Fast forward
Slow forward
Load audio from URL
Dynamically load audio
Connect with homepage
Auto stop when navigate
flutter and firebase
flutter getx and api call and flutter bottom navigation bar
Link for the previous part
https://youtu.be/bt61-hktOrc
Code for the previous part
https://www.dbestech.com/tutorials/flutter-e-book-reading-app-using-audio-player
AudioPlayers Plugin Link
https://pub.dev/packages/audioplayers/install
AudioPlayers API reference Link
https://pub.dev/documentation/audioplayers/latest/
Other Videos By dbestech
Other Statistics
Step By Step Statistics For dbestech
At this time, dbestech has 84,836 views for Step By Step spread across 1 video. His channel uploaded an hours worth of Step By Step videos, making up less than 0.34% of the total overall content on dbestech's YouTube channel.