Browse Source

修复agent新手指引

weicu
tanlongsheng 11 months ago
parent
commit
768099f8d5
  1. 26
      lib/modules/agent/views/agent_view.dart

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

@ -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

Loading…
Cancel
Save