flml_internet_checker
此套件旨在僅透過將組件包裝在 InternetChecker 組件中來檢查網路連接,而無需在您的應用程式內使用任何函數呼叫
FirstLogicMetaLabPvtLTD/flml_internet_checker open-source repository details.
{"sdk":"flutter"}^2.7.0{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 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.