diff --git a/.DS_Store b/.DS_Store index facfede..dcd313c 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 3634139..117d0ca 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -992,7 +992,7 @@ "languageVersion": "3.4" } ], - "generated": "2025-02-14T13:22:19.642868Z", + "generated": "2025-02-22T07:04:58.909640Z", "generator": "pub", "generatorVersion": "3.4.4", "flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter", diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 9a329e9..c229195 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":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/","native_build":true,"dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","native_build":true,"dependencies":[]},{"name":"geocoding_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/","native_build":true,"dependencies":[]},{"name":"google_maps_flutter_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+2/","native_build":true,"dependencies":[]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.2/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.0.13/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.22/","native_build":true,"dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","native_build":true,"dependencies":[]},{"name":"geocoding_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/","native_build":true,"dependencies":[]},{"name":"google_api_headers","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/","native_build":true,"dependencies":["package_info_plus"]},{"name":"google_maps_flutter_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_android-0.8.12+12/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_android-2.2.10/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_android-2.3.2/","native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.9/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"file_selector_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.4+2/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.0.11/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+2/","native_build":false,"dependencies":["file_selector_macos"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.2/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":false,"dependencies":[]},{"name":"file_selector_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.3+2/","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/","native_build":false,"dependencies":["file_selector_linux"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"file_selector_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+3/","native_build":true,"dependencies":[]},{"name":"geolocator_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/","native_build":false,"dependencies":["file_selector_windows"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","dependencies":[]},{"name":"flutter_inappwebview_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.0.8/","dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","dependencies":[]},{"name":"geolocator_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/","dependencies":[]},{"name":"google_maps_flutter_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.6/","dependencies":[]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.2/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"flutter_inappwebview","dependencies":["flutter_inappwebview_android","flutter_inappwebview_ios","flutter_inappwebview_macos","flutter_inappwebview_web"]},{"name":"flutter_inappwebview_android","dependencies":[]},{"name":"flutter_inappwebview_ios","dependencies":[]},{"name":"flutter_inappwebview_macos","dependencies":[]},{"name":"flutter_inappwebview_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"fluttertoast","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":"google_api_headers","dependencies":["package_info_plus"]},{"name":"google_maps_flutter","dependencies":["google_maps_flutter_android","google_maps_flutter_ios","google_maps_flutter_web"]},{"name":"google_maps_flutter_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"google_maps_flutter_ios","dependencies":[]},{"name":"google_maps_flutter_web","dependencies":[]},{"name":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]},{"name":"package_info_plus","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":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","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":"2025-02-14 18:52:19.891429","version":"3.22.3"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/","native_build":true,"dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","native_build":true,"dependencies":[]},{"name":"geocoding_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/","native_build":true,"dependencies":[]},{"name":"google_maps_flutter_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+2/","native_build":true,"dependencies":[]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.2/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.0.13/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.22/","native_build":true,"dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","native_build":true,"dependencies":[]},{"name":"geocoding_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/","native_build":true,"dependencies":[]},{"name":"google_api_headers","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/","native_build":true,"dependencies":["package_info_plus"]},{"name":"google_maps_flutter_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_android-0.8.12+12/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_android-2.2.10/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_android-2.3.2/","native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.9/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"file_selector_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.4+2/","native_build":true,"dependencies":[]},{"name":"flutter_inappwebview_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.0.11/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+2/","native_build":false,"dependencies":["file_selector_macos"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.2/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":false,"dependencies":[]},{"name":"file_selector_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.3+2/","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/","native_build":false,"dependencies":["file_selector_linux"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","native_build":true,"dependencies":[]},{"name":"file_selector_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+3/","native_build":true,"dependencies":[]},{"name":"geolocator_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/","native_build":false,"dependencies":["file_selector_windows"]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/","dependencies":[]},{"name":"flutter_inappwebview_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.0.8/","dependencies":[]},{"name":"fluttertoast","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/","dependencies":[]},{"name":"geolocator_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/","dependencies":[]},{"name":"google_maps_flutter_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.6/","dependencies":[]},{"name":"package_info_plus","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.2/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"flutter_inappwebview","dependencies":["flutter_inappwebview_android","flutter_inappwebview_ios","flutter_inappwebview_macos","flutter_inappwebview_web"]},{"name":"flutter_inappwebview_android","dependencies":[]},{"name":"flutter_inappwebview_ios","dependencies":[]},{"name":"flutter_inappwebview_macos","dependencies":[]},{"name":"flutter_inappwebview_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"fluttertoast","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":"google_api_headers","dependencies":["package_info_plus"]},{"name":"google_maps_flutter","dependencies":["google_maps_flutter_android","google_maps_flutter_ios","google_maps_flutter_web"]},{"name":"google_maps_flutter_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"google_maps_flutter_ios","dependencies":[]},{"name":"google_maps_flutter_web","dependencies":[]},{"name":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]},{"name":"package_info_plus","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":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","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":"2025-02-22 12:34:59.149956","version":"3.22.3"} \ No newline at end of file diff --git a/lib/src/logic/provider/addTocart_provider.dart b/lib/src/logic/provider/addTocart_provider.dart index f1a36c9..f4b6818 100644 --- a/lib/src/logic/provider/addTocart_provider.dart +++ b/lib/src/logic/provider/addTocart_provider.dart @@ -293,7 +293,7 @@ class AddtocartProvider extends ChangeNotifier { }; } - print("ksdjfkgjlhdfkg ${data}"); + try { var result = await _homeRepo.paymentOrder(data); return result.fold( @@ -319,6 +319,15 @@ class AddtocartProvider extends ChangeNotifier { ); } catch (e) { ispaymentLoader = false; + + Fluttertoast.showToast( + msg: "Internal server error!", + toastLength: Toast.LENGTH_SHORT, + gravity: ToastGravity.CENTER, + backgroundColor: Colors.red, + textColor: Colors.white, + fontSize: 14.0, + ); notifyListeners(); } } diff --git a/lib/src/logic/provider/home_provider.dart b/lib/src/logic/provider/home_provider.dart index a8087ae..bfffe4c 100644 --- a/lib/src/logic/provider/home_provider.dart +++ b/lib/src/logic/provider/home_provider.dart @@ -1,5 +1,9 @@ +import 'dart:convert'; + import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; +import 'package:geolocator/geolocator.dart'; +import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:grocery_app/src/core/network_services/service_locator.dart'; import 'package:grocery_app/src/core/routes/routes.dart'; import 'package:grocery_app/src/data/allProduct_model.dart'; @@ -13,6 +17,10 @@ import 'package:grocery_app/src/logic/repo/product_repo.dart'; import 'package:grocery_app/utils/constants/shared_pref_utils.dart'; import 'package:grocery_app/utils/extensions/extensions.dart'; +import 'package:http/http.dart' as http; +import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; +import 'package:provider/provider.dart'; + class ProductProvider extends ChangeNotifier { final _homeRepo = getIt(); @@ -95,21 +103,24 @@ class ProductProvider extends ChangeNotifier { List homeproducts = []; - - Future getHomeProduct(BuildContext context,String id, String search) async - { + Future getHomeProduct(BuildContext context, String id, String search, + String minPrice, String maxprice, orderby) async { isHomeLoadingg = true; notifyListeners(); - var data = {"minPrice": "", "minPrice": "", "search": search}; - var result = await _homeRepo.getAllProduct(data, context,id); + var data = { + "minPrice": "${minPrice}", + "minPrice": "${maxprice}", + "search": search, + "sortBy": orderby + }; + var result = await _homeRepo.getAllProduct(data, context, id); return result.fold( (error) { isLoadingg = false; notifyListeners(); }, - (response) - { + (response) { homeproducts = response.data!; isHomeLoadingg = false; @@ -147,11 +158,10 @@ class ProductProvider extends ChangeNotifier { bool isBestdealingloading = true; - Future getBestDealProduct(BuildContext context,String search) async - { + Future getBestDealProduct(BuildContext context, String search) async { isBestdealingloading = true; notifyListeners(); - var data = {"minPrice": "", "minPrice": "", "search": search}; + var data = {"minPrice": "", "minPrice": "", "search": search}; var result = await _homeRepo.getBestDealProduct(data, context); return result.fold( (error) { @@ -166,9 +176,6 @@ class ProductProvider extends ChangeNotifier { ); } - - - List categoryList = []; bool iscategroyloading = true; @@ -675,4 +682,83 @@ class ProductProvider extends ChangeNotifier { _selectedIndex = index; notifyListeners(); } + + Future 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.high, + ); + LatLng currentLatLng = LatLng(position.latitude, position.longitude); + + _getAddressFromLatLng(position.latitude, position.longitude); + } + + String googleApiKey = "AIzaSyAi3_Dls63iGs7Nccgdm-4FkS0rhT03-4U"; + + String getCurrentAdd = ''; + + Future _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 + + // _RoadController.text = result["formatted_address"]; + List components = result["address_components"]; + + String roadName = ""; + String colony = ""; + String buildingName = ""; + String pincode = ""; + + 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 + } else if (types.contains("postal_code")) { + pincode = component["long_name"]; // Extract Pin Code + } + } + + // setState(() { + // // _address = formattedAddress; + // _roadName = roadName; + // _colony = colony; + // _buildingName = buildingName; + // }); + + getCurrentAdd = result["formatted_address"] + pincode; + notifyListeners(); + + print( + "Full Address: ${result["formatted_address"]} ${response.body} sdfsgd ${pincode}"); + print("Road Name: $roadName"); + print("Colony: $colony"); + print("Building Name: $buildingName"); + } else {} + } else {} + } catch (e) { + print("Error fetching address: $e"); + } + } } diff --git a/lib/src/logic/provider/order_provider.dart b/lib/src/logic/provider/order_provider.dart index 38bb151..1f9fc43 100644 --- a/lib/src/logic/provider/order_provider.dart +++ b/lib/src/logic/provider/order_provider.dart @@ -35,4 +35,6 @@ class OrderProvider extends ChangeNotifier { notifyListeners(); } } + + } diff --git a/lib/src/logic/provider/profile_provider.dart b/lib/src/logic/provider/profile_provider.dart index 13c7d92..d71bb5f 100644 --- a/lib/src/logic/provider/profile_provider.dart +++ b/lib/src/logic/provider/profile_provider.dart @@ -122,13 +122,13 @@ class ProfileProvider extends ChangeNotifier { await SharedPrefUtils.saveUser(user: response); allitem = response!; - _profile = response.img; - _name = response.firstName + " " + response.lastName; - _email = response.email; + _profile = response.img ?? ''; + _name = response.firstName ?? "" + " " + response.lastName ?? ''; + _email = response.email ?? ""; - APPSTRING.userName = response.firstName; - APPSTRING.userLastName = response.lastName; - APPSTRING.userProfile = response.img; + APPSTRING.userName = response.firstName ?? ""; + APPSTRING.userLastName = response.lastName ?? ""; + APPSTRING.userProfile = response.img ?? ""; isLoading = false; notifyListeners(); }, diff --git a/lib/src/ui/header.dart b/lib/src/ui/header.dart index 00272d4..7a93cf1 100644 --- a/lib/src/ui/header.dart +++ b/lib/src/ui/header.dart @@ -1,60 +1,65 @@ import 'package:flutter/material.dart'; +import 'package:grocery_app/src/logic/provider/home_provider.dart'; import 'package:grocery_app/utils/constants/color_constant.dart'; import 'package:grocery_app/utils/extensions/uicontext.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; +import 'package:provider/provider.dart'; class Header extends StatelessWidget { const Header({super.key}); @override Widget build(BuildContext context) { - return Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Icon( - MdiIcons.mapMarkerOutline, - color: APPCOLOR.appGreen, - size: 30, - ), - const SizedBox( - width: 10, - ), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - Text( - "Home", - style: context.customMedium(APPCOLOR.black333333, 18), - ), - const SizedBox( - width: 5, - ), - Icon( - MdiIcons.chevronDown, - color: APPCOLOR.black333333, - size: 30, - ) - ], - ), - Text( - "639| Elgin St. Celina, Delaware 10299", - style: context.customMedium(APPCOLOR.grey666666, 14), - ), - ], - )), - const SizedBox( - width: 10, - ), - Icon( - MdiIcons.shoppingOutline, - color: APPCOLOR.balck1A1A1A, - size: 30, - ), - ], - ); + return Consumer(builder: (context, provider, child) { + return Row( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Icon( + MdiIcons.mapMarkerOutline, + color: APPCOLOR.appGreen, + size: 30, + ), + const SizedBox( + width: 10, + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Text( + "Home", + style: context.customMedium(APPCOLOR.black333333, 18), + ), + const SizedBox( + width: 5, + ), + Icon( + MdiIcons.chevronDown, + color: APPCOLOR.black333333, + size: 30, + ) + ], + ), + Text( + provider.getCurrentAdd, + // "639| Elgin St. Celina, Delaware 10299", + style: context.customMedium(APPCOLOR.grey666666, 14), + ), + ], + )), + const SizedBox( + width: 10, + ), + // Icon( + // MdiIcons.shoppingOutline, + // color: APPCOLOR.balck1A1A1A, + // size: 30, + // ), + ], + ); + }); } } diff --git a/lib/src/ui/home/home_screen.dart b/lib/src/ui/home/home_screen.dart index 7475643..9326e62 100644 --- a/lib/src/ui/home/home_screen.dart +++ b/lib/src/ui/home/home_screen.dart @@ -33,12 +33,14 @@ class _HomeScreenState extends State { WidgetsBinding.instance.addPostFrameCallback((_) { final productProvider = Provider.of(context, listen: false); + productProvider .determinePosition(); productProvider.getBanners(context); - productProvider.getHomeProduct(context, "", ''); - productProvider.getBestDealProduct(context,''); + productProvider.getHomeProduct(context, "", '', '', '', ''); + productProvider.getBestDealProduct(context, ''); productProvider.getAllcategory(context); + getUserDetails(); }); } @@ -69,7 +71,8 @@ class _HomeScreenState extends State { Row( children: [ Consumer( - builder: (context, provider, child) { + builder: (context, provider, child) + { return Expanded( child: Container( height: 50, @@ -86,8 +89,8 @@ class _HomeScreenState extends State { fillColor: Colors.transparent, suffixIcon: InkWell( onTap: () { - provider.getHomeProduct( - context, "", provider.searchValue); + provider.getHomeProduct(context, "", + provider.searchValue, '', '', ''); }, child: Icon(MdiIcons.magnify)), hintText: 'Search', @@ -659,7 +662,7 @@ class _HomeScreenState extends State { }, ) : provider.homeproducts.isEmpty - ? Center(child: Text('No products available')) + ? Center(child: Text('')) : GridView.builder( shrinkWrap: true, itemCount: provider.homeproducts.length, @@ -735,10 +738,11 @@ class _HomeScreenState extends State { Divider( thickness: 0.2, ), - _buildSortOption(context, sortProvider, 0, "Relevance"), - _buildSortOption(context, sortProvider, 1, "Popularity"), + _buildSortOption(context, sortProvider, 0, "All"), + _buildSortOption(context, sortProvider, 1, "Relevance"), + _buildSortOption(context, sortProvider, 2, "Popularity"), _buildSortOption( - context, sortProvider, 2, "Price: Low to High"), + context, sortProvider, 3, "Price: Low to High"), ], ), ); @@ -758,7 +762,24 @@ class _HomeScreenState extends State { ? Icon(Icons.check_circle, color: Colors.green) : Icon(Icons.radio_button_unchecked, color: Colors.grey), onTap: () { - provider.getHomeProduct(context, '', ''); + switch (index) { + case 0: + provider.getHomeProduct(context, '', '', "", "", ''); + break; + case 1: + provider.getHomeProduct(context, '', '', "", "", "featured"); + break; + case 2: + provider.getHomeProduct(context, '', '', "", "", "popularity"); + break; + case 3: + provider.getHomeProduct(context, '', '', "100", "100000000", ''); + break; + default: + provider.getHomeProduct(context, '', '', "", "", ''); + } + + // provider.getHomeProduct(context, '', '', "100", "100000000"); provider.setSelectedIndex(context, index); Navigator.pop(context); // Close the bottom sheet }, diff --git a/lib/src/ui/login/login_screen.dart b/lib/src/ui/login/login_screen.dart index 20966aa..75839a1 100644 --- a/lib/src/ui/login/login_screen.dart +++ b/lib/src/ui/login/login_screen.dart @@ -86,7 +86,8 @@ class _LoginScreenState extends State { padding: context.bodyAllPadding.copyWith(bottom: 20), child: Center( child: InkWell( - onTap: () async { + onTap: () async + { if (_formKey.currentState?.validate() ?? false) { final success = await pageNotifier.sendOtp(phoneController.text, context); diff --git a/lib/src/ui/login/signup_screen.dart b/lib/src/ui/login/signup_screen.dart index a58e066..35acd54 100644 --- a/lib/src/ui/login/signup_screen.dart +++ b/lib/src/ui/login/signup_screen.dart @@ -93,6 +93,8 @@ class _SingnuScreenState extends State { }, ), ])), + + Text( "", style: context.customMedium(APPCOLOR.balck1A1A1A, 18), diff --git a/lib/src/ui/map/add_locations.dart b/lib/src/ui/map/add_locations.dart index 1213348..9d098c9 100644 --- a/lib/src/ui/map/add_locations.dart +++ b/lib/src/ui/map/add_locations.dart @@ -120,6 +120,9 @@ class _AddLocationAddressState extends State { } } + + + void _onMapTapped(LatLng tappedPoint) { setState(() { _selectedLocation = tappedPoint; diff --git a/lib/src/ui/otp/login_otp.dart b/lib/src/ui/otp/login_otp.dart index a03ad23..42dfd67 100644 --- a/lib/src/ui/otp/login_otp.dart +++ b/lib/src/ui/otp/login_otp.dart @@ -85,7 +85,8 @@ class _LoginOtpScreenState extends State { style: const TextStyle(fontSize: 17), textFieldAlignment: MainAxisAlignment.spaceBetween, fieldStyle: FieldStyle.box, - onCompleted: (pin) async { + onCompleted: (pin) async + { final success = await pageNotifier.loginOtp(pin, context); if (success) diff --git a/lib/src/ui/profilepage/profile_screen.dart b/lib/src/ui/profilepage/profile_screen.dart index 39008a5..45eb98a 100644 --- a/lib/src/ui/profilepage/profile_screen.dart +++ b/lib/src/ui/profilepage/profile_screen.dart @@ -32,8 +32,7 @@ class _ProfileScreenState extends State { var top = 0.0; @override - void initState() - { + void initState() { Provider.of(context, listen: false).getProfile(context); getUserDetails(); super.initState(); @@ -53,8 +52,7 @@ class _ProfileScreenState extends State { body: NestedScrollView( headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { return [ - Consumer(builder: (context, provider, child) - { + Consumer(builder: (context, provider, child) { return SliverAppBar( expandedHeight: 180.0, floating: false, @@ -187,18 +185,18 @@ class _ProfileScreenState extends State { title: const Text('Change Password'), trailing: Icon(MdiIcons.chevronRight), ), - ListTile( - onTap: () { - // Navigator.of(context).push(MaterialPageRoute( - // builder: (context) { - // return const CardCheckoutScreen(); - // }, - // )); - }, - leading: Icon(MdiIcons.cardOutline), - title: const Text('Payment Method'), - trailing: Icon(MdiIcons.chevronRight), - ), + // ListTile( + // onTap: () { + // // Navigator.of(context).push(MaterialPageRoute( + // // builder: (context) { + // // return const CardCheckoutScreen(); + // // }, + // // )); + // }, + // leading: Icon(MdiIcons.cardOutline), + // title: const Text('Payment Method'), + // trailing: Icon(MdiIcons.chevronRight), + // ), ListTile( onTap: () { context.push(MyRoutes.MYORDER); @@ -207,18 +205,18 @@ class _ProfileScreenState extends State { title: const Text('My Order'), trailing: Icon(MdiIcons.chevronRight), ), - ListTile( - onTap: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (context) { - return const NotificationScreen(); - }, - )); - }, - leading: Icon(MdiIcons.bellOutline), - title: const Text('Notifications'), - trailing: Icon(MdiIcons.chevronRight), - ), + // ListTile( + // onTap: () { + // Navigator.of(context).push(MaterialPageRoute( + // builder: (context) { + // return const NotificationScreen(); + // }, + // )); + // }, + // leading: Icon(MdiIcons.bellOutline), + // title: const Text('Notifications'), + // trailing: Icon(MdiIcons.chevronRight), + // ), // ListTile( // onTap: () { // Navigator.of(context).push(MaterialPageRoute( @@ -284,7 +282,6 @@ class _ProfileScreenState extends State { ), InkWell( onTap: () { - print("fjnghkjfjghj"); Provider.of(context, listen: false) .customerLogOut(context); }, diff --git a/lib/src/ui/splash/splash_screen.dart b/lib/src/ui/splash/splash_screen.dart index a5b068f..a2a1b2a 100644 --- a/lib/src/ui/splash/splash_screen.dart +++ b/lib/src/ui/splash/splash_screen.dart @@ -29,11 +29,12 @@ class _SplashScreenState extends State { @override void initState() { - Future.delayed(const Duration(seconds: 2), () async { + Future.delayed(const Duration(seconds: 2), () async + { - Provider.of(context, listen: false) - .refreshToken(context); - if (await SharedPrefUtils.isFreshInstall()) { + Provider.of(context, listen: false) .refreshToken(context); + if (await SharedPrefUtils.isFreshInstall()) + { context.clearAndPush(routePath: MyRoutes.ONBOARDING); } else { context.clearAndPush(routePath: MyRoutes.BOTTOMNAV); diff --git a/lib/utils/constants/shared_pref_utils.dart b/lib/utils/constants/shared_pref_utils.dart index 5dab2f8..47e5b46 100644 --- a/lib/utils/constants/shared_pref_utils.dart +++ b/lib/utils/constants/shared_pref_utils.dart @@ -46,7 +46,7 @@ class SharedPrefUtils { }) async { SharedPreferences prefs = await SharedPreferences.getInstance(); - print("lkdjglkdfhgkhl ${user.firstName}"); + print("lkdjglkdfhgkhl ${user.firstName ?? " "}"); await prefs.setString(KEY_FIRSTNAME, user.firstName ?? ""); await prefs.setString(KEY_LAST_NAME, user.lastName ?? ""); await prefs.setString(KEY_EMAIL, user.email ?? " ");