Flutter_offline

✈️ A tidy utility to handle offline/online connectivity like a Boss
Alternatives To Flutter_offline
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Reactivenetwork2,508
756 months ago28September 17, 201936apache-2.0Java
Android library listening network connection state and Internet connectivity with RxJava Observables
Connectivity1,566
483 months ago29July 07, 2020mitSwift
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Is Online1,1641,0612032 months ago34June 06, 20223mitJavaScript
Check if the internet connection is up
Flutter_offline807
910 months ago11February 07, 202216mitDart
✈️ A tidy utility to handle offline/online connectivity like a Boss
Merlin548
a year ago1May 14, 2014otherJava
Observes network connection status & gives callbacks
Lambdanet376
7 years ago5mitHaskell
Purely functional artificial neural network library implemented in Haskell.
Is Reachable344279101a year ago20June 15, 20228mitJavaScript
Check if servers are reachable
Throttle240122a year ago39July 02, 202212mitJavaScript
Throttle your network connection [Linux/Mac OS X]
Tapioca172
a year agootherPython
CERT Tapioca for MITM network analysis
Aioice841022 months ago47January 24, 202212bsd-3-clausePython
asyncio-based Interactive Connectivity Establishment (RFC 5245)
Alternatives To Flutter_offline
Select To Compare


Alternative Project Comparisons
Readme

✈️ Flutter Offline

Format, Analyze and Test codecov pub package

A tidy utility to handle offline/online connectivity like a Boss. It provides support for both iOS and Android platforms (offcourse).

🎖 Installing

dependencies:
  flutter_offline: "^2.1.0"

⚡️ Import

import 'package:flutter_offline/flutter_offline.dart';

✔ Add Permission to Manifest

<uses-permission android:name="android.permission.INTERNET"/>

🎮 How To Use

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

class DemoPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Offline Demo"),
      ),
      body: OfflineBuilder(
        connectivityBuilder: (
          BuildContext context,
          ConnectivityResult connectivity,
          Widget child,
        ) {
          final bool connected = connectivity != ConnectivityResult.none;
          return new Stack(
            fit: StackFit.expand,
            children: [
              Positioned(
                height: 24.0,
                left: 0.0,
                right: 0.0,
                child: Container(
                  color: connected ? Color(0xFF00EE44) : Color(0xFFEE4400),
                  child: Center(
                    child: Text("${connected ? 'ONLINE' : 'OFFLINE'}"),
                  ),
                ),
              ),
              Center(
                child: new Text(
                  'Yay!',
                ),
              ),
            ],
          );
        },
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            new Text(
              'There are no bottons to push :)',
            ),
            new Text(
              'Just turn off your internet.',
            ),
          ],
        ),
      ),
    );
  }
}

For more info, please, refer to the main.dart in the example.

📷 Screenshots

🐛 Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

❗️ Note

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

🤓 Mentions

Simon Lightfoot (@slightfoot) is just awesome 👍.

⭐️ License

MIT License

Popular Connectivity Projects
Popular Network Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Dart
Network
Flutter
Offline
Connectivity
Dartlang