Skip to content
pubscout

system_proxy

0.1.0, released 5 years ago by an unverified publisher

A Flutter plugin to retrieve system proxy settings for Dart HttpClient.

$ flutter pub add system_proxy
Source repository

What it does

Retrieves the device's system proxy settings so you can configure Dart's HttpClient to route traffic through a proxy. This makes it easier to inspect and grab HTTP requests for testing.

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

Use it when

  • You need to grab and test Dart HttpClient requests using a network proxy tool
  • You want to automatically adapt to system proxy settings on Android and iOS

Skip it when

  • Targeting Android versions below 23
  • You are not using Dart's HttpClient or need a completely custom proxy solution without system lookup

Strengths

  • Solves the specific problem of Dart HttpClient ignoring system proxy settings by default
  • Simple API to get host and port settings

Weaknesses

  • Limited to Android >= 23 and iOS
  • Basic features with no extensive configuration options documented

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Useful for Android >= 23.

Map<String, String> proxy = await SystemProxy.getProxySettings();
if (proxy != null) {
    print('proxy $proxy');
}

Alternatives

Packages that do the same job and could replace system_proxy.