check_internet_active 0.0.2 copy "check_internet_active: ^0.0.2" to clipboard
check_internet_active: ^0.0.2 copied to clipboard

A plugin can auto detec the internet is online or offline.

example/lib/main.dart

import 'package:check_internet_active_example/no_internet_widget.dart';
import 'package:flutter/material.dart';
import 'package:check_internet_active/check_internet_active.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: StreamInternetStatus(onlineChild: Container(
          child: Center(child: Text('Normal Screen')),
        ), offlineChild: const NoInterNetWidget()),
      ),
    );
  }
}
3
likes
0
points
17
downloads

Publisher

verified publisherit36vn.com

Weekly Downloads

A plugin can auto detec the internet is online or offline.

License

unknown (license)

Dependencies

connectivity_plus, flutter, plugin_platform_interface, provider

More

Packages that depend on check_internet_active

Packages that implement check_internet_active