Refactor
This commit is contained in:
12
lib/features/proxy/data/proxy_data_providers.dart
Normal file
12
lib/features/proxy/data/proxy_data_providers.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
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),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user