implements google map

This commit is contained in:
bestonemitRam
2025-01-28 00:46:47 +05:30
parent cbeaa2af5c
commit b9cd807bbc
15 changed files with 1250 additions and 252 deletions

View File

@@ -7,12 +7,18 @@
// ignore_for_file: type=lint // ignore_for_file: type=lint
import 'package:connectivity_plus/src/connectivity_plus_web.dart'; import 'package:connectivity_plus/src/connectivity_plus_web.dart';
import 'package:geolocator_web/geolocator_web.dart';
import 'package:google_maps_flutter_web/google_maps_flutter_web.dart';
import 'package:package_info_plus/src/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart'; import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void registerPlugins([final Registrar? pluginRegistrar]) { void registerPlugins([final Registrar? pluginRegistrar]) {
final Registrar registrar = pluginRegistrar ?? webPluginRegistrar; final Registrar registrar = pluginRegistrar ?? webPluginRegistrar;
ConnectivityPlusWebPlugin.registerWith(registrar); ConnectivityPlusWebPlugin.registerWith(registrar);
GeolocatorPlugin.registerWith(registrar);
GoogleMapsPlugin.registerWith(registrar);
PackageInfoPlusWebPlugin.registerWith(registrar);
SharedPreferencesPlugin.registerWith(registrar); SharedPreferencesPlugin.registerWith(registrar);
registrar.registerMessageHandler(); registrar.registerMessageHandler();
} }

View File

@@ -39,19 +39,19 @@
}, },
{ {
"name": "cached_network_image", "name": "cached_network_image",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.4.1", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.3.1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.0" "languageVersion": "3.0"
}, },
{ {
"name": "cached_network_image_platform_interface", "name": "cached_network_image_platform_interface",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.1.1", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.0.0",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.0" "languageVersion": "3.0"
}, },
{ {
"name": "cached_network_image_web", "name": "cached_network_image_web",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.3.1", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.2.0",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.0" "languageVersion": "3.0"
}, },
@@ -97,6 +97,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "3.4"
}, },
{
"name": "csslib",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/csslib-1.0.2",
"packageUri": "lib/",
"languageVersion": "3.1"
},
{ {
"name": "cupertino_icons", "name": "cupertino_icons",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8",
@@ -171,9 +177,15 @@
}, },
{ {
"name": "flutter_cache_manager", "name": "flutter_cache_manager",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.4.1", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.3.1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.0" "languageVersion": "2.17"
},
{
"name": "flutter_google_places",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_google_places-0.3.0",
"packageUri": "lib/",
"languageVersion": "2.12"
}, },
{ {
"name": "flutter_lints", "name": "flutter_lints",
@@ -181,6 +193,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.1" "languageVersion": "3.1"
}, },
{
"name": "flutter_plugin_android_lifecycle",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.24",
"packageUri": "lib/",
"languageVersion": "3.5"
},
{ {
"name": "flutter_screenutil", "name": "flutter_screenutil",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_screenutil-5.9.3", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_screenutil-5.9.3",
@@ -195,9 +213,9 @@
}, },
{ {
"name": "flutter_svg", "name": "flutter_svg",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.17", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "2.19"
}, },
{ {
"name": "flutter_test", "name": "flutter_test",
@@ -229,6 +247,66 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.12" "languageVersion": "2.12"
}, },
{
"name": "geocoding",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding-3.0.0",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "geocoding_android",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "geocoding_ios",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "geocoding_platform_interface",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_platform_interface-3.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "geolocator",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator-13.0.2",
"packageUri": "lib/",
"languageVersion": "2.15"
},
{
"name": "geolocator_android",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1",
"packageUri": "lib/",
"languageVersion": "2.15"
},
{
"name": "geolocator_apple",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1",
"packageUri": "lib/",
"languageVersion": "2.15"
},
{
"name": "geolocator_platform_interface",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_platform_interface-4.2.4",
"packageUri": "lib/",
"languageVersion": "2.15"
},
{
"name": "geolocator_web",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1",
"packageUri": "lib/",
"languageVersion": "3.4"
},
{
"name": "geolocator_windows",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3",
"packageUri": "lib/",
"languageVersion": "2.15"
},
{ {
"name": "get_it", "name": "get_it",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/get_it-8.0.3", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/get_it-8.0.3",
@@ -241,18 +319,72 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "3.4"
}, },
{
"name": "google_api_headers",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{ {
"name": "google_fonts", "name": "google_fonts",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-6.2.1", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-4.0.4",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.14" "languageVersion": "2.14"
}, },
{ {
"name": "http", "name": "google_maps",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/http-1.3.0", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps-8.1.1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "3.4"
}, },
{
"name": "google_maps_flutter",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0",
"packageUri": "lib/",
"languageVersion": "3.4"
},
{
"name": "google_maps_flutter_android",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.12",
"packageUri": "lib/",
"languageVersion": "3.5"
},
{
"name": "google_maps_flutter_ios",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2",
"packageUri": "lib/",
"languageVersion": "3.3"
},
{
"name": "google_maps_flutter_platform_interface",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_platform_interface-2.9.5",
"packageUri": "lib/",
"languageVersion": "3.3"
},
{
"name": "google_maps_flutter_web",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10",
"packageUri": "lib/",
"languageVersion": "3.3"
},
{
"name": "google_maps_webservice",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_webservice-0.0.20-nullsafety.5",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "html",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/html-0.15.5",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "http",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/http-0.13.6",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{ {
"name": "http_parser", "name": "http_parser",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/http_parser-4.0.2", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/http_parser-4.0.2",
@@ -265,6 +397,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.0" "languageVersion": "3.0"
}, },
{
"name": "json_annotation",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/json_annotation-4.9.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{ {
"name": "leak_tracker", "name": "leak_tracker",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5",
@@ -349,6 +487,18 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.12" "languageVersion": "2.12"
}, },
{
"name": "package_info_plus",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "package_info_plus_platform_interface",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus_platform_interface-2.0.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{ {
"name": "path", "name": "path",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/path-1.9.0", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/path-1.9.0",
@@ -441,7 +591,13 @@
}, },
{ {
"name": "rxdart", "name": "rxdart",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.28.0", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.26.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "sanitize_html",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/sanitize_html-2.1.0",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.12" "languageVersion": "2.12"
}, },
@@ -547,6 +703,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.19" "languageVersion": "2.19"
}, },
{
"name": "stream_transform",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/stream_transform-2.1.1",
"packageUri": "lib/",
"languageVersion": "3.1"
},
{ {
"name": "string_scanner", "name": "string_scanner",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/string_scanner-1.2.0", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
@@ -585,21 +747,21 @@
}, },
{ {
"name": "vector_graphics", "name": "vector_graphics",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.15", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.10+1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "2.17"
}, },
{ {
"name": "vector_graphics_codec", "name": "vector_graphics_codec",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.13", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.10+1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "2.17"
}, },
{ {
"name": "vector_graphics_compiler", "name": "vector_graphics_compiler",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.16", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.10+1",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "2.19"
}, },
{ {
"name": "vector_math", "name": "vector_math",
@@ -619,6 +781,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "3.4" "languageVersion": "3.4"
}, },
{
"name": "win32",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/win32-5.10.1",
"packageUri": "lib/",
"languageVersion": "3.5"
},
{ {
"name": "xdg_directories", "name": "xdg_directories",
"rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0", "rootUri": "file:///Users/apple/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0",
@@ -638,7 +806,7 @@
"languageVersion": "3.4" "languageVersion": "3.4"
} }
], ],
"generated": "2025-01-26T19:40:32.652548Z", "generated": "2025-01-27T19:16:12.456906Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "3.5.3", "generatorVersion": "3.5.3",
"flutterRoot": "file:///Users/apple/Documents/development/flutter", "flutterRoot": "file:///Users/apple/Documents/development/flutter",

View File

@@ -24,16 +24,16 @@ file:///Users/apple/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
cached_network_image cached_network_image
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.4.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.3.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.4.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image-3.3.1/lib/
cached_network_image_platform_interface cached_network_image_platform_interface
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.1.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.0.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.1.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_platform_interface-4.0.0/lib/
cached_network_image_web cached_network_image_web
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.3.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.2.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.3.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/cached_network_image_web-1.2.0/lib/
carousel_slider carousel_slider
2.12 2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/carousel_slider-5.0.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/carousel_slider-5.0.0/
@@ -62,6 +62,10 @@ crypto
3.4 3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/crypto-3.0.6/ file:///Users/apple/.pub-cache/hosted/pub.dev/crypto-3.0.6/
file:///Users/apple/.pub-cache/hosted/pub.dev/crypto-3.0.6/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/crypto-3.0.6/lib/
csslib
3.1
file:///Users/apple/.pub-cache/hosted/pub.dev/csslib-1.0.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/csslib-1.0.2/lib/
cupertino_icons cupertino_icons
3.1 3.1
file:///Users/apple/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/ file:///Users/apple/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/
@@ -107,13 +111,21 @@ flutter_animate
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_animate-4.5.2/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_animate-4.5.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_animate-4.5.2/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_animate-4.5.2/lib/
flutter_cache_manager flutter_cache_manager
3.0 2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.4.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.3.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.4.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_cache_manager-3.3.1/lib/
flutter_google_places
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_google_places-0.3.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_google_places-0.3.0/lib/
flutter_lints flutter_lints
3.1 3.1
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/lib/
flutter_plugin_android_lifecycle
3.5
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.24/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.24/lib/
flutter_screenutil flutter_screenutil
2.17 2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_screenutil-5.9.3/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_screenutil-5.9.3/
@@ -123,9 +135,9 @@ flutter_shaders
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_shaders-0.1.3/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_shaders-0.1.3/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_shaders-0.1.3/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_shaders-0.1.3/lib/
flutter_svg flutter_svg
3.4 2.19
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.17/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.17/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/lib/
flutter_toggle_tab flutter_toggle_tab
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_toggle_tab-1.5.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/flutter_toggle_tab-1.5.1/
@@ -138,6 +150,46 @@ gap
2.12 2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/gap-3.0.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/gap-3.0.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/gap-3.0.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/gap-3.0.1/lib/
geocoding
2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding-3.0.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding-3.0.0/lib/
geocoding_android
2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/lib/
geocoding_ios
2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/lib/
geocoding_platform_interface
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_platform_interface-3.2.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/geocoding_platform_interface-3.2.0/lib/
geolocator
2.15
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator-13.0.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator-13.0.2/lib/
geolocator_android
2.15
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/lib/
geolocator_apple
2.15
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/lib/
geolocator_platform_interface
2.15
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_platform_interface-4.2.4/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_platform_interface-4.2.4/lib/
geolocator_web
3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/lib/
geolocator_windows
2.15
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/
file:///Users/apple/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/lib/
get_it get_it
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/get_it-8.0.3/ file:///Users/apple/.pub-cache/hosted/pub.dev/get_it-8.0.3/
@@ -146,14 +198,50 @@ go_router
3.4 3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/go_router-14.7.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/go_router-14.7.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/go_router-14.7.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/go_router-14.7.1/lib/
google_api_headers
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/lib/
google_fonts google_fonts
2.14 2.14
file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-6.2.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-4.0.4/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-6.2.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/google_fonts-4.0.4/lib/
http google_maps
3.4 3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/http-1.3.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps-8.1.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/http-1.3.0/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps-8.1.1/lib/
google_maps_flutter
3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0/lib/
google_maps_flutter_android
3.5
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.12/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.12/lib/
google_maps_flutter_ios
3.3
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/lib/
google_maps_flutter_platform_interface
3.3
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_platform_interface-2.9.5/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_platform_interface-2.9.5/lib/
google_maps_flutter_web
3.3
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/lib/
google_maps_webservice
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_webservice-0.0.20-nullsafety.5/
file:///Users/apple/.pub-cache/hosted/pub.dev/google_maps_webservice-0.0.20-nullsafety.5/lib/
html
3.2
file:///Users/apple/.pub-cache/hosted/pub.dev/html-0.15.5/
file:///Users/apple/.pub-cache/hosted/pub.dev/html-0.15.5/lib/
http
2.19
file:///Users/apple/.pub-cache/hosted/pub.dev/http-0.13.6/
file:///Users/apple/.pub-cache/hosted/pub.dev/http-0.13.6/lib/
http_parser http_parser
2.12 2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/http_parser-4.0.2/ file:///Users/apple/.pub-cache/hosted/pub.dev/http_parser-4.0.2/
@@ -162,6 +250,10 @@ intl
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/intl-0.19.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/intl-0.19.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/intl-0.19.0/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/intl-0.19.0/lib/
json_annotation
3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/
leak_tracker leak_tracker
3.2 3.2
file:///Users/apple/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5/ file:///Users/apple/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5/
@@ -218,6 +310,14 @@ otp_text_field
2.12 2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/otp_text_field-1.1.3/ file:///Users/apple/.pub-cache/hosted/pub.dev/otp_text_field-1.1.3/
file:///Users/apple/.pub-cache/hosted/pub.dev/otp_text_field-1.1.3/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/otp_text_field-1.1.3/lib/
package_info_plus
2.18
file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/lib/
package_info_plus_platform_interface
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus_platform_interface-2.0.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/package_info_plus_platform_interface-2.0.1/lib/
path path
3.0 3.0
file:///Users/apple/.pub-cache/hosted/pub.dev/path-1.9.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/path-1.9.0/
@@ -280,8 +380,12 @@ file:///Users/apple/.pub-cache/hosted/pub.dev/readmore-3.0.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/readmore-3.0.0/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/readmore-3.0.0/lib/
rxdart rxdart
2.12 2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.28.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.26.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.28.0/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/rxdart-0.26.0/lib/
sanitize_html
2.12
file:///Users/apple/.pub-cache/hosted/pub.dev/sanitize_html-2.1.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/sanitize_html-2.1.0/lib/
shared_preferences shared_preferences
3.5 3.5
file:///Users/apple/.pub-cache/hosted/pub.dev/shared_preferences-2.4.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/shared_preferences-2.4.0/
@@ -346,6 +450,10 @@ stream_channel
2.19 2.19
file:///Users/apple/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/ file:///Users/apple/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/
file:///Users/apple/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/
stream_transform
3.1
file:///Users/apple/.pub-cache/hosted/pub.dev/stream_transform-2.1.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/stream_transform-2.1.1/lib/
string_scanner string_scanner
2.18 2.18
file:///Users/apple/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
@@ -371,17 +479,17 @@ uuid
file:///Users/apple/.pub-cache/hosted/pub.dev/uuid-4.5.1/ file:///Users/apple/.pub-cache/hosted/pub.dev/uuid-4.5.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/uuid-4.5.1/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/uuid-4.5.1/lib/
vector_graphics vector_graphics
3.4 2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.15/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.10+1/
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.15/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics-1.1.10+1/lib/
vector_graphics_codec vector_graphics_codec
3.4 2.17
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.13/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.10+1/
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.13/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.10+1/lib/
vector_graphics_compiler vector_graphics_compiler
3.4 2.19
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.16/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.10+1/
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.16/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.10+1/lib/
vector_math vector_math
2.14 2.14
file:///Users/apple/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ file:///Users/apple/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
@@ -394,6 +502,10 @@ web
3.4 3.4
file:///Users/apple/.pub-cache/hosted/pub.dev/web-1.1.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/web-1.1.0/
file:///Users/apple/.pub-cache/hosted/pub.dev/web-1.1.0/lib/ file:///Users/apple/.pub-cache/hosted/pub.dev/web-1.1.0/lib/
win32
3.5
file:///Users/apple/.pub-cache/hosted/pub.dev/win32-5.10.1/
file:///Users/apple/.pub-cache/hosted/pub.dev/win32-5.10.1/lib/
xdg_directories xdg_directories
3.3 3.3
file:///Users/apple/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/ file:///Users/apple/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/

View File

@@ -1,5 +1,20 @@
# This is a generated file; do not edit or check into version control. # This is a generated file; do not edit or check into version control.
connectivity_plus=/Users/apple/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.2/ connectivity_plus=/Users/apple/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.2/
flutter_plugin_android_lifecycle=/Users/apple/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.24/
geocoding=/Users/apple/.pub-cache/hosted/pub.dev/geocoding-3.0.0/
geocoding_android=/Users/apple/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/
geocoding_ios=/Users/apple/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/
geolocator=/Users/apple/.pub-cache/hosted/pub.dev/geolocator-13.0.2/
geolocator_android=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/
geolocator_apple=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/
geolocator_web=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/
geolocator_windows=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/
google_api_headers=/Users/apple/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/
google_maps_flutter=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0/
google_maps_flutter_android=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.12/
google_maps_flutter_ios=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/
google_maps_flutter_web=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/
package_info_plus=/Users/apple/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/
path_provider=/Users/apple/.pub-cache/hosted/pub.dev/path_provider-2.1.5/ path_provider=/Users/apple/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
path_provider_android=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/ path_provider_android=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/
path_provider_foundation=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/ path_provider_foundation=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,13 @@
> >
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<application <application
android:enableOnBackInvokedCallback="true"
android:label="grocery_app" android:label="grocery_app"
android:name="${applicationName}" android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
@@ -25,11 +31,17 @@
android:name="io.flutter.embedding.android.NormalTheme" android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" android:resource="@style/NormalTheme"
/> />
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter> </intent-filter>
</activity> </activity>
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyAi3_Dls63iGs7Nccgdm-4FkS0rhT03-4U"/>
<!-- Don't delete the meta-data below. <!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data <meta-data

View File

@@ -0,0 +1,436 @@
// // import 'package:flutter/material.dart';
// // import 'package:google_maps_flutter/google_maps_flutter.dart';
// // import 'package:geolocator/geolocator.dart';
// // import 'package:geocoding/geocoding.dart';
// // class MapScreen extends StatefulWidget {
// // @override
// // _MapScreenState createState() => _MapScreenState();
// // }
// // class _MapScreenState extends State<MapScreen> {
// // late GoogleMapController mapController;
// // LatLng _selectedLocation = LatLng(20.5937, 78.9629); // Default: India
// // String _address = "Select a location";
// // String _pincode = "";
// // @override
// // void initState() {
// // super.initState();
// // _determinePosition();
// // }
// // // Get current location
// // Future<void> _determinePosition() async {
// // LocationPermission permission = await Geolocator.requestPermission();
// // if (permission == LocationPermission.denied) {
// // return;
// // }
// // Position position = await Geolocator.getCurrentPosition();
// // setState(() {
// // _selectedLocation = LatLng(position.latitude, position.longitude);
// // });
// // _getAddressFromLatLng(position.latitude, position.longitude);
// // }
// // // Get Address from LatLng
// // Future<void> _getAddressFromLatLng(double lat, double lng) async {
// // try {
// // List<Placemark> placemarks = await placemarkFromCoordinates(lat, lng);
// // Placemark place = placemarks[0];
// // setState(() {
// // _address =
// // "${place.street}, ${place.locality}, ${place.administrativeArea}";
// // _pincode = place.postalCode ?? "";
// // });
// // } catch (e) {
// // print(e);
// // }
// // }
// // // On map tapped
// // void _onMapTapped(LatLng tappedPoint)
// // {
// // setState(()
// // {
// // _selectedLocation = tappedPoint;
// // });
// // _getAddressFromLatLng(tappedPoint.latitude, tappedPoint.longitude);
// // }
// // @override
// // Widget build(BuildContext context) {
// // return Scaffold(
// // appBar: AppBar(title: Text("Pick Location")),
// // body: Column(
// // children: [
// // Expanded(
// // child: GoogleMap(
// // initialCameraPosition: CameraPosition(
// // target: _selectedLocation,
// // zoom: 5,
// // ),
// // onMapCreated: (controller) {
// // mapController = controller;
// // },
// // markers: {
// // Marker(
// // markerId: MarkerId("selectedLocation"),
// // position: _selectedLocation,
// // )
// // },
// // onTap: _onMapTapped,
// // ),
// // ),
// // Container(
// // padding: EdgeInsets.all(16),
// // decoration: BoxDecoration(
// // color: Colors.white,
// // boxShadow: [BoxShadow(color: Colors.black12, blurRadius: 10)],
// // ),
// // child: Column(
// // crossAxisAlignment: CrossAxisAlignment.start,
// // children: [
// // Text("Selected Address:",
// // style: TextStyle(fontWeight: FontWeight.bold)),
// // SizedBox(height: 5),
// // Text(_address, style: TextStyle(fontSize: 16)),
// // SizedBox(height: 10),
// // TextField(
// // decoration: InputDecoration(labelText: "Enter Pincode"),
// // onChanged: (value) {
// // setState(()
// // {
// // _pincode = value;
// // });
// // },
// // ),
// // SizedBox(height: 10),
// // ElevatedButton(
// // onPressed: ()
// // {
// // Navigator.pop(context,
// // {
// // "location": _selectedLocation,
// // "address": _address,
// // "pincode": _pincode
// // });
// // },
// // child: Text("Confirm Location"),
// // ),
// // ],
// // ),
// // ),
// // ],
// // ),
// // );
// // }
// // }
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:geolocator/geolocator.dart';
import 'package:geocoding/geocoding.dart';
class MapScreen extends StatefulWidget {
@override
_MapScreenState createState() => _MapScreenState();
}
class _MapScreenState extends State<MapScreen> {
late GoogleMapController mapController;
LatLng _selectedLocation = LatLng(20.5937, 78.9629); // Default: India
String _address = "Fetching current location...";
String _pincode = "";
TextEditingController _pincodeController = TextEditingController();
@override
void initState() {
super.initState();
_determinePosition();
}
// Get current location
Future<void> _determinePosition() async {
bool serviceEnabled = await Geolocator.isLocationServiceEnabled();
if (!serviceEnabled) {
return;
}
LocationPermission permission = await Geolocator.requestPermission();
if (permission == LocationPermission.denied) {
return;
}
Position position = await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.low,
);
LatLng currentLatLng = LatLng(position.latitude, position.longitude);
setState(() {
_selectedLocation = currentLatLng;
});
_getAddressFromLatLng(position.latitude, position.longitude);
}
// Get Address from LatLng
Future<void> _getAddressFromLatLng(double lat, double lng) async {
try {
List<Placemark> placemarks = await placemarkFromCoordinates(lat, lng);
Placemark place = placemarks.first;
setState(() {
_address =
"${place.street}, ${place.locality}, ${place.administrativeArea}";
_pincode = place.postalCode ?? "";
_pincodeController.text = _pincode;
print(
"jhsjhdfjdsgf ${place.street}, ${place.locality}, ${place.administrativeArea} ${place.postalCode} ${place.subLocality} ${place.name} ${place.subAdministrativeArea}");
});
} catch (e) {
print(e);
}
}
// On map tapped
void _onMapTapped(LatLng tappedPoint) {
setState(() {
_selectedLocation = tappedPoint;
});
_getAddressFromLatLng(tappedPoint.latitude, tappedPoint.longitude);
}
// Update location based on entered pincode
Future<void> _updateLocationFromPincode(String enteredPincode) async {
if (enteredPincode.isEmpty) return;
try {
List<Location> locations = await locationFromAddress(enteredPincode);
if (locations.isNotEmpty) {
Location location = locations.first;
LatLng newLatLng = LatLng(location.latitude, location.longitude);
setState(() {
_selectedLocation = newLatLng;
});
_getAddressFromLatLng(location.latitude, location.longitude);
mapController.animateCamera(CameraUpdate.newLatLng(newLatLng));
}
} catch (e) {
print("Error fetching location from pincode: $e");
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Pick Location")),
body: Column(
children: [
Expanded(
child: GoogleMap(
initialCameraPosition: CameraPosition(
target: _selectedLocation,
zoom: 14,
),
onMapCreated: (controller) {
mapController = controller;
},
markers: {
Marker(
markerId: MarkerId("selectedLocation"),
position: _selectedLocation,
)
},
onTap: _onMapTapped,
),
),
Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [BoxShadow(color: Colors.black12, blurRadius: 10)],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Selected Address:",
style: TextStyle(fontWeight: FontWeight.bold)),
SizedBox(height: 5),
Text(_address, style: TextStyle(fontSize: 16)),
SizedBox(height: 10),
TextField(
controller: _pincodeController,
keyboardType: TextInputType.number,
decoration: InputDecoration(
labelText: "Enter Pincode",
border: OutlineInputBorder(),
),
onChanged: (value) {
setState(() {
_pincode = value;
});
},
onSubmitted:
_updateLocationFromPincode, // Auto-update on enter
),
SizedBox(height: 10),
ElevatedButton(
onPressed: () {
Navigator.pop(context, {
"location": _selectedLocation,
"address": _address,
"pincode": _pincode
});
},
child: Text("Confirm Location"),
),
],
),
),
],
),
);
}
}
// import 'dart:convert';
// import 'package:flutter/material.dart';
// import 'package:geolocator/geolocator.dart';
// import 'package:http/http.dart' as http;
// const String googleApiKey = "AIzaSyAi3_Dls63iGs7Nccgdm-4FkS0rhT03-4U"; // Replace with your API key
// class LocationScreen extends StatefulWidget {
// @override
// _LocationScreenState createState() => _LocationScreenState();
// }
// class _LocationScreenState extends State<LocationScreen> {
// String _address = "Fetching location...";
// String _roadName = "";
// String _colony = "";
// String _buildingName = "";
// @override
// void initState() {
// super.initState();
// _fetchCurrentLocation();
// }
// // Fetch Current Location
// Future<void> _fetchCurrentLocation() async {
// try {
// Position position = await Geolocator.getCurrentPosition(
// desiredAccuracy: LocationAccuracy.bestForNavigation, // High Accuracy
// );
// _getAddressFromLatLng(position.latitude, position.longitude);
// } catch (e) {
// print("Error fetching location: $e");
// setState(() {
// _address = "Failed to get location.";
// });
// }
// }
// // Get Address from Latitude and Longitude
// Future<void> _getAddressFromLatLng(double lat, double lng) async {
// final String url =
// "https://maps.googleapis.com/maps/api/geocode/json?latlng=$lat,$lng&key=$googleApiKey";
// try {
// final response = await http.get(Uri.parse(url));
// if (response.statusCode == 200) {
// final data = json.decode(response.body);
// if (data["status"] == "OK") {
// var result = data["results"][0]; // First result is most accurate
// String formattedAddress = result["formatted_address"];
// List components = result["address_components"];
// String roadName = "";
// String colony = "";
// String buildingName = "";
// for (var component in components) {
// List types = component["types"];
// if (types.contains("route")) {
// roadName = component["long_name"]; // Road Name
// } else if (types.contains("sublocality_level_1") || types.contains("locality")) {
// colony = component["long_name"]; // Colony Name
// } else if (types.contains("premise") || types.contains("street_number")) {
// buildingName = component["long_name"]; // Building Name
// }
// }
// setState(() {
// _address = formattedAddress;
// _roadName = roadName;
// _colony = colony;
// _buildingName = buildingName;
// });
// print("Full Address: $formattedAddress");
// print("Road Name: $roadName");
// print("Colony: $colony");
// print("Building Name: $buildingName");
// } else {
// setState(() {
// _address = "No address found";
// });
// }
// } else {
// setState(() {
// _address = "Failed to fetch address";
// });
// }
// } catch (e) {
// print("Error fetching address: $e");
// setState(() {
// _address = "Error fetching address";
// });
// }
// }
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// appBar: AppBar(title: Text("Location Details")),
// body: Padding(
// padding: const EdgeInsets.all(16.0),
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Text("Full Address:", style: TextStyle(fontWeight: FontWeight.bold)),
// Text(_address, style: TextStyle(fontSize: 16)),
// SizedBox(height: 10),
// Text("Road Name:", style: TextStyle(fontWeight: FontWeight.bold)),
// Text(_roadName, style: TextStyle(fontSize: 16)),
// SizedBox(height: 10),
// Text("Colony:", style: TextStyle(fontWeight: FontWeight.bold)),
// Text(_colony, style: TextStyle(fontSize: 16)),
// SizedBox(height: 10),
// Text("Building Name:", style: TextStyle(fontWeight: FontWeight.bold)),
// Text(_buildingName, style: TextStyle(fontSize: 16)),
// SizedBox(height: 20),
// ElevatedButton(
// onPressed: _fetchCurrentLocation,
// child: Text("Refresh Location"),
// ),
// ],
// ),
// ),
// );
// }
// }

View File

@@ -1,177 +1,177 @@
import 'package:flutter/material.dart'; // import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart'; // import 'package:flutter_svg/flutter_svg.dart';
import 'package:grocery_app/utils/constants/assets_constant.dart'; // import 'package:grocery_app/utils/constants/assets_constant.dart';
import 'package:grocery_app/utils/constants/color_constant.dart'; // import 'package:grocery_app/utils/constants/color_constant.dart';
import 'package:grocery_app/utils/extensions/uicontext.dart'; // import 'package:grocery_app/utils/extensions/uicontext.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; // import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
class MapScreen extends StatefulWidget { // class MapScreen extends StatefulWidget {
const MapScreen({super.key}); // const MapScreen({super.key});
@override // @override
State<MapScreen> createState() => _MapScreenState(); // State<MapScreen> createState() => _MapScreenState();
} // }
class _MapScreenState extends State<MapScreen> { // class _MapScreenState extends State<MapScreen> {
final cSearch = TextEditingController(); // final cSearch = TextEditingController();
@override // @override
Widget build(BuildContext context) { // Widget build(BuildContext context) {
return Scaffold( // return Scaffold(
appBar: AppBar( // appBar: AppBar(
centerTitle: true, // centerTitle: true,
leading: Center( // leading: Center(
child: SizedBox( // child: SizedBox(
height: 20, // height: 20,
width: 20, // width: 20,
child: InkWell( // child: InkWell(
onTap: () { // onTap: () {
Navigator.of(context).pop(); // Navigator.of(context).pop();
}, // },
child: SvgPicture.asset( // child: SvgPicture.asset(
APPASSETS.back, // APPASSETS.back,
height: 20, // height: 20,
width: 20, // width: 20,
) // )
), // ),
), // ),
), // ),
title: const Text( // title: const Text(
"Confirm Delivery Location", // "Confirm Delivery Location",
style: TextStyle( // style: TextStyle(
fontSize: 20, // fontSize: 20,
fontWeight: FontWeight.w700, // fontWeight: FontWeight.w700,
), // ),
), // ),
), // ),
body: Stack( // body: Stack(
children: [ // children: [
Container( // Container(
color: Colors.grey.withOpacity(0.4), // color: Colors.grey.withOpacity(0.4),
child: const Center( // child: const Center(
child: Text("Map"), // child: Text("Map"),
), // ),
), // ),
Positioned( // Positioned(
top: 15, // top: 15,
left: 15, // left: 15,
right: 15, // right: 15,
child: Container( // child: Container(
height: 50, // height: 50,
width: MediaQuery.sizeOf(context).width, // width: MediaQuery.sizeOf(context).width,
decoration: BoxDecoration( // decoration: BoxDecoration(
color: Colors.white, // color: Colors.white,
borderRadius: BorderRadius.circular(5), // borderRadius: BorderRadius.circular(5),
), // ),
child: TextFormField( // child: TextFormField(
controller: cSearch, // controller: cSearch,
onChanged: (c) { // onChanged: (c) {
setState(() {}); // setState(() {});
}, // },
decoration: InputDecoration( // decoration: InputDecoration(
border: InputBorder.none, // border: InputBorder.none,
fillColor: Colors.transparent, // fillColor: Colors.transparent,
prefixIcon: Icon(MdiIcons.magnify), // prefixIcon: Icon(MdiIcons.magnify),
hintText: 'Search', // hintText: 'Search',
hintStyle: context.customRegular(APPCOLOR.grey666666, 18), // hintStyle: context.customRegular(APPCOLOR.grey666666, 18),
isCollapsed: true, // isCollapsed: true,
contentPadding: const EdgeInsets.symmetric(vertical: 12, horizontal: 10), // contentPadding: const EdgeInsets.symmetric(vertical: 12, horizontal: 10),
), // ),
), // ),
), // ),
) // )
], // ],
), // ),
floatingActionButton: Padding( // floatingActionButton: Padding(
padding: const EdgeInsets.only(bottom: 80), // padding: const EdgeInsets.only(bottom: 80),
child: FloatingActionButton( // child: FloatingActionButton(
backgroundColor: Colors.transparent, // backgroundColor: Colors.transparent,
elevation: 0, // elevation: 0,
child: Container( // child: Container(
decoration: BoxDecoration( // decoration: BoxDecoration(
shape: BoxShape.circle, // shape: BoxShape.circle,
color: APPCOLOR.lightGreen, // color: APPCOLOR.lightGreen,
), // ),
child: Center( // child: Center(
child: Icon( // child: Icon(
MdiIcons.crosshairsGps, // MdiIcons.crosshairsGps,
color: Colors.white, // color: Colors.white,
), // ),
), // ),
), // ),
onPressed: () {}, // onPressed: () {},
), // ),
), // ),
bottomSheet: Container( // bottomSheet: Container(
height: 205, // height: 205,
decoration: const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.only(topLeft: Radius.circular(15), topRight: Radius.circular(15))), // decoration: const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.only(topLeft: Radius.circular(15), topRight: Radius.circular(15))),
width: MediaQuery.of(context).size.width, // width: MediaQuery.of(context).size.width,
child: Padding( // child: Padding(
padding: const EdgeInsets.all(15), // padding: const EdgeInsets.all(15),
child: Column( // child: Column(
mainAxisAlignment: MainAxisAlignment.start, // mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, // crossAxisAlignment: CrossAxisAlignment.start,
children: [ // children: [
Row( // Row(
mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
children: [ // children: [
Container( // Container(
height: 2, // height: 2,
width: 50, // width: 50,
color: Colors.grey.withOpacity(0.5), // color: Colors.grey.withOpacity(0.5),
), // ),
], // ],
), // ),
const SizedBox( // const SizedBox(
height: 15, // height: 15,
), // ),
Text( // Text(
"Select Location", // "Select Location",
style: context.customExtraBold(Colors.black, 18), // style: context.customExtraBold(Colors.black, 18),
), // ),
const SizedBox( // const SizedBox(
height: 20, // height: 20,
), // ),
const Text("4517 wasington Ave, wasington, Manchester, Kettucy, 369525"), // const Text("4517 wasington Ave, wasington, Manchester, Kettucy, 369525"),
const SizedBox( // const SizedBox(
height: 20, // height: 20,
), // ),
Row( // Row(
children: [ // children: [
Expanded( // Expanded(
child: InkWell( // child: InkWell(
onTap: () { // onTap: () {
Navigator.of(context).push(MaterialPageRoute( // Navigator.of(context).push(MaterialPageRoute(
builder: (context) { // builder: (context) {
return const MapScreen(); // return const MapScreen();
}, // },
)); // ));
}, // },
child: Container( // child: Container(
height: 50, // height: 50,
decoration: BoxDecoration(color: APPCOLOR.lightGreen, borderRadius: BorderRadius.circular(10)), // decoration: BoxDecoration(color: APPCOLOR.lightGreen, borderRadius: BorderRadius.circular(10)),
child: Row( // child: Row(
mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, // crossAxisAlignment: CrossAxisAlignment.center,
children: [ // children: [
const Icon( // const Icon(
Icons.add, // Icons.add,
color: Colors.white, // color: Colors.white,
), // ),
Text( // Text(
"Add New Address", // "Add New Address",
style: context.customMedium(Colors.white, 16), // style: context.customMedium(Colors.white, 16),
), // ),
], // ],
), // ),
), // ),
)), // )),
], // ],
), // ),
], // ],
), // ),
), // ),
), // ),
); // );
} // }
} // }

View File

@@ -27,7 +27,7 @@ class _OnBoardingScreenState extends State<OnBoardingScreen> {
skipFunction() { skipFunction() {
SharedPrefUtils.setFreshInstall(isFresh: false).then( SharedPrefUtils.setFreshInstall(isFresh: false).then(
(value) => context.clearAndPush(routePath: MyRoutes.LOGIN, args: 0), (value) => context.clearAndPush(routePath: MyRoutes.BOTTOMNAV, args: 0),
); );
// Navigator.pushReplacement(context, MaterialPageRoute( // Navigator.pushReplacement(context, MaterialPageRoute(

View File

@@ -3,6 +3,8 @@ import 'package:grocery_app/src/common_widget/network_image.dart';
import 'package:grocery_app/src/logic/provider/home_provider.dart'; import 'package:grocery_app/src/logic/provider/home_provider.dart';
import 'package:grocery_app/src/ui/card_checkout/card_checkout_screen.dart'; import 'package:grocery_app/src/ui/card_checkout/card_checkout_screen.dart';
import 'package:grocery_app/src/ui/edit_profile/edit_profile_screen.dart'; import 'package:grocery_app/src/ui/edit_profile/edit_profile_screen.dart';
import 'package:grocery_app/src/ui/map/google_map.dart';
import 'package:grocery_app/src/ui/mapscreen/map_screen.dart';
import 'package:grocery_app/src/ui/message/message_screen.dart'; import 'package:grocery_app/src/ui/message/message_screen.dart';
import 'package:grocery_app/src/ui/notification/notification_screen.dart'; import 'package:grocery_app/src/ui/notification/notification_screen.dart';
import 'package:grocery_app/src/ui/rating_review/rating_review_screen.dart'; import 'package:grocery_app/src/ui/rating_review/rating_review_screen.dart';
@@ -140,7 +142,6 @@ class _ProfileScreenState extends State<ProfileScreen> {
}, },
body: Column( body: Column(
children: [ children: [
Expanded( Expanded(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
@@ -253,14 +254,24 @@ class _ProfileScreenState extends State<ProfileScreen> {
title: const Text('Grocery List'), title: const Text('Grocery List'),
trailing: Icon(MdiIcons.chevronRight), trailing: Icon(MdiIcons.chevronRight),
), ),
ListTile(
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (context) {
return MapScreen();
},
));
},
leading: Icon(MdiIcons.basketOutline),
title: const Text('Map List'),
trailing: Icon(MdiIcons.chevronRight),
),
], ],
), ),
), ),
), ),
InkWell( InkWell(
onTap: () onTap: () {
{
print("fjnghkjfjghj"); print("fjnghkjfjghj");
Provider.of<ProductProvider>(context, listen: false) Provider.of<ProductProvider>(context, listen: false)
.customerLogOut(context); .customerLogOut(context);

View File

@@ -6,12 +6,16 @@ import FlutterMacOS
import Foundation import Foundation
import connectivity_plus import connectivity_plus
import geolocator_apple
import package_info_plus
import path_provider_foundation import path_provider_foundation
import shared_preferences_foundation import shared_preferences_foundation
import sqflite_darwin import sqflite_darwin
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin")) ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))

View File

@@ -53,26 +53,26 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: cached_network_image name: cached_network_image
sha256: "7c1183e361e5c8b0a0f21a28401eecdbde252441106a9816400dd4c2b2424916" sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.4.1" version: "3.3.1"
cached_network_image_platform_interface: cached_network_image_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: cached_network_image_platform_interface name: cached_network_image_platform_interface
sha256: "35814b016e37fbdc91f7ae18c8caf49ba5c88501813f73ce8a07027a395e2829" sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.1.1" version: "4.0.0"
cached_network_image_web: cached_network_image_web:
dependency: transitive dependency: transitive
description: description:
name: cached_network_image_web name: cached_network_image_web
sha256: "980842f4e8e2535b8dbd3d5ca0b1f0ba66bf61d14cc3a17a9b4788a3685ba062" sha256: "205d6a9f1862de34b93184f22b9d2d94586b2f05c581d546695e3d8f6a805cd7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
carousel_slider: carousel_slider:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -129,6 +129,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.6" version: "3.0.6"
csslib:
dependency: transitive
description:
name: csslib
sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
cupertino_icons: cupertino_icons:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -226,10 +234,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: flutter_cache_manager name: flutter_cache_manager
sha256: "400b6592f16a4409a7f2bb929a9a7e38c72cceb8ffb99ee57bbf2cb2cecf8386" sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.4.1" version: "3.3.1"
flutter_google_places:
dependency: "direct main"
description:
name: flutter_google_places
sha256: e9fb23ceacdc7359aa759627550146f7fd3ae6c067d16f39f3c50d8feebf4809
url: "https://pub.dev"
source: hosted
version: "0.3.0"
flutter_lints: flutter_lints:
dependency: "direct dev" dependency: "direct dev"
description: description:
@@ -238,6 +254,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.2" version: "3.0.2"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e"
url: "https://pub.dev"
source: hosted
version: "2.0.24"
flutter_screenutil: flutter_screenutil:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -258,10 +282,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_svg name: flutter_svg
sha256: c200fd79c918a40c5cd50ea0877fa13f81bdaf6f0a5d3dbcc2a13e3285d6aa1b sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.17" version: "2.0.9"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@@ -296,6 +320,86 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.1" version: "3.0.1"
geocoding:
dependency: "direct main"
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: "direct main"
description:
name: geolocator
sha256: d2ec66329cab29cb297d51d96c067d457ca519dca8589665fa0b82ebacb7dbe4
url: "https://pub.dev"
source: hosted
version: "13.0.2"
geolocator_android:
dependency: transitive
description:
name: geolocator_android
sha256: "7aefc530db47d90d0580b552df3242440a10fe60814496a979aa67aa98b1fd47"
url: "https://pub.dev"
source: hosted
version: "4.6.1"
geolocator_apple:
dependency: transitive
description:
name: geolocator_apple
sha256: "6154ea2682563f69fc0125762ed7e91e7ed85d0b9776595653be33918e064807"
url: "https://pub.dev"
source: hosted
version: "2.3.8+1"
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: "2ed69328e05cd94e7eb48bb0535f5fc0c0c44d1c4fa1e9737267484d05c29b5e"
url: "https://pub.dev"
source: hosted
version: "4.1.1"
geolocator_windows:
dependency: transitive
description:
name: geolocator_windows
sha256: "53da08937d07c24b0d9952eb57a3b474e29aae2abf9dd717f7e1230995f13f0e"
url: "https://pub.dev"
source: hosted
version: "0.2.3"
get_it: get_it:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -312,22 +416,94 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "14.7.1" version: "14.7.1"
google_api_headers:
dependency: "direct main"
description:
name: google_api_headers
sha256: b27a55935d5c51cedda8a925f5df8388cc327c94a47fef5a4335e8707e089878
url: "https://pub.dev"
source: hosted
version: "1.6.0"
google_fonts: google_fonts:
dependency: "direct main" dependency: "direct main"
description: description:
name: google_fonts name: google_fonts
sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 sha256: "6b6f10f0ce3c42f6552d1c70d2c28d764cf22bb487f50f66cca31dcd5194f4d6"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.2.1" version: "4.0.4"
google_maps:
dependency: transitive
description:
name: google_maps
sha256: "4d6e199c561ca06792c964fa24b2bac7197bf4b401c2e1d23e345e5f9939f531"
url: "https://pub.dev"
source: hosted
version: "8.1.1"
google_maps_flutter:
dependency: "direct main"
description:
name: google_maps_flutter
sha256: "209856c8e5571626afba7182cf634b2910069dc567954e76ec3e3fb37f5e9db3"
url: "https://pub.dev"
source: hosted
version: "2.10.0"
google_maps_flutter_android:
dependency: transitive
description:
name: google_maps_flutter_android
sha256: "1b69fbb3ab76e7a7dfcf25e60f32f81ae5d9b88285343eecb5479116d54be869"
url: "https://pub.dev"
source: hosted
version: "2.14.12"
google_maps_flutter_ios:
dependency: transitive
description:
name: google_maps_flutter_ios
sha256: "6f798adb0aa1db5adf551f2e39e24bd06c8c0fbe4de912fb2d9b5b3f48147b02"
url: "https://pub.dev"
source: hosted
version: "2.13.2"
google_maps_flutter_platform_interface:
dependency: transitive
description:
name: google_maps_flutter_platform_interface
sha256: a951981c22d790848efb9f114f81794945bc5c06bc566238a419a92f110af6cb
url: "https://pub.dev"
source: hosted
version: "2.9.5"
google_maps_flutter_web:
dependency: transitive
description:
name: google_maps_flutter_web
sha256: ff39211bd25d7fad125d19f757eba85bd154460907cd4d135e07e3d0f98a4130
url: "https://pub.dev"
source: hosted
version: "0.5.10"
google_maps_webservice:
dependency: transitive
description:
name: google_maps_webservice
sha256: d0ae4e4508afd74a3f051565261a3cdbae59db29448f9b6e6beb5674545e1eb7
url: "https://pub.dev"
source: hosted
version: "0.0.20-nullsafety.5"
html:
dependency: transitive
description:
name: html
sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec"
url: "https://pub.dev"
source: hosted
version: "0.15.5"
http: http:
dependency: transitive dependency: transitive
description: description:
name: http name: http
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.0" version: "0.13.6"
http_parser: http_parser:
dependency: transitive dependency: transitive
description: description:
@@ -344,6 +520,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.19.0" version: "0.19.0"
json_annotation:
dependency: transitive
description:
name: json_annotation
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
url: "https://pub.dev"
source: hosted
version: "4.9.0"
leak_tracker: leak_tracker:
dependency: transitive dependency: transitive
description: description:
@@ -456,6 +640,22 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.3" version: "1.1.3"
package_info_plus:
dependency: transitive
description:
name: package_info_plus
sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017"
url: "https://pub.dev"
source: hosted
version: "4.2.0"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
path: path:
dependency: transitive dependency: transitive
description: description:
@@ -580,10 +780,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: rxdart name: rxdart
sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" sha256: "2ef8b4e91cb3b55d155e0e34eeae0ac7107974e451495c955ac04ddee8cc21fd"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.28.0" version: "0.26.0"
sanitize_html:
dependency: transitive
description:
name: sanitize_html
sha256: "12669c4a913688a26555323fb9cec373d8f9fbe091f2d01c40c723b33caa8989"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
shared_preferences: shared_preferences:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -717,6 +925,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.2" version: "2.1.2"
stream_transform:
dependency: transitive
description:
name: stream_transform
sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871
url: "https://pub.dev"
source: hosted
version: "2.1.1"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
@@ -769,26 +985,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics name: vector_graphics
sha256: "27d5fefe86fb9aace4a9f8375b56b3c292b64d8c04510df230f849850d912cb7" sha256: "4ac59808bbfca6da38c99f415ff2d3a5d7ca0a6b4809c71d9cf30fba5daf9752"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.15" version: "1.1.10+1"
vector_graphics_codec: vector_graphics_codec:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics_codec name: vector_graphics_codec
sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146" sha256: f3247e7ab0ec77dc759263e68394990edc608fb2b480b80db8aa86ed09279e33
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.13" version: "1.1.10+1"
vector_graphics_compiler: vector_graphics_compiler:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics_compiler name: vector_graphics_compiler
sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad" sha256: "18489bdd8850de3dd7ca8a34e0c446f719ec63e2bab2e7a8cc66a9028dd76c5a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.16" version: "1.1.10+1"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
@@ -813,6 +1029,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.0" version: "1.1.0"
win32:
dependency: transitive
description:
name: win32
sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e
url: "https://pub.dev"
source: hosted
version: "5.10.1"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:

View File

@@ -12,18 +12,24 @@ dependencies:
sdk: flutter sdk: flutter
cupertino_icons: ^1.0.6 cupertino_icons: ^1.0.6
google_fonts: ^6.2.1 google_fonts:
flutter_svg: ^2.0.10+1 flutter_svg:
material_design_icons_flutter: ^7.0.7296 material_design_icons_flutter:
intl: ^0.19.0 intl:
otp_text_field: ^1.1.3 otp_text_field: ^1.1.3
cached_network_image: ^3.4.1 cached_network_image:
carousel_slider: ^5.0.0 carousel_slider: ^5.0.0
dots_indicator: ^3.0.0 dots_indicator: ^3.0.0
readmore: ^3.0.0 readmore: ^3.0.0
flutter_toggle_tab: ^1.4.1 flutter_toggle_tab: ^1.4.1
dotted_border: ^2.1.0 dotted_border: ^2.1.0
go_router: ^14.2.0 go_router: ^14.2.0
google_maps_flutter:
geolocator:
geocoding:
flutter_google_places:
google_api_headers:

View File

@@ -7,8 +7,11 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <connectivity_plus/connectivity_plus_windows_plugin.h> #include <connectivity_plus/connectivity_plus_windows_plugin.h>
#include <geolocator_windows/geolocator_windows.h>
void RegisterPlugins(flutter::PluginRegistry* registry) { void RegisterPlugins(flutter::PluginRegistry* registry) {
ConnectivityPlusWindowsPluginRegisterWithRegistrar( ConnectivityPlusWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
GeolocatorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GeolocatorWindows"));
} }

View File

@@ -4,6 +4,7 @@
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
connectivity_plus connectivity_plus
geolocator_windows
) )
list(APPEND FLUTTER_FFI_PLUGIN_LIST list(APPEND FLUTTER_FFI_PLUGIN_LIST