wireguard_flutter_plus
1.0.9, released 6 weeks ago by orbaninfotech.com
A Flutter plugin for WireGuard VPN implementation across Android, iOS, macOS, Windows, and Linux.
What it does
A Flutter plugin that sets up and controls WireGuard VPN connections. It provides traffic statistics, tunnel management, split tunneling, and key generation across Android, iOS, macOS, Windows, and Linux.
AI-written summary of version 1.0.9, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to establish and manage WireGuard VPN connections in a Flutter app.
- You need real-time download and upload traffic statistics for active VPN sessions.
- You require cross-platform VPN support including desktop and mobile environments.
Skip it when
- Your app uses a different VPN protocol (e.g., OpenVPN) instead of WireGuard.
- You cannot perform platform-specific setup for native Network Extensions on Apple platforms.
Strengths
- Cross-platform support covering Android, iOS, macOS, Windows, and Linux.
- Real-time traffic statistics and connection stage streams.
- Modern support including Android 16KB page sizes.
Weaknesses
- Requires complex native configuration on Apple platforms (Network Extensions, App Groups).
- Desktop platforms require specific privileges or external tools (Admin privileges on Windows, wireguard-tools and openresolv on Linux).
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 3
Requires creating a Network Extension target and configuring App Groups in Xcode for iOS and macOS. Windows requires running as Administrator, and Linux requires installing wireguard-tools and openresolv.
import 'package:wireguard_flutter_plus/wireguard_flutter_plus.dart';
final wireguard = WireGuardFlutter.instance;
void initVpn() async {
await wireguard.initialize(
interfaceName: 'wg0',
vpnName: "Orban VPN",
);
}Alternatives
Packages that do the same job and could replace wireguard_flutter_plus.
- flutter_vless
Cross-platform Xray/V2Ray VPN and proxy plugin for Flutter apps.
77Compare
Works with
Packages commonly used together with wireguard_flutter_plus: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacewireguard_flutter_plus depends on itReusable base class for platform interfaces of Flutter federated plugins.
- path_providerwireguard_flutter_plus depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- process_runwireguard_flutter_plus depends on itRun shell scripts and locate executables across Linux, Windows and macOS.