2023-07-06 17:18:41 +03:30
|
|
|
import 'package:hiddify/services/connectivity/connectivity.dart';
|
|
|
|
|
import 'package:hiddify/services/files_editor_service.dart';
|
|
|
|
|
import 'package:hiddify/services/notification/notification.dart';
|
2023-08-19 22:27:23 +03:30
|
|
|
import 'package:hiddify/services/singbox/singbox_service.dart';
|
2023-07-06 17:18:41 +03:30
|
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
|
|
|
|
|
|
part 'service_providers.g.dart';
|
|
|
|
|
|
|
|
|
|
@Riverpod(keepAlive: true)
|
|
|
|
|
NotificationService notificationService(NotificationServiceRef ref) =>
|
|
|
|
|
NotificationService();
|
|
|
|
|
|
|
|
|
|
@Riverpod(keepAlive: true)
|
|
|
|
|
FilesEditorService filesEditorService(FilesEditorServiceRef ref) =>
|
|
|
|
|
FilesEditorService();
|
|
|
|
|
|
2023-08-19 22:27:23 +03:30
|
|
|
@Riverpod(keepAlive: true)
|
|
|
|
|
SingboxService singboxService(SingboxServiceRef ref) => SingboxService();
|
|
|
|
|
|
2023-07-06 17:18:41 +03:30
|
|
|
@Riverpod(keepAlive: true)
|
|
|
|
|
ConnectivityService connectivityService(ConnectivityServiceRef ref) =>
|
|
|
|
|
ConnectivityService(
|
2023-08-19 22:27:23 +03:30
|
|
|
ref.watch(singboxServiceProvider),
|
2023-07-06 17:18:41 +03:30
|
|
|
ref.watch(notificationServiceProvider),
|
|
|
|
|
);
|