我正在添加一个小部件来有条件地构建树,现在当 isPlaying 更改时如何显示和隐藏动画?
...
if (isPlaying)
Padding(
padding: EdgeInsets.all(8),
child: Container(
decoration: BoxDecoration(
color: Color.fromARGB(200, 255, 255, 255),
border: Border.all(
color: buttonStroke,
width: 1.3,
),
borderRadius: BorderRadius.all(Radius.circular(12)),
),
child: _buildPlayer(),
),
),