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