diff --git a/assets/i18n/en-US.json b/assets/i18n/en-US.json index fd5d7fba..02f49001 100644 --- a/assets/i18n/en-US.json +++ b/assets/i18n/en-US.json @@ -162,6 +162,7 @@ "accountConnectionProviderGithub": "GitHub", "accountConnectionProviderDiscord": "Discord", "accountConnectionProviderAfdian": "Afdian", + "accountConnectionProviderSpotify": "Spotify", "checkIn": "Check In", "checkInNone": "Not checked-in yet", "checkInNoneHint": "Get your fortune tips and daily rewards by checking in.", diff --git a/assets/images/oidc/spotify.png b/assets/images/oidc/spotify.png new file mode 100644 index 00000000..1fbb2181 Binary files /dev/null and b/assets/images/oidc/spotify.png differ diff --git a/lib/screens/account/me/settings_connections.dart b/lib/screens/account/me/settings_connections.dart index d7e768d2..08b11a07 100644 --- a/lib/screens/account/me/settings_connections.dart +++ b/lib/screens/account/me/settings_connections.dart @@ -38,6 +38,13 @@ Widget getProviderIcon(String provider, {double size = 24, Color? color}) { height: size, color: color, ); + case 'spotify': + return Image.asset( + 'assets/images/oidc/spotify.png', + width: size, + height: size, + color: color, + ); default: return Icon(Symbols.link, size: size); } @@ -57,6 +64,8 @@ String getLocalizedProviderName(String provider) { return 'accountConnectionProviderDiscord'.tr(); case 'afdian': return 'accountConnectionProviderAfdian'.tr(); + case 'spotify': + return 'accountConnectionProviderSpotify'.tr(); default: return provider; } @@ -156,6 +165,7 @@ class AccountConnectionNewSheet extends HookConsumerWidget { 'github', 'discord', 'afdian', + 'spotify', ]; Future addConnection() async {