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

puh genre zuordnung funxt

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