From ef647aee33b36d0ffa6178b279044bafcb450e61 Mon Sep 17 00:00:00 2001 From: MagicalSpyto <122316136+MagicalSpyto@users.noreply.github.com> Date: Sun, 5 Feb 2023 17:45:51 +0100 Subject: [PATCH] puh genre zuordnung funxt --- android/local.properties | 4 ++-- lib/moodpage.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/local.properties b/android/local.properties index 90b2b71..ab9c370 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 5bf6962..3106197 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); -- GitLab