屏幕常亮

This commit is contained in:
Developer
2026-03-31 21:59:07 +08:00
parent c897f50817
commit b081f09895
11 changed files with 353 additions and 170 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:shared_preferences/shared_preferences.dart';
import '../../../constants/app_constants.dart';
import '../../../utils/audio_manager.dart';
@@ -395,6 +396,7 @@ class _AppFunSettingsPageState extends State<AppFunSettingsPage> {
Text('1. 长按桌面空白处'),
Text('2. 选择「情景诗词」卡片'),
Text('3. 添加后点击桌面卡片即可设置'),
Text('4. 后续版本支持在应用内设置卡片'),
SizedBox(height: 12),
Text(
'注意:该页面设置对鸿蒙设备不生效',
@@ -404,8 +406,12 @@ class _AppFunSettingsPageState extends State<AppFunSettingsPage> {
),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: const Text('取消'),
onPressed: () {
Navigator.of(context).pop();
// 返回桌面
SystemNavigator.pop();
},
child: const Text('前往桌面'),
),
ElevatedButton(
onPressed: () {