Skip to content
pubscout

flutter_socks_proxy

0.0.3, released 3 years ago by an unverified publisher

HTTP, SOCKS4, and SOCKS5 proxy support for Flutter and Dart applications.

$ flutter pub add flutter_socks_proxy
Source repository

What it does

It allows developers to route Dart and Flutter HTTP requests through HTTP, SOCKS4, or SOCKS5 proxies either globally or independently per HttpClient instance.

AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to route HTTP traffic through a SOCKS4, SOCKS5, or HTTP proxy.
  • You want to configure proxies globally or create independent proxy-enabled HttpClients.

Skip it when

  • You do not need proxy support.
  • You require complex higher-level networking features provided by other full-featured networking libraries.

Strengths

  • Supports multiple proxy protocols (HTTP, SOCKS4, SOCKS5).
  • Provides both global and independent client configuration options.

Weaknesses

  • Minimal documentation and usage examples.
  • Changelog entries are incomplete placeholders.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

import 'dart:convert';
import 'dart:io';
import 'package:flutter_socks_proxy/socks_proxy.dart';

void main() async {
  SocksProxy.initProxy(proxy: 'SOCKS5 192.168.31.180:7891');
  final client = HttpClient();
  var request = await client.getUrl(Uri.parse('https://example.com'));
  var response = await request.close();
}

Alternatives

Packages that do the same job and could replace flutter_socks_proxy.

  • dio

    A powerful HTTP client for Dart, which supports interceptors, global configuration, and custom adapters.