From bb5d03ecbec444a954010a87aa80b08a590186c2 Mon Sep 17 00:00:00 2001 From: Chris Gu Date: Wed, 25 Oct 2023 17:39:33 -0400 Subject: [PATCH 1/2] debug comments --- game/lib/api/geopoint.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/lib/api/geopoint.dart b/game/lib/api/geopoint.dart index b2d6ef95..22f5b6cd 100644 --- a/game/lib/api/geopoint.dart +++ b/game/lib/api/geopoint.dart @@ -22,12 +22,13 @@ class GeoPoint { // Location services are not enabled don't continue // accessing the position and request users of the // App to enable the location services. + print('location disabled'); return Future.error('Location services are disabled.'); } if (_isRequestingLocationPermissions || _isRequestingLocation) { //To handle the case where a request is already occuring. - + print('request occuring'); return null; } From 55ef18b966349163c352028f26322d07ef72a442 Mon Sep 17 00:00:00 2001 From: Chris Gu Date: Thu, 2 Nov 2023 17:30:23 -0400 Subject: [PATCH 2/2] Updating libraries and flutter from older PR fixed the connectivity issues of this PR --- game/lib/api/geopoint.dart | 2 -- game/lib/main.dart | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/game/lib/api/geopoint.dart b/game/lib/api/geopoint.dart index 22f5b6cd..b18ab5fa 100644 --- a/game/lib/api/geopoint.dart +++ b/game/lib/api/geopoint.dart @@ -22,13 +22,11 @@ class GeoPoint { // Location services are not enabled don't continue // accessing the position and request users of the // App to enable the location services. - print('location disabled'); return Future.error('Location services are disabled.'); } if (_isRequestingLocationPermissions || _isRequestingLocation) { //To handle the case where a request is already occuring. - print('request occuring'); return null; } diff --git a/game/lib/main.dart b/game/lib/main.dart index 518722f8..04863691 100644 --- a/game/lib/main.dart +++ b/game/lib/main.dart @@ -78,7 +78,7 @@ class MyApp extends StatelessWidget { ], supportedLocales: const [Locale('en', '')], theme: ThemeData(primarySwatch: Colors.blue), - home: BottomNavBar(), + home: SplashPageWidget(), ))); } }