Merge pull request 'minor change' (#1) from development into main

Reviewed-on: http://192.168.50.12:3000/kishan.bhuta/Cheers_to_season_customer/pulls/1
This commit is contained in:
2024-03-26 12:18:08 +00:00

View File

@@ -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///////////");