All Projects → jogboms → Flutter_offline

jogboms / Flutter_offline

Licence: mit
✈️ A tidy utility to handle offline/online connectivity like a Boss

Programming Languages

dart
5743 projects
dartlang
94 projects

Projects that are alternatives of or similar to Flutter offline

Is Reachable
Check if servers are reachable
Stars: ✭ 249 (-61.34%)
Mutual labels:  network, connectivity
Is Online
Check if the internet connection is up
Stars: ✭ 894 (+38.82%)
Mutual labels:  network, connectivity
Qtexamples
Qt 的 GUI 控件使用和网络;DTK 重绘控件方式的框架架构解析;Qt 原理/运行机制理解;QtCrator 使用和一些小技巧;系列文章教程
Stars: ✭ 494 (-23.29%)
Mutual labels:  network
Front End Learning To Organize Notes
☀小狮子前端の学习☁整理笔记❤ Front-end-learning-to-organize-notes 帮你整理好前端知识体系、更高效地吸收经验成果;另附小狮子前端进阶小册食用指北,敬请关注!
Stars: ✭ 593 (-7.92%)
Mutual labels:  network
Invoke Socksproxy
Socks proxy, and reverse socks server using powershell.
Stars: ✭ 540 (-16.15%)
Mutual labels:  network
Katanaframework
The New Hacking Framework
Stars: ✭ 502 (-22.05%)
Mutual labels:  network
Netzob
Netzob: Protocol Reverse Engineering, Modeling and Fuzzing
Stars: ✭ 584 (-9.32%)
Mutual labels:  network
Fieldtrip
The MATLAB toolbox for MEG, EEG and iEEG analysis
Stars: ✭ 481 (-25.31%)
Mutual labels:  connectivity
Grassmarlin
Provides situational awareness of Industrial Control Systems (ICS) and Supervisory Control and Data Acquisition (SCADA) networks in support of network security assessments. #nsacyber
Stars: ✭ 621 (-3.57%)
Mutual labels:  network
Docker Timemachine
A docker container that compiles the lastest Netatalk to run a Time Machine server.
Stars: ✭ 542 (-15.84%)
Mutual labels:  network
Batfish
Batfish is a network configuration analysis tool that can find bugs and guarantee the correctness of (planned or current) network configurations. It enables network engineers to rapidly and safely evolve their network, without fear of outages or security breaches.
Stars: ✭ 592 (-8.07%)
Mutual labels:  network
Lua Http
HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
Stars: ✭ 540 (-16.15%)
Mutual labels:  network
Tcconfig
A tc command wrapper. Make it easy to set up traffic control of network bandwidth/latency/packet-loss/packet-corruption/etc. to a network-interface/Docker-container(veth).
Stars: ✭ 510 (-20.81%)
Mutual labels:  network
Sonobus
Source code for SonoBus, a real-time network audio streaming collaboration tool.
Stars: ✭ 586 (-9.01%)
Mutual labels:  network
React Adaptive Hooks
Deliver experiences best suited to a user's device and network constraints
Stars: ✭ 4,750 (+637.58%)
Mutual labels:  network
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+730.12%)
Mutual labels:  network
Fatt
FATT /fingerprintAllTheThings - a pyshark based script for extracting network metadata and fingerprints from pcap files and live network traffic
Stars: ✭ 490 (-23.91%)
Mutual labels:  network
Merlin
Observes network connection status & gives callbacks
Stars: ✭ 536 (-16.77%)
Mutual labels:  connectivity
Heim
Cross-platform async library for system information fetching 🦀
Stars: ✭ 572 (-11.18%)
Mutual labels:  network
Netspeedmonitor
This is a net speed monitor just like 360 for windows user.
Stars: ✭ 626 (-2.8%)
Mutual labels:  network

✈️ Flutter Offline

Build Status - Travis 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.0.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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].