Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Add SharedPreferencesService to dependency injection system

hunteraraujo860f985e87cc
diff --git a/frontend/lib/main.dart b/frontend/lib/main.dart
index da026b6bfa..da8a576a3e 100644
--- a/frontend/lib/main.dart
+++ b/frontend/lib/main.dart
@@ -1,4 +1,5 @@
import 'package:auto_gpt_flutter_client/services/leaderboard_service.dart';
+import 'package:auto_gpt_flutter_client/services/shared_preferences_service.dart';
import 'package:auto_gpt_flutter_client/viewmodels/settings_viewmodel.dart';
import 'package:auto_gpt_flutter_client/viewmodels/task_queue_viewmodel.dart';
import 'package:auto_gpt_flutter_client/views/auth/firebase_auth_view.dart';
@@ -39,6 +40,9 @@ void main() async {
Provider(
create: (context) => RestApiUtility("http://127.0.0.1:8000/ap/v1"),
),
+ Provider(
+ create: (context) => SharedPreferencesService.instance,
+ ),
ProxyProvider<RestApiUtility, ChatService>(
update: (context, restApiUtility, chatService) =>
ChatService(restApiUtility),