release
This commit is contained in:
@@ -561,12 +561,19 @@ class _AppFunSettingsPageState extends State<AppFunSettingsPage> {
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
await _setAutoRefresh(false);
|
||||
await _setDebugInfo(false);
|
||||
// 重置所有设置为默认值
|
||||
await _setAutoRefresh(false); // 自动刷新:关闭
|
||||
await _setDebugInfo(false); // 调试信息:关闭
|
||||
await _setPreload(true); // 预加载:开启
|
||||
await _setHideSecondaryButtons(false); // 隐藏次要按钮:关闭
|
||||
await _setSoundEnabled(false); // 声音反馈:关闭
|
||||
// 全局Tips:开启
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setBool(_globalTipsKey, true);
|
||||
// 震动反馈:开启(不需要保存到SharedPreferences,直接更新状态)
|
||||
setState(() {
|
||||
_soundEnabled = true;
|
||||
_vibrationEnabled = true;
|
||||
_globalTipsEnabled = true; // 重置全局Tips开关为开启
|
||||
_globalTipsEnabled = true; // 全局Tips:开启
|
||||
});
|
||||
_showSnackBar('已恢复默认设置');
|
||||
},
|
||||
@@ -577,3 +584,10 @@ class _AppFunSettingsPageState extends State<AppFunSettingsPage> {
|
||||
);
|
||||
}
|
||||
}
|
||||
// - 自动刷新:关闭
|
||||
// - 调试信息:关闭
|
||||
// - 预加载:开启
|
||||
// - 隐藏次要按钮:关闭
|
||||
// - 声音反馈:关闭
|
||||
// - 震动反馈:开启
|
||||
// - 全局Tips:开启
|
||||
@@ -902,38 +902,70 @@ class _OfflineDataPageState extends State<OfflineDataPage> {
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(Icons.info_outline, color: Colors.blue[600], size: 16),
|
||||
Icon(Icons.info_outline, color: Colors.blue[600], size: 20),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'温馨提示',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.blue[600],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const Text(
|
||||
'• 开启离线模式后,将会循环加载本地的数据源',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey),
|
||||
),
|
||||
const Text(
|
||||
'• 下载的数据将保存在本地,可在无网络时使用',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey),
|
||||
),
|
||||
const Text(
|
||||
'• 下载过程中请保持网络连接',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey),
|
||||
),
|
||||
const Text(
|
||||
'• 缓存数据不会写入历史记录',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey),
|
||||
),
|
||||
const Text(
|
||||
'• 建议在WiFi环境下下载较多数据',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey),
|
||||
const SizedBox(height: 12),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'• 数据下载后 需手动开启离线状态',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.grey[700],
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 20),
|
||||
child: Text(
|
||||
'方法:个人 → 下拉 点击头像下面关闭按钮 头像显示离线',
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: Colors.grey[600],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'• 开启离线模式后,将会循环加载本地的数据源',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'• 下载的数据将保存在本地,可在无网络时使用',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'• 下载过程中请保持网络连接',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'• 缓存数据不会写入历史记录',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'• 建议在WiFi环境下下载较多数据',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -409,8 +409,8 @@ class _UserPlanPageState extends State<UserPlanPage> {
|
||||
{'icon': Icons.how_to_vote, 'title': '参与投票', 'desc': '对产品功能进行投票'},
|
||||
{'icon': Icons.bar_chart, 'title': '查看统计数据', 'desc': '查看全站使用统计'},
|
||||
{'icon': Icons.edit_note, 'title': '开放投稿', 'desc': '投稿您的诗词作品'},
|
||||
{'icon': Icons.science, 'title': '体验Beta功能', 'desc': '抢先体验新功能'},
|
||||
{'icon': Icons.bug_report, 'title': '软件内测版', 'desc': '参与内测版本体验'},
|
||||
{'icon': Icons.science, 'title': '体验Beta功能', 'desc': '内测版本抢先体验'},
|
||||
{'icon': Icons.bug_report, 'title': '刷新次数', 'desc': '获得更多api调用次数'},
|
||||
{'icon': Icons.card_giftcard, 'title': '专属显示', 'desc': '获得不同的显示效果'},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user