Browse Source

修改新手指引

weicu
tanlongsheng 1 year ago
parent
commit
212944ed71
  1. 2
      lib/core/widgets/intro_overlay_builder.dart
  2. 7
      lib/data/services/novice_guide_service.dart
  3. 4
      lib/modules/agent/views/agent_view.dart

2
lib/core/widgets/intro_overlay_builder.dart

@ -98,7 +98,7 @@ class IntroOverlayBuilder {
onFinish(); onFinish();
}, },
), ),
const Spacer(), if (onNext != null || onFinish != null) const Spacer(),
_button( _button(
'跳过', '跳过',
() { () {

7
lib/data/services/novice_guide_service.dart

@ -14,7 +14,7 @@ class NoviceGuideService extends GetxService {
StreamSubscription<dynamic>? _statusSubscription; StreamSubscription<dynamic>? _statusSubscription;
bool isHomeGuide = true; bool isHomeGuide = true;
bool isAIGuide = false; bool isAIGuide = true;
RxBool isWakeup = false.obs; RxBool isWakeup = false.obs;
@ -28,7 +28,6 @@ class NoviceGuideService extends GetxService {
'end': '小言能实时为你播报天气,试试其他指令吧', 'end': '小言能实时为你播报天气,试试其他指令吧',
'method': () async { 'method': () async {
// 天气查询需要位置权限 // 天气查询需要位置权限
await PermissionUtil.instance.requestPermission( await PermissionUtil.instance.requestPermission(
permissionType: Permission.location, permissionType: Permission.location,
permissionName: 'locationInfo'.tr, // 位置信息 permissionName: 'locationInfo'.tr, // 位置信息
@ -128,8 +127,8 @@ class NoviceGuideService extends GetxService {
@override @override
void onInit() { void onInit() {
super.onInit(); super.onInit();
// isHomeGuide = _storage.read('home_guide') ?? false; isHomeGuide = _storage.read('home_guide') ?? false;
// isAIGuide = _storage.read('ai_guide') ?? false; isAIGuide = _storage.read('ai_guide') ?? false;
} }
@override @override

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

@ -212,7 +212,9 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
() => IntroOverlayBuilder.homeBuilder( () => IntroOverlayBuilder.homeBuilder(
params, params,
false, false,
title: '小言正在思考中~', title: controller.newAIReplyCompleted.value
? '小言已经完成了回答!'
: '小言正在思考中~',
onNext: controller.newAIReplyCompleted.value ? () {} : null, onNext: controller.newAIReplyCompleted.value ? () {} : null,
), ),
); );

Loading…
Cancel
Save