native_flutter_proxy 0.1.5
native_flutter_proxy: ^0.1.5 copied to clipboard
A flutter plugin to read network proxy info from native. It can be used to set up the network proxy for flutter. The plugin provides classes to provide the HttpOverrides.global property with a proxy s [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add native_flutter_proxy
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
native_flutter_proxy: ^0.1.5
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:native_flutter_proxy/custom_proxy.dart';
import 'package:native_flutter_proxy/custom_proxy_override.dart';
import 'package:native_flutter_proxy/native_proxy_reader.dart';