Search packages, repositories and app categories

Package detailsv0.0.2

check_vpn_connection

A simple and lightweight Flutter package that lets you define VPN connection status on your devices.

AndroidiOSmacOSWindowsLinux
30-day downloads
3.1K
Likes
39
Pub points
160

Install package

flutter pub add check_vpn_connection

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter package for detecting VPN connection status across multiple platforms. It provides a simple API to check whether a device is currently connected to a VPN, enabling apps to respond dynamically to network conditions. Designed for developers who need reliable and consistent VPN status detection without complex setup. Works on Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform applications requiring network awareness.

Use cases

  • Detecting active VPN connections in real-time
  • Enabling or disabling features based on VPN status
  • Improving security by verifying network integrity
  • Supporting geo-restricted content access logic
  • Monitoring network environment changes

Key features

  • Cross-platform compatibility
  • Minimal API surface
  • Lightweight and fast
  • Supports Android, iOS, macOS, Windows, and Linux
  • Simple boolean result for VPN status

Suitable for

  • Network-aware applications
  • Security-focused apps
  • Geo-location services
  • Streaming or gaming apps with region checks
  • Apps requiring dynamic feature toggling

Considerations

  • Relies on platform-specific system APIs
  • May not detect all custom or third-party VPNs
  • No runtime configuration options
  • Limited to checking connection status, not managing VPNs
  • Accuracy depends on OS-level implementation

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

check_vpn_connection

License: MIT Pub

A simple and lightweight Flutter package that lets you define VPN connection status on your devices.

Note this plugin is in the early stages of development and has been poorly tested. You can use the plugin at your own risk.

How to use

You can get a VPN connection status, which is either true (vpn connected) or false (no vpn connection)


if (await CheckVpnConnection.isVpnActive()) {
  // do some action if VPN connection status is true
}

Also see our Example.

Issues

Please file any issues, bugs or feature request as an issue on our GitHub page.

Want to contribute

To contribute, follow the following easy steps

Step 1
  • Fork this repo!
Step 2
  • Make your own updates
Step 3
  • Create a new pull request

Categories

Source repository

Projects using this package

No data available yet.