vpn_notice 0.2.0 copy "vpn_notice: ^0.2.0" to clipboard
vpn_notice: ^0.2.0 copied to clipboard

Detect active VPN connections and show a customizable notice — banner, snackbar, dialog, or bottom sheet — with zero third-party Dart dependencies.

0.2.0 #

  • VpnNoticeSnackBar now renders VpnNoticeStyle.title above the message, on both Material and Cupertino, matching VpnNoticeBanner/VpnNoticeDialog/VpnNoticeBottomSheet. Previously the title was silently dropped by this presentation.

0.1.1 #

  • Fix README links and screenshot rendering on pub.dev.

0.1.0 #

  • Initial release.
  • VPN detection on Android (NetworkCapabilities.TRANSPORT_VPN + network-interface fallback) and iOS (CFNetworkCopySystemProxySettings scoped-interface check), both implemented natively with no third-party plugin dependency.
  • VpnNoticeController: a plain ValueNotifier<bool>, no state-management package required.
  • Four built-in, fully customizable, platform-adaptive presentations: VpnNoticeBanner (persistent banner or inline widget), VpnNoticeSnackBar, VpnNoticeDialog, VpnNoticeBottomSheet. Each renders native Cupertino chrome on iOS and Material 3 elsewhere, based on defaultTargetPlatform. VpnNoticeBanner and VpnNoticeSnackBar use an Overlay on iOS, so they don't require a Scaffold/ScaffoldMessenger there.
  • VpnNoticeGate widget for automatic "just show it" integration, with a builder escape hatch for fully custom UI.
2
likes
160
points
136
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Detect active VPN connections and show a customizable notice — banner, snackbar, dialog, or bottom sheet — with zero third-party Dart dependencies.

Repository (GitHub)
View/report issues

Topics

#vpn #networking #banner #notification

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on vpn_notice

Packages that implement vpn_notice