Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into new_dev

newdev_shunjiawei
liwei1dao 10 months ago
parent
commit
8baa4133af
  1. 28
      lib/modules/agent/views/agent_view.dart
  2. 2
      pubspec.yaml

28
lib/modules/agent/views/agent_view.dart

@ -92,7 +92,7 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
],
),
child: Icon(
Icons.smart_toy_outlined,
Icons.support_agent,
color: Colors.white,
size: 22.sp,
),
@ -342,11 +342,7 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
overlayBuilder: (params) {
return IntroOverlayBuilder.aiBuilder(
params,
controller
.noviceGuideService
.aiStepsList[controller
.noviceGuideService
.aiStep]['endKey']
'${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['endKey']}'
.tr,
onFinish: () async {
if (controller
@ -638,29 +634,17 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
overlayBuilder: (params) {
return IntroOverlayBuilder.aiBuilder(
params,
controller
.noviceGuideService
.aiStepsList[controller
.noviceGuideService
.aiStep]['startKey']
'${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['startKey']}'
.tr,
buttonText: 'confirmInput'.tr,
onNext: () {
controller.textController.text =
controller
.noviceGuideService
.aiStepsList[controller
.noviceGuideService
.aiStep]['inputKey']
'${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['inputKey']}'
.tr;
},
onTap: () {
controller.textController.text =
controller
.noviceGuideService
.aiStepsList[controller
.noviceGuideService
.aiStep]['inputKey']
'${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['inputKey']}'
.tr;
params.onNext!();
},
@ -885,7 +869,7 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
overlayBuilder: (params) {
return IntroOverlayBuilder.aiBuilder(
params,
'${'guideClickSendPrefix'.tr}${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['sendKey'].tr}',
'${'guideClickSendPrefix'.tr}${'${controller.noviceGuideService.aiStepsList[controller.noviceGuideService.aiStep]['sendKey']}'.tr}',
alignment: false,
onTap: () async {
await controller

2
pubspec.yaml

@ -1,7 +1,7 @@
name: voitrans
description: "Voitrans - AI Voice Assistant."
publish_to: "none"
version: 1.0.19+62
version: 1.0.20+67
environment:
sdk: ">=3.3.0 <4.0.0"

Loading…
Cancel
Save