Lyrics app for IU's songs.
These are some of the websites I use to find the lyrics:
-
Look for the album cover art online and download it.
-
Use ImageMagick to convert the image to 128x128. E.g.,
magick convert eight.jpg -resize 128x128 eight_128.jpg. -
Add the new
eight_128.jpgto theassets/cover_artfolder.
This is generally the process I use for adding lyrics. However on some websites the text is not as nicely formatted in which case I need to edit it manually.
-
Open the
assets/iu.jsonfile. -
Create a new album above the most recent one by following this specific format, e.g.
{ "album": "eight", "date": "2020-05-06", "coverArt": "assets/cover_art/eight_128.jpg", "songs": [ { "title": "eight", "lyrics": { "han": [], "rom": [], "eng": [] } } ] }, -
Find the lyrics online. Refer to the Lyrics Resources section.
-
Copy the Korean (Hangul) lyrics into a new file buffer in Visual Studio Code. (In Visual Studio Code, just click on
File -> New Fileor typeCtrl+N) -
Add a new line to the end of the file if there isn't one.
-
On the last line of the lyrics, go to the end of the line and hold down the
ShiftKey and then hit the Right Arrow Key once. This should highlight a single space after the line and then place the cursor on the next line. -
Hold down
Ctrl+Duntil every line is highlighted. This will allow you to edit each line simultaneously. -
Now, just hit the Left Arrow Key once and add a double-quote and comma, e.g.
",and then use theHomeKey to jump to the beginning of the line and add the opening double-quote". -
Hit the
EscKey and delete the last line's comma. -
Add the formatted Hangul lyrics into the brackets of
"han": []. -
Repeat the same procedure for the Roman and English lyrics starting at step 4, adding the corresponding lyrics to
"rom": []and"eng": [].
The lyrics should look something like this (without the ...) when everything is properly formatted (example lyrics: "Boo" by IU from Genius):
"Think about it (IU) check it check (IU)",
"Boo boo boo True color present",
"",
"내가 별로라는 외몰 갖고 있는 너라고",
"많이 안 좋아하는 버릇도 모조리 다 갖추고 있어",
"어쩜 스치기만 해도 엄청나게 싫은 얼굴로 (No)",
"널 쳐다봤어 (미안하긴 했어)",
...
"Boo"Each line represents a Card in Flutter.
The empty line "", then represents an empty Card which is used to separate each section of the song.
- Install OpenJDK 8 (
sudo apt install openjdk-8-jdk) - Make sure Java is installed by running
java -version, if it doesn't work then you may need to addjavato yourPATH - Install Flutter and make sure it's on your
PATH - Run
flutter doctor --android-licensesand accept all licenses - Verify everything is good by running
flutter doctor - Clone the repository via
git clone https://github.com/airicbear/iu-lyrics
-
Install Android Studio
-
Install the Flutter plugin for Android Studio.
-
Add Dart SDK to Android Studio from your Flutter installation (e.g.
~/development/flutter/bin/cache/dart-sdk/)
For more information, visit the Flutter documentation on setting up Android Studio for Flutter development.
-
Install Visual Studio Code.
-
Install the Dart and Flutter plug-ins for Visual Studio Code.
For more information, visit the Flutter documentation on setting up Visual Studio code for Flutter development.
This will build an app.apk at build/app/outputs/release/:
flutter build apk --split-per-abiThen to install the latest build to your device just do:
flutter installflutter build appbundleIf you are interested in contributing these lyrics please submit an issue or create a pull request.



