DiscoverModule/lib/contacts_module/ui_screen/internetcheck.dart

39 lines
1.2 KiB
Dart
Raw Permalink Normal View History

2024-11-22 10:38:43 +00:00
// import 'package:connectivity_plus/connectivity_plus.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
// class checkinter extends StatefulWidget {
// const checkinter({super.key});
// @override
// State<checkinter> createState() => _checkinterState();
// }
// class _checkinterState extends State<checkinter> {
// @override
// Widget build(BuildContext context) {
// return const Placeholder();
// }
// }
// final Connectivity _connectivity = Connectivity();
// get developer => null;
// Future<void> initConnectivitycheck() async {
// late List<ConnectivityResult> result;
// // Platform messages may fail, so we use a try/catch PlatformException.
// try {
// result = await _connectivity.checkConnectivity();
// } on PlatformException catch (e) {
// developer.log('Couldn\'t check connectivity status', error: e);
// return;
// }
// // If the widget was removed from the tree while the asynchronous platform
// // message was in flight, we want to discard the reply rather than calling
// // setState to update our non-existent appearance.
// if (!mounted) {
// return Future.value(null);
// }
// return _updateConnectionStatus(result);
// }