Skip to content
Snippets Groups Projects
Commit ef647aee authored by MagicalSpyto's avatar MagicalSpyto
Browse files

puh genre zuordnung funxt

parent 3af0a0b5
No related branches found
No related tags found
No related merge requests found
sdk.dir=/Users/Erik/Library/Android/sdk
flutter.sdk=/opt/homebrew/Caskroom/flutter/3.3.9/flutter
sdk.dir=C:/Users/edust/AppData/Local/Android/Sdk
flutter.sdk=C:\\Users\\edust\\Desktop\\uni\\Mobile computing\\Project\\flutter_windows_3.3.9-stable\\flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
\ No newline at end of file
......@@ -77,7 +77,7 @@ class MoodPage extends State<StateMoodPage> {
_changeMusic() async {
Spotify spotify = Spotify();
//code zum musik ändern
String hexcode = selectedMood.red.toRadixString(16) + selectedMood.green.toRadixString(16) + selectedMood.blue.toRadixString(16);
String hexcode = selectedMood.red.toRadixString(16).padLeft(2,"0").toUpperCase() + selectedMood.green.toRadixString(16).padLeft(2,"0").toUpperCase() + selectedMood.blue.toRadixString(16).padLeft(2,"0").toUpperCase();
print(hexcode);
String genre = await changeFirebase().getGenreByHex(hexcode);
print("genre = " + genre);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment