The Music Lyrics App is an application that allows users to access trending songs along with their details and lyrics. It utilizes the Musixmatch APIs to fetch the necessary information. This README provides an overview of the project and instructions for setting it up locally.
The main features of the Music Lyrics App include:
- Retrieving a list of trending songs from the Musixmatch charts.tracks.get API.
- Obtaining the details of a selected track using the Musixmatch track.get API.
- Fetching the lyrics of the selected track using the Musixmatch track.lyrics API.
- Handling internet connection loss and displaying a "No Internet" page to the user.
- Implementing the BLoC (Business Logic Component) pattern for efficient state management.
To run the Music Lyrics App locally, follow these steps:
-
Clone the repository to your local machine.
-
Open the trackBLoC.dart file located in the project.
-
Locate line 6 of the file and replace
'YOUR_API_KEY_HERE'
with your actual Musixmatch API key.const String API_KEY = 'YOUR_API_KEY_HERE';
-
Ensure that you have Flutter and its dependencies installed on your machine.
-
Open a terminal or command prompt and navigate to the project directory.
-
Run the app on an emulator using the command flutter run.
Please note that you need to have a valid Musixmatch API key to use the app. If you don't have one, you can obtain it by signing up on the Musixmatch developer portal.