Compare commits
No commits in common. "e7af556512f7c9c58abc2040e955bbb6f9c2483e" and "988d343cfaf025eea672c51a7e5a153e86f4eac1" have entirely different histories.
e7af556512
...
988d343cfa
|
|
@ -52,9 +52,6 @@ class RecordingButton extends StatefulWidget {
|
||||||
/// 录音状态时显示的图标
|
/// 录音状态时显示的图标
|
||||||
final IconData? recordingIcon;
|
final IconData? recordingIcon;
|
||||||
|
|
||||||
/// 按钮图标大小
|
|
||||||
final double iconSize;
|
|
||||||
|
|
||||||
const RecordingButton({
|
const RecordingButton({
|
||||||
super.key,
|
super.key,
|
||||||
this.speechService,
|
this.speechService,
|
||||||
|
|
@ -71,7 +68,6 @@ class RecordingButton extends StatefulWidget {
|
||||||
this.tooltip,
|
this.tooltip,
|
||||||
this.idleIcon,
|
this.idleIcon,
|
||||||
this.recordingIcon,
|
this.recordingIcon,
|
||||||
this.iconSize = 40.0,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -240,7 +236,7 @@ class _RecordingButtonState extends State<RecordingButton>
|
||||||
_isListening
|
_isListening
|
||||||
? (widget.recordingIcon ?? Icons.stop_rounded)
|
? (widget.recordingIcon ?? Icons.stop_rounded)
|
||||||
: (widget.idleIcon ?? Icons.mic_rounded),
|
: (widget.idleIcon ?? Icons.mic_rounded),
|
||||||
size: widget.iconSize,
|
size: widget.size * 0.55,
|
||||||
color: iconColor,
|
color: iconColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: yx_asr
|
name: yx_asr
|
||||||
description: 基于 sherpa_onnx 的 Flutter 语音识别插件,提供完全离线的实时语音转文字功能。
|
description: 基于 sherpa_onnx 的 Flutter 语音识别插件,提供完全离线的实时语音转文字功能。
|
||||||
version: 1.0.2
|
version: 1.0.1
|
||||||
homepage: https://github.com/yuanxuan/yx_asr
|
homepage: https://github.com/yuanxuan/yx_asr
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue