http_proxy 0.0.1 http_proxy: ^0.0.1 copied to clipboard
http proxy plugin.
http_proxy #
http_proxy get the proxy settings of mobile device automatically,and set up proxy for http.
Getting Started #
You should initialize before runapp().
void main() async {
if (kReleaseMode) {
runApp(MyApp());
} else {
WidgetsFlutterBinding.ensureInitialized();
HttpProxy httpProxy = await HttpProxy.createHttpProxy();
proxyHost = httpProxy.host;
proxyPort = httpProxy.port;
HttpOverrides.runWithHttpOverrides(() => runApp(MyApp()), httpProxy);
}
}
That's all done.You can use Charles or other proxy tools now.