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