Тёмный

Create a Music Player App Using Flutter 

doctor code
Подписаться 29 тыс.
Просмотров 77 тыс.
50% 1

#Flutter #FlutterUI #AndroidDev
in this video, I'm going to show you how to make a cool music Player app using Flutter.
you will learn how to play music from assets
Source code: doctorcodetutorial.blogspot.c...

Наука

Опубликовано:

 

24 окт 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@HrishabhKumar-fu6dk
@HrishabhKumar-fu6dk 3 года назад
this kind of video is good UI designing, I would have appreciated if you added some explanation about what is going on throughout the video.
@simoneseo5216
@simoneseo5216 3 года назад
Thank you doctor, I learned all the essential things for my app.
@DoctorCode9
@DoctorCode9 3 года назад
Thank you for your comment, I'm happy that I was able to help you 😃
@FlutterMapp
@FlutterMapp 2 года назад
Kinda Fire! 🔥🔥🔥 Just discover your channel Doctor Code ⚡🙏
@DoctorCode9
@DoctorCode9 2 года назад
Thanks man ❤️, I'm also a huge fan of your work 🔥🔥
@FlutterMapp
@FlutterMapp 2 года назад
@@DoctorCode9 Damnn! Thanks a lot! we could do a video together ⚡🙏
@whiteknight1421
@whiteknight1421 2 года назад
For anyone facing audioplayers duration handler problem, adjust the code to: // Handle the audioplayer time _player.onDurationChanged.listen((Duration duration) { setState(() { musicLength = duration; }); }); _player.onAudioPositionChanged.listen((p) { setState(() { position = p; }); }); Cheers!
@atmmmrestaurant1461
@atmmmrestaurant1461 2 года назад
wow!
@besitos_
@besitos_ 2 года назад
Thank you so much. Really help me!
@rahulbesra2422
@rahulbesra2422 2 года назад
thank you very much
@jcharles8348
@jcharles8348 2 года назад
You just saved me hours.cheers mate
@omerdlshad1675
@omerdlshad1675 3 года назад
thanks a lot, my brother...
@LUCA54
@LUCA54 3 года назад
club mate is awesome!
@user-cc3vh9jw5h
@user-cc3vh9jw5h 2 года назад
Nice 👍
@matm6882
@matm6882 3 года назад
Hey good job man! I have a question: i am creating an app that sounds sometimes (i use the same package as you showed me in the video). However when the app sound, it interrupt the music that the user may have in the background (with spotify or deezer for example) and i don't want this to happen. What could I do launch the music again after the sound is played, or to play the sound above the music?
@rahulbesra2422
@rahulbesra2422 2 года назад
Hello doc, an error saying field 'cache' has not been initialized is showing when I press play button. What seems to be the problem? And I used late modifier to declare AudioPlayer and AudioCache since it was not allowing null value in the AudioPlayer and AudioCache.
@aakash9112
@aakash9112 3 года назад
Hi, doctor code I have one doubt in this ? how to maximize the value of the assets from a fixed value in my IDE I can't able to add a full music
@sariasweet18
@sariasweet18 3 года назад
Thank you for this sir. I like the teaching approach. It is very helpful for me as a beginner.
@DoctorCode9
@DoctorCode9 3 года назад
I'm happy that it helped you, if you have any idea or anything you want to learn y9u can add it in a comment 😊
@sonyarianto
@sonyarianto 3 года назад
ok great, I don't know about Flutter but I enjoy this live coding session
@LUCA54
@LUCA54 3 года назад
ok great, I don't know about Flutter but I enjoy this live coding session
@iamsantoshnayak
@iamsantoshnayak 3 года назад
i tried the same but instead of audio cache i have used a url to fetch song but the issue is the duration slider is not working. can you help me out please
@eliaz976hhb5
@eliaz976hhb5 3 года назад
thank you man you are awesome
@tuananhnguyen5984
@tuananhnguyen5984 3 года назад
Thank you, I did it
@priyangsubanerjee
@priyangsubanerjee 3 года назад
In my case the seek slider is not smooth enough. It does not change when player is paused...
@joiejay141
@joiejay141 3 года назад
Thank you for the amazing work.
@mohitbasliyal3368
@mohitbasliyal3368 3 года назад
hey can u provide the code
@diegoveloper
@diegoveloper 3 года назад
Hey guys , check my channel :)
@atmmmrestaurant1461
@atmmmrestaurant1461 2 года назад
It's really great !
@vivekdhameliya296
@vivekdhameliya296 3 года назад
can I play more than one music at a time simultaneously?
@sachinvishwakarma4133
@sachinvishwakarma4133 3 года назад
it saying durationHandler and durationPosition The setter 'durationHandler' isn't defined for the type 'AudioPlayer'. The setter 'positionHandler' isn't defined for the type 'AudioPlayer'. please help
@azeenkhayr5313
@azeenkhayr5313 3 года назад
try this... _player.onDurationChanged.listen((d) { setState(() => musicLength = d); }); _player.onAudioPositionChanged.listen((d) { setState(() => position = d); });
@sachinvishwakarma4133
@sachinvishwakarma4133 3 года назад
@@azeenkhayr5313 thanks 😊
@gordon6819
@gordon6819 Год назад
hi you managed to solve this error??
@vikneshrajan5830
@vikneshrajan5830 3 года назад
The Music won't play for me.. I don't know why.. the slider is also not working
@israalaaaldinmohamedahmed1238
Hi @DoctorCode i have a problem the AudioCache ( ) doesn't take FixedPlayer argument ,please help me
@hectorprx
@hectorprx 3 года назад
Very Nice Thanks
@mohitbasliyal3368
@mohitbasliyal3368 3 года назад
hey can u provide the code
@muhammedakar913
@muhammedakar913 2 года назад
You can use onDurationChanged instead durationHandler and onAudioPositionChanged instead positionHandler
@designonline1597
@designonline1597 Год назад
I cannot find the package "audio_cache", can you please share that link.
@maungmaungthein1629
@maungmaungthein1629 3 года назад
thank you very much Sir for your help. and I want video player and music store api request.
@louiejayperales3693
@louiejayperales3693 2 года назад
how to fix Non-nullable instance field 'advancedPlayer' must be initialized.
@tikka6554
@tikka6554 2 года назад
My laptop is i3 11gen and 4gb ram can i run android studio without lag
@mardes5442
@mardes5442 3 года назад
Thank You so much Will there be a second part?
@DoctorCode9
@DoctorCode9 3 года назад
I will make a new video on how to play music from an URL and how to make a full music app with playlist and file reading in 2021
@mardes5442
@mardes5442 3 года назад
@@DoctorCode9 Sadly, not before Thx anyway
@kankri9961
@kankri9961 3 года назад
Thanks pro..can you upload the code to githup
@omyoubee7250
@omyoubee7250 2 года назад
اشكرك جدا
@DewangRawal
@DewangRawal 3 года назад
MusicApp commant is not working... pls guide someone pls
@omyoubee7250
@omyoubee7250 2 года назад
Can I apply the same steps using the version audioplayers 0.20.0 last ver
@DoctorCode9
@DoctorCode9 2 года назад
Yes you can but make sure if it support null safety and apply it
@devilpay2442
@devilpay2442 3 года назад
where did durationHandler & position handler came?
@muhammedakar913
@muhammedakar913 2 года назад
You can use onDurationChanged instead durationHandler and onAudioPositionChanged instead positionHandler
@muminoloruntola2146
@muminoloruntola2146 3 года назад
Why not in Kotlin doctor. We also want to learn from you
@AYMAQMEDIA
@AYMAQMEDIA 3 года назад
Hi dear How can make list of music Auto play all music
@tipsworld1250
@tipsworld1250 3 года назад
Do you create a video for tab bar using json api
@alifairie
@alifairie Год назад
How to add second song in this apps???
@a_vip05
@a_vip05 10 месяцев назад
Thanks a lot but what is the name of theam that you use it in vs code plz ❤
@javierhasbani3057
@javierhasbani3057 3 года назад
Question, question, question for the Doctor: dear Doc, can I "replace" the mp3 file with a stream url? It is to play an online radio. Thanks for your time.
@DoctorCode9
@DoctorCode9 3 года назад
Hello, yes of course, if you want to stream music from an URL, I already made a video about the subject, you can check it
@aftabahmadawan9362
@aftabahmadawan9362 3 года назад
design is classy but my music is not running ...!!!
@randisihombing4315
@randisihombing4315 Год назад
please can u make a new video about next and previous. and also when we click next the song will auto play.
@ByteBlitzEcom
@ByteBlitzEcom 3 года назад
bro it's showing an error that is have not difined the function of "AudioPlayer" .
@wojownikmaryi1910
@wojownikmaryi1910 3 года назад
same. Did u found out how to fix it?
@jhoskry
@jhoskry 3 года назад
In the end, you launched this app, you look beautiful, I would love to have it, you could leave a link
@DewangRawal
@DewangRawal 3 года назад
MusicApp commant is not working... pls guide someone pls . someone watsapp me +919898262069
@omyoubee7250
@omyoubee7250 2 года назад
i did the same code but the music dosen't play !!!
@messaoudoumghar9982
@messaoudoumghar9982 3 года назад
Please I want know can make a rent house app s
@ajinkyajoshi7847
@ajinkyajoshi7847 2 года назад
I'm starting my flutter journey Watching this Exactly 1 year after upload. Is flutter worth learning right now?
@DoctorCode9
@DoctorCode9 2 года назад
Definitely yes, Flutter is growing every year andbit become more and more popular even mong most companies. So I recommend learning it as soon as possible
@ajinkyajoshi7847
@ajinkyajoshi7847 2 года назад
@@DoctorCode9 Thank you for the reply! I'm Watching more of your vids and looking forward to newer content!👍🏼
@nonenull140
@nonenull140 3 года назад
How to play music from music list ? would you help me , please.
@DoctorCode9
@DoctorCode9 3 года назад
the method is simple, you just need to create a list of music URL ( or paths if you want it locally) and you add an event so when the music end it start to play the second one
@cristianjulianmurcia8038
@cristianjulianmurcia8038 2 года назад
Si lo desarrollaste(?)
@AaaBbb-nw7gd
@AaaBbb-nw7gd 3 года назад
But it's not adaptive
@sonyarianto
@sonyarianto 3 года назад
can this player play from stream URL?
@DoctorCode9
@DoctorCode9 3 года назад
The player support playing music from URL also
@Atifkhan-mn4kb
@Atifkhan-mn4kb 3 года назад
duration handler and position handler not working
@mozartblacc
@mozartblacc 2 года назад
I have the same problem
@holistichealthquest93
@holistichealthquest93 10 месяцев назад
Are you Delft to speak out What tutorial is this?
@Acinc-lr2jp
@Acinc-lr2jp 3 года назад
How do I download flutter and tutorials for building apps.
@user-xf7mu7ub9d
@user-xf7mu7ub9d 3 года назад
you'll need an IDE and Git to be able to install Flutter. there are a lot of guides available on Internet.
@alfarizidwiprasetyo9280
@alfarizidwiprasetyo9280 3 года назад
why the music wont playing in mine ?
@DoctorCode9
@DoctorCode9 3 года назад
Try checking the file name and path, if everything is correct check your emulator sound level or try to change the emulators, some emulator don't support the audio output, (I faced the same problem with and old emulator, and it worked with a new one)
@alfarizidwiprasetyo9280
@alfarizidwiprasetyo9280 3 года назад
@@DoctorCode9 okay, nice video btw
@DoctorCode9
@DoctorCode9 3 года назад
Thank you 😊
@mohitbasliyal3368
@mohitbasliyal3368 3 года назад
I loved the video...but plz provide the code.....
@DoctorCode9
@DoctorCode9 3 года назад
The source code is in the description
@mohitbasliyal3368
@mohitbasliyal3368 3 года назад
@@DoctorCode9 thanx i got it
@aminsamad6900
@aminsamad6900 3 года назад
it saying durationHandler and durationPosition The setter 'durationHandler' isn't defined for the type 'AudioPlayer'. The setter 'positionHandler' isn't defined for the type 'AudioPlayer'.
@azeenkhayr5313
@azeenkhayr5313 3 года назад
try this... _player.onDurationChanged.listen((d) { setState(() => musicLength = d); }); _player.onAudioPositionChanged.listen((d) { setState(() => position = d); });
@gustavoaguiar9937
@gustavoaguiar9937 2 года назад
omg, flutter it's so hard, i prefer react native
@DoctorCode9
@DoctorCode9 2 года назад
I didn't tried React native yet, maybe this summer, but Flutter isn't hard at all, and you can easily learn it
@carlknightcoph9494
@carlknightcoph9494 2 года назад
as a flutter user myself . i find native react hard too. well its a matter of familiarity i guess haha
@gustavoaguiar9937
@gustavoaguiar9937 2 года назад
@@carlknightcoph9494 that's true haha
@ravilimbani4674
@ravilimbani4674 3 года назад
provide the code
@atifahmedqadri1416
@atifahmedqadri1416 Месяц назад
Music player app. Silent hokar kyu banaya bhai.. kch bolke to btate kya kr rhe ho
@user-gd1hs6cu7e
@user-gd1hs6cu7e 2 года назад
ممكن السورس كود
@abdihamidmoallim5411
@abdihamidmoallim5411 Год назад
@override void initState() { // TODO: implement initState super.initState(); _player = AudioPlayer(); cache = AudioCache(); } the AudioCache ( ) doesn't take FixedPlayer argument for me but it does for you at 12:41 How can I solve that
@DoctorCode9
@DoctorCode9 Год назад
maybe you're using a newer version, I'll update the project
@abdihamidmoallim5411
@abdihamidmoallim5411 Год назад
@@DoctorCode9 Respect you Doc
Далее
Flutter Tutorial | Create a Music App using Flutter
32:25
The best no code mobile app builders in 2023
19:10
Просмотров 117 тыс.
Frank Now VS Then Edit 🥵| #brawlstars #shorts
00:18
Просмотров 655 тыс.
Впервые дал другу машину…
00:57
Learn Kotlin in 12 Minutes
12:01
Просмотров 312 тыс.
🎧📱 Minimal Music Player • Flutter Tutorial
38:23
What is happening with Flutter
3:41
Просмотров 141 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 2,2 млн
Так ли Хорош Founders Edition RTX 4080 ?
13:00