diff --git a/android/local.properties b/android/local.properties index 90b2b71fc5fa757606928093d102fb697252ab1a..ab9c370187fd7334f18591ec6a25b3acd5260707 100644 --- a/android/local.properties +++ b/android/local.properties @@ -1,5 +1,5 @@ -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 diff --git a/lib/moodpage.dart b/lib/moodpage.dart index 5bf6962d246096ad7176c003a19152a5997ee21d..3106197f41b234ebbb1bae1ed8f7e3e7a0921377 100644 --- a/lib/moodpage.dart +++ b/lib/moodpage.dart @@ -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);