connectivity_for_web 0.4.0+1 copy "connectivity_for_web: ^0.4.0+1" to clipboard
connectivity_for_web: ^0.4.0+1 copied to clipboard

discontinued
Platformweb

An implementation for the web platform of the Flutter `connectivity` plugin. This uses the NetworkInformation Web API, with a fallback to Navigator.onLine.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add connectivity_for_web
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  connectivity_for_web: ^0.4.0+1
copied to clipboard

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:connectivity_for_web/connectivity_for_web.dart';
copied to clipboard
12
likes
140
points
1.4k
downloads

Publisher

verified publisherflutter.dev

Weekly Downloads

2024.09.20 - 2025.04.04

An implementation for the web platform of the Flutter `connectivity` plugin. This uses the NetworkInformation Web API, with a fallback to Navigator.onLine.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

connectivity_platform_interface, flutter, flutter_web_plugins

More

Packages that depend on connectivity_for_web