关怀模式
This commit is contained in:
@@ -205,7 +205,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: const Text('配置数据已清空,请重新启动应用'),
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: _themeController.currentThemeColor,
|
||||
duration: const Duration(seconds: 3),
|
||||
),
|
||||
);
|
||||
@@ -348,7 +348,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: const Text('缓存已清空'),
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: _themeController.currentThemeColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -415,7 +415,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
title.contains('⚠️') ? Icons.warning : Icons.help_outline,
|
||||
color: title.contains('⚠️')
|
||||
? Colors.orange
|
||||
: AppConstants.primaryColor,
|
||||
: _themeController.currentThemeColor,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(child: Text(title, style: const TextStyle(fontSize: 18))),
|
||||
@@ -432,7 +432,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: title.contains('危险') || title.contains('再次')
|
||||
? Colors.red
|
||||
: AppConstants.primaryColor,
|
||||
: _themeController.currentThemeColor,
|
||||
foregroundColor: Colors.white,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
@@ -489,7 +489,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(message),
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: _themeController.currentThemeColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -498,6 +498,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Obx(() {
|
||||
final isDark = _themeController.isDarkMode;
|
||||
final primaryColor = _themeController.currentThemeColor;
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: isDark
|
||||
@@ -508,9 +509,7 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
'应用数据',
|
||||
style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: isDark
|
||||
? const Color(0xFF2A2A2A)
|
||||
: AppConstants.primaryColor,
|
||||
backgroundColor: isDark ? const Color(0xFF2A2A2A) : primaryColor,
|
||||
iconTheme: IconThemeData(color: Colors.white),
|
||||
),
|
||||
body: _isLoading
|
||||
@@ -551,14 +550,14 @@ class _AppDataPageState extends State<AppDataPage> {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.1),
|
||||
color: _themeController.currentThemeColor.withAlpha(10),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(16),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.storage, color: AppConstants.primaryColor),
|
||||
Icon(Icons.storage, color: _themeController.currentThemeColor),
|
||||
const SizedBox(width: 8),
|
||||
const Text(
|
||||
'数据概览',
|
||||
|
||||
Reference in New Issue
Block a user