buildDisabledPlayer method
- BuildContext context
Buiid the audio player.
Implementation
Widget buildDisabledPlayer(BuildContext context) {
return SizedBox(
height: 48,
child: IgnorePointer(
child: Opacity(
opacity: 0.5,
child: Row(
children: [
Container(
height: 48,
width: 48,
padding: const EdgeInsets.all(16),
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation(
Theme.of(context).unselectedWidgetColor),
),
),
const Text(
'--:-- / --:--',
),
Expanded(
child: Slider(
value: 0,
thumbColor: Theme.of(context).unselectedWidgetColor,
onChanged: (value) {},
),
),
],
),
),
),
);
}