fix linter rules and format files
This commit is contained in:
@@ -9,6 +9,7 @@ part 'start_tor_proxy.g.dart';
|
||||
|
||||
@Riverpod()
|
||||
class StartProxyController extends _$StartProxyController {
|
||||
// ignore: document_ignores is used for dialog
|
||||
// ignore: avoid_build_context_in_providers
|
||||
Future<void> maybeStartProxy(BuildContext context) async {
|
||||
final torProxyRunning = ref.read(torProxyServiceProvider);
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:flutter_background_service/flutter_background_service.dart';
|
||||
import 'package:tor/tor.dart';
|
||||
|
||||
@pragma('vm:entry-point')
|
||||
void onStart(ServiceInstance service) async {
|
||||
Future<void> onStart(ServiceInstance service) async {
|
||||
await Tor.init();
|
||||
|
||||
final portSub = Tor.instance.events.stream.listen((port) {
|
||||
|
||||
Reference in New Issue
Block a user