mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00

Custom bg-color for floating player for each title track album art go_true routing integrated floating player now disappears if not on home
10 lines
306 B
Dart
10 lines
306 B
Dart
import 'package:spotify/spotify.dart';
|
|
import 'package:uuid/uuid.dart' show Uuid;
|
|
|
|
const uuid = Uuid();
|
|
String imageToUrlString(List<Image>? images, {int index = 0}) {
|
|
return images != null && images.isNotEmpty
|
|
? images[0].url!
|
|
: "https://avatars.dicebear.com/api/bottts/${uuid.v4()}.png";
|
|
}
|