A simple music player using Flutter!
- Search your favourite artist/song in iTunes!
- Enjoy your 30s preview song.
- Pause or seek the duration of your song.
- Search other song while you listening to the current song.
- Android device with minimum API 23 (Marshmallow)
- Recommended using Flutter 2.0 in this Stable channel
- Using Dart v2.12.2
- Clone from this repository
- Copy repository url
- Open your fav code editor (Recommended using Android Studio)
- New -> Project from Version Control..
- Paste the url, click OK
- Run "flutter pub get" in the project directory or click the highlighted instruction in Android Studio
- Prepare the Android Virtual Device or real device
- Run main.dart
This project directory consist of 4 directories:
- Components: consists widgets that build the main screen (homepage) and do it's function
bottom_player
: widget that provide the player controller, which are play/pause button and seek bar (see the green part in screenshot)music_card
: widget that provide list of the songs after query. If there's no list, it will show default container (see the yellow part in screenshot)search_box
: widget that receive user's keywords for songs. Query can be done either by pressing side search button or enter button on keyboard (see the red part in screenshot)
- Model: consists models or data structure that being used in the project
music_data
: provide the detail of each song's data, which are: title, artist, album, url of album image, and url of the m4a preview song
- Screens: consists page that shown to the user
homepage
: provide the main screen for the components and declare the basic functional
- Utilities: consists tools that support the component's function
api_caller
: function to do API commandconstants
: provide constants and styles to the projectitunes_handler
: provide the MediaData list from iTunes Affiliate API
Library that used to play the audio file: AudioPlayers v0.18.3