diff --git a/.flutter-plugins b/.flutter-plugins index 509ce2e..f6ca326 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,32 +1,32 @@ # This is a generated file; do not edit or check into version control. -camera=/Users/bijoy/.pub-cache/hosted/pub.dev/camera-0.11.0+1/ -camera_android_camerax=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.7+1/ -camera_avfoundation=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17/ -camera_web=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.4/ +camera=/Users/bijoy/.pub-cache/hosted/pub.dev/camera-0.11.0+2/ +camera_android_camerax=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.10/ +camera_avfoundation=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/ +camera_web=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.5/ flutter_compass=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/ -flutter_plugin_android_lifecycle=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.20/ +flutter_plugin_android_lifecycle=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/ geocoding=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding-3.0.0/ geocoding_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/ geocoding_ios=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/ -geolocator=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator-12.0.0/ -geolocator_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.0/ +geolocator=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator-13.0.1/ +geolocator_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/ geolocator_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/ -geolocator_web=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.0.0/ +geolocator_web=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/ geolocator_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/ -path_provider=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider-2.1.3/ -path_provider_android=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.7/ +path_provider=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider-2.1.5/ +path_provider_android=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/ path_provider_foundation=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/ path_provider_linux=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ path_provider_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ permission_handler=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/ -permission_handler_android=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/ +permission_handler_android=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.13/ permission_handler_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/ -permission_handler_html=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/ +permission_handler_html=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/ permission_handler_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/ -url_launcher=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/ -url_launcher_android=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.3/ +url_launcher=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher-6.3.1/ +url_launcher_android=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.14/ url_launcher_ios=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/ -url_launcher_linux=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/ -url_launcher_macos=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.0/ -url_launcher_web=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/ -url_launcher_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/ +url_launcher_linux=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/ +url_launcher_macos=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.1/ +url_launcher_web=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/ +url_launcher_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.3/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index b1b09f0..611a753 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"geocoding_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/","native_build":true,"dependencies":[]}],"android":[{"name":"camera_android_camerax","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.7+1/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.20/","native_build":true,"dependencies":[]},{"name":"geocoding_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.7/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"geolocator_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"camera_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.4/","dependencies":[]},{"name":"geolocator_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.0.0/","dependencies":[]},{"name":"permission_handler_html","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_compass","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"geocoding","dependencies":["geocoding_android","geocoding_ios"]},{"name":"geocoding_android","dependencies":[]},{"name":"geocoding_ios","dependencies":[]},{"name":"geolocator","dependencies":["geolocator_android","geolocator_apple","geolocator_web","geolocator_windows"]},{"name":"geolocator_android","dependencies":[]},{"name":"geolocator_apple","dependencies":[]},{"name":"geolocator_web","dependencies":[]},{"name":"geolocator_windows","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-07-15 22:21:13.360734","version":"3.22.0"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"geocoding_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/","native_build":true,"dependencies":[]}],"android":[{"name":"camera_android_camerax","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.10/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"geocoding_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.13/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.14/","native_build":true,"dependencies":[]}],"macos":[{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/","native_build":true,"dependencies":[]}],"windows":[{"name":"geolocator_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.3/","native_build":true,"dependencies":[]}],"web":[{"name":"camera_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.5/","dependencies":[]},{"name":"geolocator_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/","dependencies":[]},{"name":"permission_handler_html","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_compass","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"geocoding","dependencies":["geocoding_android","geocoding_ios"]},{"name":"geocoding_android","dependencies":[]},{"name":"geocoding_ios","dependencies":[]},{"name":"geolocator","dependencies":["geolocator_android","geolocator_apple","geolocator_web","geolocator_windows"]},{"name":"geolocator_android","dependencies":[]},{"name":"geolocator_apple","dependencies":[]},{"name":"geolocator_web","dependencies":[]},{"name":"geolocator_windows","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-11-01 10:16:29.345930","version":"3.24.4","swift_package_manager_enabled":false} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a2daa0f..cda9ee6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.6 +## 0.0.8 # Changelog diff --git a/LICENSE b/LICENSE index 4e07429..8c67974 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Bijoy Ghosh +Copyright (c) 2024 Bijoy Ghosh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index bf9dfa0..d0caf43 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this package, add `map_camera_flutter` as a dependency in your `pubspec.y ```yaml dependencies: - map_camera_flutter: ^0.0.6 + map_camera_flutter: ^0.0.8 ``` ### Usage diff --git a/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux b/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux index 0e53a8d..abb9a90 120000 --- a/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux +++ b/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux @@ -1 +1 @@ -/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/ \ No newline at end of file +/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/ \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock deleted file mode 100644 index 9d1e239..0000000 --- a/example/pubspec.lock +++ /dev/null @@ -1,729 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - camera: - dependency: transitive - description: - name: camera - sha256: "2170a943dcb67be2af2c6bcda8775e74b41d4c02d6a4eb10bdc832ee185c4eea" - url: "https://pub.dev" - source: hosted - version: "0.11.0+1" - camera_android_camerax: - dependency: transitive - description: - name: camera_android_camerax - sha256: "7c03940cb8c92eb5b184952674a07cc4a73c6ba2b3568aad70255ad4cb913660" - url: "https://pub.dev" - source: hosted - version: "0.6.7+1" - camera_avfoundation: - dependency: transitive - description: - name: camera_avfoundation - sha256: "95c2f40b4d06cdb0fd2ad893c762d1f2c931a5e370793ec34c939eb4fcbf96bb" - url: "https://pub.dev" - source: hosted - version: "0.9.17" - camera_platform_interface: - dependency: transitive - description: - name: camera_platform_interface - sha256: b3ede1f171532e0d83111fe0980b46d17f1aa9788a07a2fbed07366bbdbb9061 - url: "https://pub.dev" - source: hosted - version: "2.8.0" - camera_web: - dependency: transitive - description: - name: camera_web - sha256: b9235ec0a2ce949daec546f1f3d86f05c3921ed31c7d9ab6b7c03214d152fc2d - url: "https://pub.dev" - source: hosted - version: "0.3.4" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cross_file: - dependency: transitive - description: - name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" - url: "https://pub.dev" - source: hosted - version: "0.3.4+1" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" - dart_earcut: - dependency: transitive - description: - name: dart_earcut - sha256: "41b493147e30a051efb2da1e3acb7f38fe0db60afba24ac1ea5684cee272721e" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_compass: - dependency: transitive - description: - name: flutter_compass - sha256: be642484f9f6975c1c6edff568281b001f2f1e604de27ecea18d97eebbdef22f - url: "https://pub.dev" - source: hosted - version: "0.8.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - flutter_map: - dependency: transitive - description: - name: flutter_map - sha256: "2ecb34619a4be19df6f40c2f8dce1591675b4eff7a6857bd8f533706977385da" - url: "https://pub.dev" - source: hosted - version: "7.0.2" - flutter_map_location_marker: - dependency: transitive - description: - name: flutter_map_location_marker - sha256: fa21753e7134d8a1f0b7b979d053c5cc43126e11685fe63c4c49da7b7416e1ae - url: "https://pub.dev" - source: hosted - version: "9.0.0" - flutter_plugin_android_lifecycle: - dependency: transitive - description: - name: flutter_plugin_android_lifecycle - sha256: c6b0b4c05c458e1c01ad9bcc14041dd7b1f6783d487be4386f793f47a8a4d03e - url: "https://pub.dev" - source: hosted - version: "2.0.20" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - geocoding: - dependency: transitive - description: - name: geocoding - sha256: d580c801cba9386b4fac5047c4c785a4e19554f46be42f4f5e5b7deacd088a66 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - geocoding_android: - dependency: transitive - description: - name: geocoding_android - sha256: "1b13eca79b11c497c434678fed109c2be020b158cec7512c848c102bc7232603" - url: "https://pub.dev" - source: hosted - version: "3.3.1" - geocoding_ios: - dependency: transitive - description: - name: geocoding_ios - sha256: "94ddba60387501bd1c11e18dca7c5a9e8c645d6e3da9c38b9762434941870c24" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - geocoding_platform_interface: - dependency: transitive - description: - name: geocoding_platform_interface - sha256: "8c2c8226e5c276594c2e18bfe88b19110ed770aeb7c1ab50ede570be8b92229b" - url: "https://pub.dev" - source: hosted - version: "3.2.0" - geolocator: - dependency: transitive - description: - name: geolocator - sha256: "149876cc5207a0f5daf4fdd3bfcf0a0f27258b3fe95108fa084f527ad0568f1b" - url: "https://pub.dev" - source: hosted - version: "12.0.0" - geolocator_android: - dependency: transitive - description: - name: geolocator_android - sha256: "00c7177a95823dd3ee35ef42fd8666cd27d219ae14cea472ac76a21dff43000b" - url: "https://pub.dev" - source: hosted - version: "4.6.0" - geolocator_apple: - dependency: transitive - description: - name: geolocator_apple - sha256: bc2aca02423ad429cb0556121f56e60360a2b7d694c8570301d06ea0c00732fd - url: "https://pub.dev" - source: hosted - version: "2.3.7" - geolocator_platform_interface: - dependency: transitive - description: - name: geolocator_platform_interface - sha256: "386ce3d9cce47838355000070b1d0b13efb5bc430f8ecda7e9238c8409ace012" - url: "https://pub.dev" - source: hosted - version: "4.2.4" - geolocator_web: - dependency: transitive - description: - name: geolocator_web - sha256: "7a22f400d831f924a89d931ba126a10e6b8b437f31e6b9311320435f3e1571bd" - url: "https://pub.dev" - source: hosted - version: "4.0.0" - geolocator_windows: - dependency: transitive - description: - name: geolocator_windows - sha256: "53da08937d07c24b0d9952eb57a3b474e29aae2abf9dd717f7e1230995f13f0e" - url: "https://pub.dev" - source: hosted - version: "0.2.3" - http: - dependency: transitive - description: - name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - intl: - dependency: transitive - description: - name: intl - sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf - url: "https://pub.dev" - source: hosted - version: "0.19.0" - latlong2: - dependency: transitive - description: - name: latlong2 - sha256: "98227922caf49e6056f91b6c56945ea1c7b166f28ffcd5fb8e72fc0b453cc8fe" - url: "https://pub.dev" - source: hosted - version: "0.9.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.dev" - source: hosted - version: "10.0.4" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.dev" - source: hosted - version: "3.0.3" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - lists: - dependency: transitive - description: - name: lists - sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - logger: - dependency: transitive - description: - name: logger - sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - map_camera_flutter: - dependency: "direct dev" - description: - path: ".." - relative: true - source: path - version: "0.0.6" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.dev" - source: hosted - version: "0.8.0" - meta: - dependency: transitive - description: - name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" - url: "https://pub.dev" - source: hosted - version: "1.12.0" - mgrs_dart: - dependency: transitive - description: - name: mgrs_dart - sha256: fb89ae62f05fa0bb90f70c31fc870bcbcfd516c843fb554452ab3396f78586f7 - url: "https://pub.dev" - source: hosted - version: "2.0.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 - url: "https://pub.dev" - source: hosted - version: "2.1.3" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: "30c5aa827a6ae95ce2853cdc5fe3971daaac00f6f081c419c013f7f57bff2f5e" - url: "https://pub.dev" - source: hosted - version: "2.2.7" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 - url: "https://pub.dev" - source: hosted - version: "2.4.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - permission_handler: - dependency: transitive - description: - name: permission_handler - sha256: "18bf33f7fefbd812f37e72091a15575e72d5318854877e0e4035a24ac1113ecb" - url: "https://pub.dev" - source: hosted - version: "11.3.1" - permission_handler_android: - dependency: transitive - description: - name: permission_handler_android - sha256: b29a799ca03be9f999aa6c39f7de5209482d638e6f857f6b93b0875c618b7e54 - url: "https://pub.dev" - source: hosted - version: "12.0.7" - permission_handler_apple: - dependency: transitive - description: - name: permission_handler_apple - sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0 - url: "https://pub.dev" - source: hosted - version: "9.4.5" - permission_handler_html: - dependency: transitive - description: - name: permission_handler_html - sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d" - url: "https://pub.dev" - source: hosted - version: "0.1.1" - permission_handler_platform_interface: - dependency: transitive - description: - name: permission_handler_platform_interface - sha256: "48d4fcf201a1dad93ee869ab0d4101d084f49136ec82a8a06ed9cfeacab9fd20" - url: "https://pub.dev" - source: hosted - version: "4.2.1" - permission_handler_windows: - dependency: transitive - description: - name: permission_handler_windows - sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" - url: "https://pub.dev" - source: hosted - version: "0.2.1" - platform: - dependency: transitive - description: - name: platform - sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" - url: "https://pub.dev" - source: hosted - version: "3.1.5" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - polylabel: - dependency: transitive - description: - name: polylabel - sha256: "41b9099afb2aa6c1730bdd8a0fab1400d287694ec7615dd8516935fa3144214b" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - proj4dart: - dependency: transitive - description: - name: proj4dart - sha256: c8a659ac9b6864aa47c171e78d41bbe6f5e1d7bd790a5814249e6b68bc44324e - url: "https://pub.dev" - source: hosted - version: "2.1.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - sprintf: - dependency: transitive - description: - name: sprintf - sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" - url: "https://pub.dev" - source: hosted - version: "7.0.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" - url: "https://pub.dev" - source: hosted - version: "0.7.0" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - unicode: - dependency: transitive - description: - name: unicode - sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1" - url: "https://pub.dev" - source: hosted - version: "0.3.1" - url_launcher: - dependency: transitive - description: - name: url_launcher - sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" - url: "https://pub.dev" - source: hosted - version: "6.3.0" - url_launcher_android: - dependency: transitive - description: - name: url_launcher_android - sha256: ceb2625f0c24ade6ef6778d1de0b2e44f2db71fded235eb52295247feba8c5cf - url: "https://pub.dev" - source: hosted - version: "6.3.3" - url_launcher_ios: - dependency: transitive - description: - name: url_launcher_ios - sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e - url: "https://pub.dev" - source: hosted - version: "6.3.1" - url_launcher_linux: - dependency: transitive - description: - name: url_launcher_linux - sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 - url: "https://pub.dev" - source: hosted - version: "3.1.1" - url_launcher_macos: - dependency: transitive - description: - name: url_launcher_macos - sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" - url: "https://pub.dev" - source: hosted - version: "3.2.0" - url_launcher_platform_interface: - dependency: transitive - description: - name: url_launcher_platform_interface - sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" - url: "https://pub.dev" - source: hosted - version: "2.3.2" - url_launcher_web: - dependency: transitive - description: - name: url_launcher_web - sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" - url: "https://pub.dev" - source: hosted - version: "2.3.1" - url_launcher_windows: - dependency: transitive - description: - name: url_launcher_windows - sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 - url: "https://pub.dev" - source: hosted - version: "3.1.1" - uuid: - dependency: transitive - description: - name: uuid - sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90" - url: "https://pub.dev" - source: hosted - version: "4.4.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" - url: "https://pub.dev" - source: hosted - version: "14.2.1" - web: - dependency: transitive - description: - name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" - url: "https://pub.dev" - source: hosted - version: "0.5.1" - wkt_parser: - dependency: transitive - description: - name: wkt_parser - sha256: "8a555fc60de3116c00aad67891bcab20f81a958e4219cc106e3c037aa3937f13" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d - url: "https://pub.dev" - source: hosted - version: "1.0.4" -sdks: - dart: ">=3.4.0 <4.0.0" - flutter: ">=3.22.0" diff --git a/lib/map_camera_flutter.dart b/lib/map_camera_flutter.dart index dbc167f..c1830f8 100644 --- a/lib/map_camera_flutter.dart +++ b/lib/map_camera_flutter.dart @@ -1,4 +1,4 @@ -library map_camera_flutter; +library; export 'package:flutter/material.dart'; export 'dart:async'; @@ -13,5 +13,6 @@ export 'package:flutter_map_location_marker/flutter_map_location_marker.dart'; export 'package:geocoding/geocoding.dart'; export 'package:path_provider/path_provider.dart'; export 'package:map_camera_flutter/src/image_and_location_data.dart'; +export 'src/components/location_details_widget.dart'; export 'src/map_camera.dart'; diff --git a/lib/src/components/location_details_widget.dart b/lib/src/components/location_details_widget.dart new file mode 100644 index 0000000..53fb734 --- /dev/null +++ b/lib/src/components/location_details_widget.dart @@ -0,0 +1,79 @@ +import 'package:map_camera_flutter/map_camera_flutter.dart'; + +class LocationDetailsWidget extends StatelessWidget { + const LocationDetailsWidget({ + super.key, + required this.locationData, + required this.dateTime, + }); + + final LocationData? locationData; + final String? dateTime; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + color: Colors.black.withOpacity(0.5)), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + locationData?.locationName ?? "Loading...", + maxLines: 1, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: const TextStyle( + color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox( + height: 5, + ), + Text( + locationData?.subLocation ?? "Loading ..", + maxLines: 2, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: const TextStyle( + color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500), + ), + const SizedBox( + height: 5, + ), + Text( + "Lat ${locationData?.latitude ?? "Loading.."}", + maxLines: 2, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: const TextStyle( + color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500), + ), + const SizedBox( + height: 5, + ), + Text( + "Long ${locationData?.longitude ?? "Loading.."}", + maxLines: 2, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: const TextStyle( + color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500), + ), + const SizedBox( + height: 5, + ), + Text( + dateTime ?? "Loading...", + maxLines: 2, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: const TextStyle( + color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500), + ), + ], + ), + ); + } +} diff --git a/lib/src/map_camera.dart b/lib/src/map_camera.dart index 147df7d..03e1e4a 100644 --- a/lib/src/map_camera.dart +++ b/lib/src/map_camera.dart @@ -210,9 +210,8 @@ class _MapCameraLocationState extends State { initialCenter: const lat.LatLng(0, 0), initialZoom: 13.0, - onPositionChanged: - (MapPosition position, - bool hasGesture) { + onPositionChanged: (position, + bool hasGesture) { if (hasGesture) { setState( () => @@ -245,82 +244,9 @@ class _MapCameraLocationState extends State { ), ), Expanded( - child: Container( - padding: const EdgeInsets.all(10), - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - color: Colors.black.withOpacity(0.5)), - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text( - locationData?.locationName ?? - "Loading...", - maxLines: 1, - overflow: TextOverflow.ellipsis, - softWrap: false, - style: const TextStyle( - color: Colors.white, - fontSize: 16, - fontWeight: FontWeight.bold), - ), - const SizedBox( - height: 5, - ), - Text( - locationData?.subLocation ?? - "Loading ..", - maxLines: 2, - overflow: TextOverflow.ellipsis, - softWrap: false, - style: const TextStyle( - color: Colors.white, - fontSize: 12, - fontWeight: FontWeight.w500), - ), - const SizedBox( - height: 5, - ), - Text( - "Lat ${locationData?.latitude ?? "Loading.."}", - maxLines: 2, - overflow: TextOverflow.ellipsis, - softWrap: false, - style: const TextStyle( - color: Colors.white, - fontSize: 12, - fontWeight: FontWeight.w500), - ), - const SizedBox( - height: 5, - ), - Text( - "Long ${locationData?.longitude ?? "Loading.."}", - maxLines: 2, - overflow: TextOverflow.ellipsis, - softWrap: false, - style: const TextStyle( - color: Colors.white, - fontSize: 12, - fontWeight: FontWeight.w500), - ), - const SizedBox( - height: 5, - ), - Text( - dateTime ?? "Loading...", - maxLines: 2, - overflow: TextOverflow.ellipsis, - softWrap: false, - style: const TextStyle( - color: Colors.white, - fontSize: 12, - fontWeight: FontWeight.w500), - ), - ], - ), - ), + child: LocationDetailsWidget( + locationData: locationData, + dateTime: dateTime), ), const SizedBox( width: 10, @@ -489,8 +415,6 @@ class _MapCameraLocationState extends State { } // Get the current position - return await Geolocator.getCurrentPosition( - desiredAccuracy: LocationAccuracy.best, - ); + return await Geolocator.getCurrentPosition(); } } diff --git a/pubspec.yaml b/pubspec.yaml index 40baee2..134a621 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: map_camera_flutter description: The Map Camera flutter package provides a convenient way to capture images with map and location data using the device's camera. -version: 0.0.6 +version: 0.0.8 homepage: https://github.com/Always-Bijoy/map_camera_location_flutter environment: @@ -12,8 +12,8 @@ dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 - camera: ^0.11.0+1 - geolocator: ^12.0.0 + camera: ^0.11.0+2 + geolocator: ^13.0.1 geocoding: ^3.0.0 intl: ^0.19.0 path_provider: ^2.0.11 @@ -27,7 +27,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec