internet_checker_plus 1.0.3 copy "internet_checker_plus: ^1.0.3" to clipboard
internet_checker_plus: ^1.0.3 copied to clipboard

A Flutter plugin to detect real internet availability and (poor, unstable, warn, stable) using latency and network behavior

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:internet_checker_plus/internet_checker_plus.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Internet Checker Plus')),
        body: Center(
          child: StreamBuilder(
            stream: InternetCheckerPlus.onStatusChange(),
            builder: (context, snapshot) {
              if (!snapshot.hasData) {
                return const CircularProgressIndicator();
              }
              return Text(
                snapshot.data.toString(),
                style: const TextStyle(fontSize: 20),
              );
            },
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
74
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect real internet availability and (poor, unstable, warn, stable) using latency and network behavior

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on internet_checker_plus