✨ Add spotify in account connection
This commit is contained in:
@@ -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.",
|
||||
|
||||
BIN
assets/images/oidc/spotify.png
Normal file
BIN
assets/images/oidc/spotify.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
@@ -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<void> addConnection() async {
|
||||
|
||||
Reference in New Issue
Block a user