feat: 侧边栏重设计 - 彩色分区卡片+动画入场

This commit is contained in:
MingNian
2026-06-03 21:29:47 +08:00
parent f6c1ea7ec9
commit 5bd0155e17
8 changed files with 737 additions and 562 deletions

View File

@@ -38,7 +38,7 @@ class ProfileDetailPage extends ConsumerWidget {
const SizedBox(height: 4),
Text('(最近测量)', style: TextStyle(fontSize: 13, color: Colors.grey[500])),
const SizedBox(height: 16),
healthData.when(data: (data) => _buildMetricsList(data), loading: () => const Center(child: Padding(padding: EdgeInsets.all(24), child: CircularProgressIndicator(strokeWidth: 2, color: Color(0xFF8B9CF7)))), error: (_, __) => _buildMetricsEmpty()),
healthData.when(data: (data) => _buildMetricsList(data), loading: () => const Center(child: Padding(padding: EdgeInsets.all(24), child: CircularProgressIndicator(strokeWidth: 2, color: Color(0xFF8B9CF7)))), error: (_, e) => _buildMetricsEmpty()),
]),
);
}