|
|
|
@ -357,7 +357,10 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|
|
|
color: widget.color,
|
|
|
|
color: widget.color,
|
|
|
|
borderRadius: BorderRadius.circular(2),
|
|
|
|
borderRadius: BorderRadius.circular(2),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
width: 2,
|
|
|
|
// #Pangea
|
|
|
|
|
|
|
|
// width: 2,
|
|
|
|
|
|
|
|
width: 1,
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
height: 32 * (waveform[i] / 1024),
|
|
|
|
height: 32 * (waveform[i] / 1024),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -376,27 +379,29 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(width: 8),
|
|
|
|
// #Pangea
|
|
|
|
Badge(
|
|
|
|
// const SizedBox(width: 8),
|
|
|
|
isLabelVisible: audioPlayer != null,
|
|
|
|
// Badge(
|
|
|
|
label: audioPlayer == null
|
|
|
|
// isLabelVisible: audioPlayer != null,
|
|
|
|
? null
|
|
|
|
// label: audioPlayer == null
|
|
|
|
: Text(
|
|
|
|
// ? null
|
|
|
|
'${audioPlayer.speed.toString()}x',
|
|
|
|
// : Text(
|
|
|
|
),
|
|
|
|
// '${audioPlayer.speed.toString()}x',
|
|
|
|
backgroundColor: Theme.of(context).colorScheme.secondary,
|
|
|
|
// ),
|
|
|
|
textColor: Theme.of(context).colorScheme.onSecondary,
|
|
|
|
// backgroundColor: Theme.of(context).colorScheme.secondary,
|
|
|
|
child: InkWell(
|
|
|
|
// textColor: Theme.of(context).colorScheme.onSecondary,
|
|
|
|
splashColor: widget.color.withAlpha(128),
|
|
|
|
// child: InkWell(
|
|
|
|
borderRadius: BorderRadius.circular(64),
|
|
|
|
// splashColor: widget.color.withAlpha(128),
|
|
|
|
onTap: audioPlayer == null ? null : _toggleSpeed,
|
|
|
|
// borderRadius: BorderRadius.circular(64),
|
|
|
|
child: Icon(
|
|
|
|
// onTap: audioPlayer == null ? null : _toggleSpeed,
|
|
|
|
Icons.mic_none_outlined,
|
|
|
|
// child: Icon(
|
|
|
|
color: widget.color,
|
|
|
|
// Icons.mic_none_outlined,
|
|
|
|
),
|
|
|
|
// color: widget.color,
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
const SizedBox(width: 8),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// const SizedBox(width: 8),
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|