|
|
|
|
@ -213,27 +213,25 @@ class _TtsVoicePlayerState extends State<TtsVoicePlayer> {
|
|
|
|
|
style: AppTextStyles.tinyFont.copyWith(color: AppColor.textStyleColor(context)),
|
|
|
|
|
),
|
|
|
|
|
4.width,
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: _cycleSpeed,
|
|
|
|
|
style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
|
|
|
|
|
constraints: const BoxConstraints(),
|
|
|
|
|
tooltip: "Playback speed",
|
|
|
|
|
icon: Text(
|
|
|
|
|
_speedLabel,
|
|
|
|
|
style: AppTextStyles.tinyFont.copyWith(color: AppColor.textStyleColor(context), fontWeight: FontWeight.w600),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: _toggleMute,
|
|
|
|
|
style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
|
|
|
|
|
constraints: const BoxConstraints(),
|
|
|
|
|
tooltip: _muted ? "Unmute" : "Mute",
|
|
|
|
|
icon: Icon(_muted ? Icons.volume_off_rounded : Icons.volume_up_rounded, size: 18, color: AppColor.icon2Color(context)),
|
|
|
|
|
),
|
|
|
|
|
// IconButton(
|
|
|
|
|
// onPressed: _cycleSpeed,
|
|
|
|
|
// style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
|
|
|
|
|
// constraints: const BoxConstraints(),
|
|
|
|
|
// tooltip: "Playback speed",
|
|
|
|
|
// icon: Text(
|
|
|
|
|
// _speedLabel,
|
|
|
|
|
// style: AppTextStyles.tinyFont.copyWith(color: AppColor.textStyleColor(context), fontWeight: FontWeight.w600),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// IconButton(
|
|
|
|
|
// onPressed: _toggleMute,
|
|
|
|
|
// style: const ButtonStyle(tapTargetSize: MaterialTapTargetSize.shrinkWrap),
|
|
|
|
|
// constraints: const BoxConstraints(),
|
|
|
|
|
// tooltip: _muted ? "Unmute" : "Mute",
|
|
|
|
|
// icon: Icon(_muted ? Icons.volume_off_rounded : Icons.volume_up_rounded, size: 18, color: AppColor.icon2Color(context)),
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|