release
This commit is contained in:
@@ -150,10 +150,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
backgroundColor: AppColors.surface,
|
||||
elevation: 0,
|
||||
leading: IconButton(
|
||||
icon: Icon(
|
||||
Icons.arrow_back_ios,
|
||||
color: AppColors.primary,
|
||||
),
|
||||
icon: Icon(Icons.arrow_back_ios, color: AppColors.primary),
|
||||
onPressed: () => Navigator.pop(context),
|
||||
),
|
||||
title: Text(
|
||||
@@ -167,20 +164,14 @@ class _EntirePageState extends State<EntirePage>
|
||||
centerTitle: true,
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.info_outline,
|
||||
color: AppColors.primary,
|
||||
),
|
||||
icon: Icon(Icons.info_outline, color: AppColors.primary),
|
||||
onPressed: _showServerInfo,
|
||||
tooltip: '服务器信息',
|
||||
),
|
||||
],
|
||||
bottom: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(0.5),
|
||||
child: Container(
|
||||
height: 0.5,
|
||||
color: AppColors.divider,
|
||||
),
|
||||
child: Container(height: 0.5, color: AppColors.divider),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -417,10 +408,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
_errorMessage ?? '加载失败',
|
||||
style: TextStyle(
|
||||
color: AppColors.tertiaryText,
|
||||
fontSize: 14,
|
||||
),
|
||||
style: TextStyle(color: AppColors.tertiaryText, fontSize: 14),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
@@ -475,10 +463,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
padding: const EdgeInsets.all(20),
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
AppColors.primary,
|
||||
AppColors.primary.withValues(alpha: 0.8),
|
||||
],
|
||||
colors: [AppColors.primary, AppColors.primary.withValues(alpha: 0.8)],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
),
|
||||
@@ -590,13 +575,6 @@ class _EntirePageState extends State<EntirePage>
|
||||
|
||||
Widget _buildCountGrid(bool isDark) {
|
||||
final counts = [
|
||||
{
|
||||
'label': '项目',
|
||||
'value': _statsData?['count_category'] ?? 0,
|
||||
'icon': Icons.category,
|
||||
'color': AppColors.iosBlue,
|
||||
'showIcon': true,
|
||||
},
|
||||
{
|
||||
'label': '收录诗句',
|
||||
'value': _statsData?['count_site'] ?? 0,
|
||||
@@ -604,6 +582,31 @@ class _EntirePageState extends State<EntirePage>
|
||||
'color': AppColors.iosGreen,
|
||||
'showIcon': false,
|
||||
},
|
||||
|
||||
{
|
||||
'label': '诗词题目',
|
||||
'value': _statsData?['count_article_category'] ?? 0,
|
||||
'icon': Icons.folder,
|
||||
'color': AppColors.iosPink,
|
||||
'showIcon': false,
|
||||
},
|
||||
|
||||
{
|
||||
'label': '分类标签',
|
||||
'value': _statsData?['count_tags'] ?? 0,
|
||||
'icon': Icons.label,
|
||||
'color': const Color(0xFF64D2FF),
|
||||
'showIcon': false,
|
||||
},
|
||||
|
||||
{
|
||||
'label': '项目',
|
||||
'value': _statsData?['count_category'] ?? 0,
|
||||
'icon': Icons.category,
|
||||
'color': AppColors.iosBlue,
|
||||
'showIcon': true,
|
||||
},
|
||||
|
||||
{
|
||||
'label': '审核中',
|
||||
'value': _statsData?['count_apply'] ?? 0,
|
||||
@@ -625,13 +628,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
'color': AppColors.iosPurple,
|
||||
'showIcon': true,
|
||||
},
|
||||
{
|
||||
'label': '文章分类',
|
||||
'value': _statsData?['count_article_category'] ?? 0,
|
||||
'icon': Icons.folder,
|
||||
'color': AppColors.iosPink,
|
||||
'showIcon': true,
|
||||
},
|
||||
|
||||
{
|
||||
'label': '推送',
|
||||
'value': _statsData?['count_notice'] ?? 0,
|
||||
@@ -646,13 +643,6 @@ class _EntirePageState extends State<EntirePage>
|
||||
'color': AppColors.iosRed,
|
||||
'showIcon': true,
|
||||
},
|
||||
{
|
||||
'label': '分类标签',
|
||||
'value': _statsData?['count_tags'] ?? 0,
|
||||
'icon': Icons.label,
|
||||
'color': const Color(0xFF64D2FF),
|
||||
'showIcon': false,
|
||||
},
|
||||
];
|
||||
|
||||
return GridView.builder(
|
||||
@@ -739,10 +729,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
child: Center(
|
||||
child: Text(
|
||||
label,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: AppColors.secondaryText,
|
||||
),
|
||||
style: TextStyle(fontSize: 12, color: AppColors.secondaryText),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -974,11 +961,7 @@ class _EntirePageState extends State<EntirePage>
|
||||
color: AppColors.primary.withValues(alpha: 0.1),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.cake,
|
||||
color: AppColors.primary,
|
||||
size: 20,
|
||||
),
|
||||
child: Icon(Icons.cake, color: AppColors.primary, size: 20),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
|
||||
Reference in New Issue
Block a user