hotfix/fix-upgrade #50

Merged
v4l3n71n merged 16 commits from hotfix/fix-upgrade into main 2025-09-05 21:32:29 +00:00
334 changed files with 18270 additions and 34 deletions
Showing only changes of commit 89c5e1aa6c - Show all commits

View File

@@ -105,6 +105,11 @@ class _MapboxPagesState extends State<MapboxPages> with ShowAlertDialog {
} }
Future<void> _getUserLocation() async { Future<void> _getUserLocation() async {
await dotenv.load(fileName: ".env");
// Set the access token globally
mapbox.MapboxOptions.setAccessToken(
dotenv.env['MAPBOX_ACCESS_TOKEN'] ?? '');
try { try {
bool serviceEnabled = await geo.Geolocator.isLocationServiceEnabled(); bool serviceEnabled = await geo.Geolocator.isLocationServiceEnabled();
if (!serviceEnabled) return; if (!serviceEnabled) return;