vpn_notice 0.2.0
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 #
VpnNoticeSnackBarnow rendersVpnNoticeStyle.titleabove the message, on both Material and Cupertino, matchingVpnNoticeBanner/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 (CFNetworkCopySystemProxySettingsscoped-interface check), both implemented natively with no third-party plugin dependency. VpnNoticeController: a plainValueNotifier<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 ondefaultTargetPlatform.VpnNoticeBannerandVpnNoticeSnackBaruse anOverlayon iOS, so they don't require aScaffold/ScaffoldMessengerthere. VpnNoticeGatewidget for automatic "just show it" integration, with abuilderescape hatch for fully custom UI.