Skip to content
pubscout

flml_internet_checker

4.0.1, released 3 weeks ago by an unverified publisher

Zero-dependency internet connectivity checker with blocking screens and banners.

WASM-ready
$ flutter pub add flml_internet_checker
Source repository

What it does

Monitors real internet access using parallel TCP handshakes and DNS probes. Provides global app wrappers, local widgets, and banners to handle offline states without losing app navigation state.

AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect actual internet reachability rather than just local Wi-Fi or cellular connection status.
  • You want to automatically show blocking offline pages or floating banners when the connection drops.
  • You need WASM and cross-platform support with zero external dependencies.

Skip it when

  • You only need basic device connectivity notifications and prefer a native platform plugin like connectivity_plus.
  • Your environment blocks outgoing TCP and HTTP probes.

Strengths

  • Zero external dependencies and pure Dart implementation with WASM support.
  • Preserves app navigation stack and form state while offline.
  • Parallel probing avoids DNS-cache false positives and detects offline state quickly.

Weaknesses

  • Relies on external hosts and IP addresses for probing, which might require CSP configurations on web or custom health checks for restricted networks.
  • Periodic polling can consume battery if not carefully managed.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Requires adding the INTERNET permission on Android and the network client entitlement on macOS.

MaterialApp(
  navigatorObservers: [InternetCheckerObserver()],
  builder: (context, child) => InternetChecker(child: child!),
  home: const HomeScreen(),
)

Alternatives

Packages that do the same job and could replace flml_internet_checker.

  • connectivity_plus

    Pick connectivity_plus if you need standard platform-level connection type updates (Wi-Fi, mobile, ethernet) rather than real reachability probing.