引入部分缓存机制
引入封面图信息 正在进入测试阶段
This commit is contained in:
@@ -154,12 +154,17 @@ class _PlayerPageState extends State<PlayerPage> {
|
||||
spreadRadius: 10,
|
||||
),
|
||||
],
|
||||
image: song.artwork != null
|
||||
? DecorationImage(
|
||||
image: MemoryImage(song.artwork!),
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.music_note,
|
||||
size: 64,
|
||||
color: Colors.white24,
|
||||
),
|
||||
child: song.artwork == null
|
||||
? const Icon(Icons.music_note,
|
||||
size: 64, color: Colors.white24)
|
||||
: null,
|
||||
),
|
||||
const SizedBox(height: 48),
|
||||
Column(
|
||||
|
||||
Reference in New Issue
Block a user