From ff96fb6c4c8f2896139b96b72fa2d3ae7a3eca69 Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Wed, 3 Jun 2026 20:20:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=E8=BF=90=E5=8A=A8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=20Provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 exerciseServiceProvider(之前缺失导致运动页加载失败) --- health_app/lib/providers/data_providers.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/health_app/lib/providers/data_providers.dart b/health_app/lib/providers/data_providers.dart index a89cdf9..755118d 100644 --- a/health_app/lib/providers/data_providers.dart +++ b/health_app/lib/providers/data_providers.dart @@ -2,6 +2,10 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'auth_provider.dart'; import '../services/health_service.dart'; +final exerciseServiceProvider = Provider((ref) { + return ExerciseService(ref.watch(apiClientProvider)); +}); + /// 健康数据服务 final healthServiceProvider = Provider((ref) { return HealthService(ref.watch(apiClientProvider));