{"id":25714008,"url":"https://github.com/amirbayat0/location-tracking-flutter","last_synced_at":"2026-05-07T02:31:25.831Z","repository":{"id":277974463,"uuid":"934101970","full_name":"AmirBayat0/Location-Tracking-Flutter","owner":"AmirBayat0","description":"A simple Flutter app that fetches the user's real-time location, including latitude, longitude, city, and country, using the Geolocator package. Works on Android \u0026 iOS! 🚀","archived":false,"fork":false,"pushed_at":"2025-02-17T09:38:00.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T10:28:58.301Z","etag":null,"topics":["app-developer","dart","flutter","flutter-examples","flutter-geocoding","flutter-geolocator","flutter-location","location-services","location-tracking","real-time-location"],"latest_commit_sha":null,"homepage":"https://youtu.be/_1owbJE5Zpc?si=c6zIknhEeCFnpI6k","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmirBayat0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-17T09:25:36.000Z","updated_at":"2025-02-17T09:39:38.000Z","dependencies_parsed_at":"2025-02-17T10:39:31.726Z","dependency_job_id":null,"html_url":"https://github.com/AmirBayat0/Location-Tracking-Flutter","commit_stats":null,"previous_names":["amirbayat0/location-tracking-flutter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirBayat0%2FLocation-Tracking-Flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirBayat0%2FLocation-Tracking-Flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirBayat0%2FLocation-Tracking-Flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirBayat0%2FLocation-Tracking-Flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmirBayat0","download_url":"https://codeload.github.com/AmirBayat0/Location-Tracking-Flutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240666183,"owners_count":19837853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-developer","dart","flutter","flutter-examples","flutter-geocoding","flutter-geolocator","flutter-location","location-services","location-tracking","real-time-location"],"created_at":"2025-02-25T12:27:48.209Z","updated_at":"2026-05-07T02:31:25.786Z","avatar_url":"https://github.com/AmirBayat0.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Flutter User Location App\n## 🚀 Get the user's real-time location (latitude, longitude, city, and country) using Flutter and the Geolocator package!\n\n### [Watch on YouTube](https://youtu.be/_1owbJE5Zpc)\n[![Main](https://img.youtube.com/vi/_1owbJE5Zpc/0.jpg)](https://www.youtube.com/watch?v=_1owbJE5Zpc)\n\n\n\n## ✨ Features\n* ✅ Fetch real-time latitude \u0026 longitude of the user.\n* ✅ Convert coordinates to city, country, and full address.\n* ✅ Auto-refresh location on startup \u0026 via button press.\n* ✅ Cupertino-style loading indicator for a smooth UI experience.\n* ✅ Works on Android, iOS, and Web.\n\n\n## 🚀 Getting Started\n1️⃣ Clone the repository\n ```\ngit clone https://github.com/your-username/flutter-user-location.git\ncd flutter-user-location\n ```\n\n2️⃣ Install dependencies\n ```\nflutter pub get\n ```\n\n3️⃣ Run the app\n ```\nflutter run\n ```\n\n## 🛠️ Setup \u0026 Permissions\n\n📌 Android\nAdd the following permissions to your AndroidManifest.xml:\n ```\n\u003cuses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/\u003e\n\u003cuses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/\u003e\n ```\n\n📌 iOS\nUpdate your Info.plist:\n ```\n\u003ckey\u003eNSLocationWhenInUseUsageDescription\u003c/key\u003e\n\u003cstring\u003eWe need your location to show relevant data\u003c/string\u003e\n\u003ckey\u003eNSLocationAlwaysUsageDescription\u003c/key\u003e\n\u003cstring\u003eWe need your location even when the app is in the background\u003c/string\u003e\n ```\n\n## 🏗️ Project Structure\n\n ```\n📂 lib/\n ┣ 📜 main.dart           // Entry point of the app\n ┣ 📜 final_view.dart     // Main screen UI \u0026 logic\n ┣ 📜 location_helper.dart // Handles location fetching \u0026 processing\n ```\n\n## 📜 Code Overview\n\n🔹 Fetch User Location\n ```\nPosition position = await Geolocator.getCurrentPosition(\n    desiredAccuracy: LocationAccuracy.high,\n);\n ```\n\n🔹 Convert Coordinates to City \u0026 Country\n ```\nList\u003cPlacemark\u003e placemarks = await placemarkFromCoordinates(\n    position.latitude, position.longitude,\n);\n ```\n\n🔹 Display Location in UI\n ```\nsetState(() {\n  userLocation = 'City: ${place.locality}, Country: ${place.country}';\n});\n ```\n \n## 📌 Contribution\nWant to contribute? Feel free to fork this repo and submit a PR! 🚀\n\n## 🏆 Show Some Love\n⭐ Star this repo if you like it!🐦 Follow me on Twitter for more cool projects!\n\n## 📜 License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirbayat0%2Flocation-tracking-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirbayat0%2Flocation-tracking-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirbayat0%2Flocation-tracking-flutter/lists"}