屏幕常亮
This commit is contained in:
@@ -60,6 +60,58 @@ class _AppDiyPageState extends State<AppDiyPage> {
|
||||
super.initState();
|
||||
_loadSettings();
|
||||
_startScrolling();
|
||||
// 延迟显示开发中提示对话框
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_showDevNoticeDialog();
|
||||
});
|
||||
}
|
||||
|
||||
// 显示开发中提示对话框
|
||||
void _showDevNoticeDialog() {
|
||||
showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Row(
|
||||
children: [
|
||||
Icon(Icons.construction, color: AppConstants.primaryColor),
|
||||
const SizedBox(width: 8),
|
||||
const Text('开发中'),
|
||||
],
|
||||
),
|
||||
content: const Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'个性化设置开发中',
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
|
||||
),
|
||||
SizedBox(height: 12),
|
||||
Text('• 当前设置仅当前页面生效'),
|
||||
Text('• 后续版本将陆续支持'),
|
||||
Text('• 可提前预览主题风格设置'),
|
||||
SizedBox(height: 12),
|
||||
Text(
|
||||
'感谢您的耐心等待!',
|
||||
style: TextStyle(color: Colors.grey, fontSize: 12),
|
||||
),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
ElevatedButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
child: const Text('我知道了'),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -217,6 +269,13 @@ class _AppDiyPageState extends State<AppDiyPage> {
|
||||
});
|
||||
}, icon: Icons.navigation),
|
||||
|
||||
_buildSwitchItem('转场动画', _enableAnimation, (value) {
|
||||
setState(() {
|
||||
// _enableAnimation = value;
|
||||
_saveSettings();
|
||||
});
|
||||
}, icon: Icons.track_changes),
|
||||
|
||||
// 设计风格
|
||||
_buildSection('设计风格'),
|
||||
_buildDesignStyleCard(),
|
||||
|
||||
Reference in New Issue
Block a user