13 lines
411 B
Dart
13 lines
411 B
Dart
|
|
import 'package:hiddify/features/proxy/data/proxy_repository.dart';
|
||
|
|
import 'package:hiddify/singbox/service/singbox_service_provider.dart';
|
||
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||
|
|
|
||
|
|
part 'proxy_data_providers.g.dart';
|
||
|
|
|
||
|
|
@Riverpod(keepAlive: true)
|
||
|
|
ProxyRepository proxyRepository(ProxyRepositoryRef ref) {
|
||
|
|
return ProxyRepositoryImpl(
|
||
|
|
singbox: ref.watch(singboxServiceProvider),
|
||
|
|
);
|
||
|
|
}
|