Compare commits
2 Commits
b79bb410c4
...
8254c378fe
| Author | SHA1 | Date | |
|---|---|---|---|
| 8254c378fe | |||
|
|
b3c8c12047 |
@@ -71,7 +71,6 @@ class _MyAppState extends State<MyApp> {
|
||||
setState(() {
|
||||
_connectionStatus = connectivityResult;
|
||||
print("has internet");
|
||||
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
@@ -81,6 +80,7 @@ class _MyAppState extends State<MyApp> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> initConnectivity() async {
|
||||
late ConnectivityResult result;
|
||||
// Platform messages may fail, so we use a try/catch PlatformException.
|
||||
@@ -115,6 +115,7 @@ class _MyAppState extends State<MyApp> {
|
||||
//_connectionStatus==ConnectivityResult.none?RouteName.nointernet:
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
//checkInternet();
|
||||
@@ -123,24 +124,16 @@ class _MyAppState extends State<MyApp> {
|
||||
|
||||
_connectivitySubscription =
|
||||
_connectivity.onConnectivityChanged.listen(_updateConnectionStatus);
|
||||
/* Future.delayed(Duration(seconds: 2), () async {
|
||||
if (_connectionStatus == ConnectivityResult.none) {
|
||||
await Get.to(NoInternet());
|
||||
print("aaaaaaaaaaa");
|
||||
} else {
|
||||
print("rrrr");
|
||||
}
|
||||
});
|
||||
*/ // TODO: implement initState
|
||||
print("minor change for git");
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_connectivitySubscription.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
//String? token="//";
|
||||
// This widget is the root of your application.
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
print("////////////////connectionstring///////////");
|
||||
|
||||
Reference in New Issue
Block a user