feat:更新好友菜谱功能

This commit is contained in:
2026-06-28 19:54:32 +08:00
parent a340ba424e
commit c10e8e5ffb
13 changed files with 67 additions and 29 deletions

View File

@@ -40,6 +40,7 @@ class _StatsPage extends State<StatsPage> {
GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
padding: EdgeInsetsGeometry.all(10),
child: StatsCard(
icon: Icons.restaurant_menu,
title: '菜谱总数',
@@ -50,6 +51,7 @@ class _StatsPage extends State<StatsPage> {
GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
padding: EdgeInsetsGeometry.all(10),
child: StatsCard(
icon: Icons.grid_view_rounded,
title: '菜谱类别',
@@ -60,6 +62,7 @@ class _StatsPage extends State<StatsPage> {
GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
padding: EdgeInsetsGeometry.all(10),
child: StatsCard(
icon: Icons.flag,
title: '做菜次数',
@@ -70,6 +73,7 @@ class _StatsPage extends State<StatsPage> {
GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
padding: EdgeInsetsGeometry.all(10),
child: StatsCard(
icon: Icons.show_chart,
title: '平均次数',
@@ -116,13 +120,10 @@ class _StatsPage extends State<StatsPage> {
),
),
SizedBox(height: 8),
SizedBox(
height: chartHeight,
child: GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
child: RankChart(title: '排行榜', data: provider.rankStats, unit: ''),
),
GlassCard(
useOwnLayer: true,
settings: LiquidGlassSettings(glassColor: colors.surface),
child: RankChart(title: '排行榜', data: provider.rankStats, unit: ''),
),
],
);