flml_internet_checker
このパッケージは、アプリ内での関数呼び出しを使わずに、単にウィジェットを InternetChecker ウィジェットでラップすることでインターネット接続をチェックすることを目的としています
FirstLogicMetaLabPvtLTD/flml_internet_checker open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter package to check your internet connection by just wrapping the Scaffold with InternetChecker Widget.
Add the following permissions to your AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />
Add the following permissions to your macOS .entitlements files:
<key>com.apple.security.network.client</key>
<true/>
Add the flml_internet_checker package to your pubspec.yaml file:
dependencies:
flml_internet_checker: ^1.0.0
Import the flml_internet_checker package into your Dart file:
import 'package:flml_internet_checker/flml_internet_checker.dart';
InternetChecker(
placeHolder: Lottie.asset(
"assets/no_internet.json",
height: 250,
),
internetConnectionText: "No Internet Connection",
child: const Scaffold(
body: Center(
child: Text("You are Online"),
),
),
);
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.
依存関係一覧 4 件
{"sdk":"flutter"}^2.7.0{"sdk":"flutter"}^2.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗