パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v4.0.1

flml_internet_checker

このパッケージは、アプリ内での関数呼び出しを使わずに、単にウィジェットを InternetChecker ウィジェットでラップすることでインターネット接続をチェックすることを目的としています

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
704
いいね数
40
Pub ポイント
160

パッケージをインストール

flutter pub add flml_internet_checker

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flml_internet_checker パッケージは、任意のウィジェットを InternetChecker ウィジェットでラップすることで、Flutter アプリでのインターネット接続状態を簡単に監視できるようにします。アプリコード内で関数呼び出しを必要とせず、オンラインまたはオフライン状態を自動的に検出します。このパッケージは、Android、iOS、Web、macOS、Windows、Linux などのすべての主要プラットフォームで動作します。複雑なセットアップなしにリアルタイムのネットワークステータス更新が必要なアプリに最適です。軽量設計により、統合のしやすさと即時のフィードバックに焦点を当てています。

用途

  • リアルタイムネットワーク状態モニタリング
  • オフラインモードUIの処理
  • 接続性に基づく自動更新
  • アプリ動作の適応
  • 接続変更時のシームレスなユーザー体験

主な機能

  • ゼロ関数コール統合
  • 自動接続検出
  • クロスプラットフォーム対応
  • 最小限のボイラープレート
  • ウィジェットベースのラッパー手法

適している対象

  • シンプルな接続チェック
  • 即時のネットワークフィードバックを必要とするアプリ
  • 迅速な実装を求める開発者
  • オンライン/オフライン状態に応じて適応するUI
  • 最小限のネットワーク論理を備えたプロジェクト

注意事項

  • 基本的な接続状態に限定
  • 高度なネットワーク診断なし
  • システムレベルのネットワークAPIに依存しています
  • プロキシまたはファイアウォールのシナリオを処理しません
  • 接続品質のカスタマイズなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Internet connectivity checking package.

A Flutter package to check your internet connection by just wrapping the Scaffold with InternetChecker Widget.


Permissions

Android

Add the following permissions to your AndroidManifest.xml file:

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

Add the following permissions to your macOS .entitlements files:

<key>com.apple.security.network.client</key>
<true/>

Usage

1. Add dependency

Add the flml_internet_checker package to your pubspec.yaml file:

dependencies:
  flml_internet_checker: ^1.0.0
2. Import the package

Import the flml_internet_checker package into your Dart file:

import 'package:flml_internet_checker/flml_internet_checker.dart';
Example
InternetChecker(
      placeHolder: Lottie.asset(
        "assets/no_internet.json",
        height: 250,
      ),
      internetConnectionText: "No Internet Connection",
      child: const Scaffold(
        body: Center(
          child: Text("You are Online"),
        ),
      ),
    );

Credits

This package is a cloned and modified version of the internet_connection_checker_plus package.

The aim of this package is just to check the internet connectivity without putting the functions into the project and just wrap the widget with InternetChecker Widget.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。