v0.0.3
sync_sphere
sync_sphereパッケージは、アプリ全体または特定の場所でのインターネット接続状態を簡単に確認するためのものです。インターネット接続を監視したいウィジェットをラップするだけで、あとは私たちにお任せください。
4いいね 1330日間ダウンロード110Pub ポイント
AndroidiOSWebmacOSWindowsLinux
接続状態を確認するためのFlutterパッケージ
^5.0.2{"sdk":"flutter"}^2.0.0{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter package for constant internet connectivity checking throughout the app.
sync_sphere package to your pubspec.yaml file:dependencies:
sync_sphere: ^0.0.3
flutter pub get
import 'package:sync_sphere/sync_sphere.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SyncSphere(
child: YourMainScreen(),
whenOffine: YourOfflineScreenWidget(),
),
);
}
}
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SyncSphere(
child: YourMainScreen(),
),
);
}
}