net_aware 1.0.4 copy "net_aware: ^1.0.4" to clipboard
net_aware: ^1.0.4 copied to clipboard

A wrapper widget to detect no internet and block ui with an overlay.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return NetAware(
      child: Scaffold(
          appBar: AppBar(
            title: const Text('Net Aware'),
          ),
          body: const Center(
            child: Text('You are Online!'),
          ),
        ),

    );
  }
}
8
likes
140
points
36
downloads

Publisher

verified publisherfermioninfotech.com

Weekly Downloads

A wrapper widget to detect no internet and block ui with an overlay.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on net_aware