diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 66a1a87..7dd2a82 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":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_ios-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.4/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_plugin_android_lifecycle","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.31/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_android","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_android-1.0.52/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"open_file_android","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_android-1.0.6/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_android-2.2.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.13/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_android","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.20/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_mac","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_mac-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_macos-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.3/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_linux-0.0.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_linux-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/","native_build":true,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_windows-0.0.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_windows-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","dependencies":[],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.3.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"flutter_secure_storage_web","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","dependencies":[],"dev_dependency":false},{"name":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.1.0/","dependencies":[],"dev_dependency":false},{"name":"open_file_web","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_web-0.0.4/","dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","dependencies":[],"dev_dependency":false},{"name":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_web","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_web-31.1.19/","dependencies":[],"dev_dependency":false},{"name":"url_launcher_web","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.1/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_messaging","dependencies":["firebase_core","firebase_messaging_web"]},{"name":"firebase_messaging_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_android","google_sign_in_ios","google_sign_in_web"]},{"name":"google_sign_in_android","dependencies":[]},{"name":"google_sign_in_ios","dependencies":[]},{"name":"google_sign_in_web","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"open_file","dependencies":["open_file_android","open_file_web","open_file_ios","open_file_mac","open_file_windows","open_file_linux"]},{"name":"open_file_android","dependencies":[]},{"name":"open_file_ios","dependencies":[]},{"name":"open_file_linux","dependencies":[]},{"name":"open_file_mac","dependencies":[]},{"name":"open_file_web","dependencies":[]},{"name":"open_file_windows","dependencies":[]},{"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":"pdf_render","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":"syncfusion_flutter_pdfviewer","dependencies":["url_launcher","device_info_plus","syncfusion_pdfviewer_web","syncfusion_pdfviewer_macos","syncfusion_pdfviewer_windows","syncfusion_pdfviewer_linux"]},{"name":"syncfusion_pdfviewer_linux","dependencies":[]},{"name":"syncfusion_pdfviewer_macos","dependencies":[]},{"name":"syncfusion_pdfviewer_web","dependencies":[]},{"name":"syncfusion_pdfviewer_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2026-01-08 16:26:37.153077","version":"3.32.1","swift_package_manager_enabled":{"ios":false,"macos":false}} \ 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":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_ios-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.4/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_plugin_android_lifecycle","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.31/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_android","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_android-1.0.52/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"open_file_android","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_android-1.0.6/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_android-2.2.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.13/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_android","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.20/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_mac","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_mac-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_macos-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.3/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_linux-0.0.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_linux-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/","native_build":true,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_windows-0.0.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_windows-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","dependencies":[],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.3.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"flutter_secure_storage_web","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","dependencies":[],"dev_dependency":false},{"name":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.1.0/","dependencies":[],"dev_dependency":false},{"name":"open_file_web","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_web-0.0.4/","dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","dependencies":[],"dev_dependency":false},{"name":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_web","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_web-31.1.19/","dependencies":[],"dev_dependency":false},{"name":"url_launcher_web","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.1/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_messaging","dependencies":["firebase_core","firebase_messaging_web"]},{"name":"firebase_messaging_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_android","google_sign_in_ios","google_sign_in_web"]},{"name":"google_sign_in_android","dependencies":[]},{"name":"google_sign_in_ios","dependencies":[]},{"name":"google_sign_in_web","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"open_file","dependencies":["open_file_android","open_file_web","open_file_ios","open_file_mac","open_file_windows","open_file_linux"]},{"name":"open_file_android","dependencies":[]},{"name":"open_file_ios","dependencies":[]},{"name":"open_file_linux","dependencies":[]},{"name":"open_file_mac","dependencies":[]},{"name":"open_file_web","dependencies":[]},{"name":"open_file_windows","dependencies":[]},{"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":"pdf_render","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":"syncfusion_flutter_pdfviewer","dependencies":["url_launcher","device_info_plus","syncfusion_pdfviewer_web","syncfusion_pdfviewer_macos","syncfusion_pdfviewer_windows","syncfusion_pdfviewer_linux"]},{"name":"syncfusion_pdfviewer_linux","dependencies":[]},{"name":"syncfusion_pdfviewer_macos","dependencies":[]},{"name":"syncfusion_pdfviewer_web","dependencies":[]},{"name":"syncfusion_pdfviewer_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2026-01-09 12:30:20.384299","version":"3.32.1","swift_package_manager_enabled":{"ios":false,"macos":false}} \ No newline at end of file diff --git a/lib/core/config/env.dart b/lib/core/config/env.dart index 4dd1997..98a3dfd 100644 --- a/lib/core/config/env.dart +++ b/lib/core/config/env.dart @@ -7,6 +7,7 @@ class Env { 'API_URL', // defaultValue: 'https://partner.nhanceindia.in/partner_api/api/', /* Live build (enable index.html line 18) */ defaultValue: 'https://venbait.in/nhance/partner/dev/api/', /* Test build (enable index.html line 19) */ + // defaultValue: 'http://localhost/nhance_partner_be/', /* localhost build (enable index.html line 19) */ ); // static const String baseUrl = String.fromEnvironment( // 'BASE_URL', diff --git a/lib/core/services/api_service.dart b/lib/core/services/api_service.dart index 8d00aab..b9b0091 100644 --- a/lib/core/services/api_service.dart +++ b/lib/core/services/api_service.dart @@ -92,14 +92,14 @@ class ApiService { // --------------------------- COMMON FILES __________________________________________ Future> createUserData(data, path) async { - print('path - $path'); + // print('path - $path'); final url = Uri.parse('${Env.apiUrl}$path'); if (_token == null) { await _initializeToken(); } - print("data------- $data}"); + // print("data------- $data}"); final headers = { 'Authorization': 'Bearer $_token' ?? '', @@ -204,8 +204,8 @@ class ApiService { final msg = data['message'] ?? "Already exists"; final field = data['field'] ?? ""; - print("$field - $value : $msg"); - print("EXIST REG"); + // print("$field - $value : $msg"); + // print("EXIST REG"); return {"message": msg, "field": field}; } else { @@ -229,7 +229,7 @@ class ApiService { Future getPdfDownload1(path, id) async { print('GetDownload'); - // final url = Uri.parse('https://venbait.in/nhance/partner/dev/$path'); + final url = Uri.parse('${Env.apiUrl}$path'); print('GetDownload - $url'); await _initializeToken(); @@ -318,16 +318,16 @@ class ApiService { String path, String id, ) async { - print('getPdfDownload 1 - $path'); + print('Sa - getPdfDownload - $path'); // if (path.isEmpty) { // ToastHelper.showInfoToast(context, 'No file path found.'); // return; // } - // final url = Uri.parse('https://venbait.in/nhance/partner/dev/$path'); + final url = Uri.parse('${Env.apiUrl}$path'); // final url = Uri.parse('${Env.apiUrl}$path'); - print('getPdfDownload 2 - $url'); + print('Sb - getPdfDownload - $url'); await _initializeToken(); if (_token == null) throw Exception('Token not found. Please log in.'); @@ -353,7 +353,7 @@ class ApiService { } else { final blob = html.Blob([response.bodyBytes]); final blobUrl = html.Url.createObjectUrlFromBlob(blob); - print('getPdfDownload $blobUrl'); + print('Sc - getPdfDownload - $blobUrl'); // --- filename resolution --- // String fileName = 'download_$id'; // print('getPdfDownloadfileName $fileName'); @@ -371,10 +371,10 @@ class ApiService { // } final contentDisp = response.headers['content-disposition']; - print('getPdfDownloadcontentDisp $contentDisp'); + print('Sd getPdfDownloadcontentDisp $contentDisp'); String fileName = extractFileName(contentDisp, path.split('/').last); - print('Resolved fileName: $fileName'); + print('Se Resolved fileName: $fileName'); final anchor = html.AnchorElement(href: blobUrl) ..setAttribute('download', fileName) ..click(); @@ -399,7 +399,7 @@ class ApiService { } else if (response.statusCode == 500) { ToastHelper.show('No File Found', Colors.red); } else if (response.statusCode == 302) { - print('getPdfDownload 3-PP-302'); + print('Sf getPdfDownload 3-PP-302'); ToastHelper.show('No File Found', Colors.red); } else { ToastHelper.show('No File Found', Colors.red); @@ -415,7 +415,7 @@ class ApiService { dynamic managerId, {DateTime? toDate, DateTime? fromDate} ) async { - print('getPdfDownload 1 - $path'); + print('Sq getxl 1 - $path'); dynamic pathVal; // if (path == 'Insurer') { @@ -478,7 +478,7 @@ class ApiService { // print('Final Excel URL => $pathVal'); final url = Uri.parse('${Env.apiUrl}$pathVal'); // original - print('getPdfDownload 2 - $url'); + print('sq1 2 - $url'); await _initializeToken(); if (_token == null) throw Exception('Token not found. Please log in.'); @@ -504,12 +504,12 @@ class ApiService { } else { final blob = html.Blob([response.bodyBytes]); final blobUrl = html.Url.createObjectUrlFromBlob(blob); - print('getPdfDownload $blobUrl'); + print('sq1 3 $blobUrl'); final contentDisp = response.headers['content-disposition']; print('getPdfDownloadcontentDisp $contentDisp'); String fileName = extractFileName(contentDisp, path.split('/').last); - print('Resolved fileName: $fileName'); + print('sq 4 Resolved fileName: $fileName'); final anchor = html.AnchorElement(href: blobUrl) ..setAttribute('download', fileName) ..click(); @@ -534,7 +534,7 @@ class ApiService { } else if (response.statusCode == 500) { ToastHelper.show('No File Found', Colors.red); } else if (response.statusCode == 302) { - print('getPdfDownload 3-PP-302'); + print('sq 3-PP-302'); ToastHelper.show('No File Found', Colors.red); } else { ToastHelper.show('No File Found', Colors.red); @@ -550,7 +550,7 @@ class ApiService { String month, dynamic managerId, ) async { - print('getPdfDownload 1 - $path'); + print('sm 1 - $path'); dynamic pathVal; @@ -558,8 +558,8 @@ class ApiService { 'dashboard/downloadExcelStaffAndProduct?manager_id=$managerId&month=$month&sales_executive_id=$salesId&vehicle_type=$id'; final url = Uri.parse('${Env.apiUrl}$pathVal'); - // final url = Uri.parse('https://venbait.in/nhance/partner/dev/$path'); - print('getPdfDownload 2 - $url'); + + print('sm 2 - $url'); await _initializeToken(); if (_token == null) throw Exception('Token not found. Please log in.'); @@ -585,12 +585,12 @@ class ApiService { } else { final blob = html.Blob([response.bodyBytes]); final blobUrl = html.Url.createObjectUrlFromBlob(blob); - print('getPdfDownload $blobUrl'); + print('sm 3 $blobUrl'); final contentDisp = response.headers['content-disposition']; - print('getPdfDownloadcontentDisp $contentDisp'); + print('sm4 $contentDisp'); String fileName = extractFileName(contentDisp, path.split('/').last); - print('Resolved fileName: $fileName'); + print('sm 5 Resolved fileName: $fileName'); final anchor = html.AnchorElement(href: blobUrl) ..setAttribute('download', fileName) ..click(); @@ -615,7 +615,7 @@ class ApiService { } else if (response.statusCode == 500) { ToastHelper.show('No File Found', Colors.red); } else if (response.statusCode == 302) { - print('getPdfDownload 3-PP-302'); + print('smno 3-PP-302'); ToastHelper.show('No File Found', Colors.red); } else { ToastHelper.show('No File Found', Colors.red); @@ -757,9 +757,7 @@ class ApiService { } else { url = Uri.parse('${Env.apiUrl}dashboard/agentDashboard?agent_id=$userId'); } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentList?manager_id=${managerId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -850,9 +848,7 @@ class ApiService { '${Env.apiUrl}agent/agentIncentiveFileList?agent_id=${agentId}', ); - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentIncentiveFileList?agent_id=${agentId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -903,10 +899,8 @@ class ApiService { if (_token == null) { await _initializeToken(); } - // final url = Uri.parse('${Env.apiUrl}/api/agent/agentList'); - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/findAgent?id=$id', - // ); + // final url = Uri.parse('${Env.apiUrl}agent/agentList'); + final url = Uri.parse('${Env.apiUrl}agent/findAgent?id=$id'); final headers = { @@ -922,10 +916,7 @@ class ApiService { if (_token == null) { await _initializeToken(); } - // final url = Uri.parse('${Env.apiUrl}/api/agent/agentList'); - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/deleteAgentIncentiveFile?id=$id', - // ); + // final url = Uri.parse('${Env.apiUrl}agent/agentList'); final url = Uri.parse('${Env.apiUrl}agent/deleteAgentIncentiveFile?id=$id'); final headers = { @@ -946,10 +937,6 @@ class ApiService { await _initializeToken(); } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/staff/staffList?manager_id=${managerId}', - // ); - dynamic url; if (role == 'manager') { print('manager'); @@ -977,10 +964,8 @@ class ApiService { if (_token == null) { await _initializeToken(); } - // final url = Uri.parse('${Env.apiUrl}/api/staff/findStaff?id=$id'); - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/staff/findStaff?id=$id', - // ); + // final url = Uri.parse('${Env.apiUrl}staff/findStaff?id=$id'); + final url = Uri.parse('${Env.apiUrl}staff/findStaff?id=$id'); final headers = { @@ -1296,10 +1281,6 @@ class ApiService { await _initializeToken(); } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/staff/staffList?manager_id=${managerId}', - // ); - final url = Uri.parse( '${Env.apiUrl}quotation/quotationList?manager_id=${managerId}', ); @@ -1375,9 +1356,7 @@ class ApiService { // else { // url = Uri.parse('${Env.apiUrl}endorsement/endorsementList?agent_id=$id'); // } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentList?manager_id=${managerId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -1437,9 +1416,7 @@ class ApiService { // ); // } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentList?manager_id=${managerId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -1515,9 +1492,7 @@ class ApiService { url = Uri.parse('${Env.apiUrl}claim/ClaimList?staff_id=$userId'); } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentList?manager_id=${managerId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -1570,9 +1545,7 @@ class ApiService { } else { url = Uri.parse('${Env.apiUrl}endorsement/endorsementList?staff_id=$id'); } - // final url = Uri.parse( - // 'https://venbait.in/nhance/partner/dev/api/agent/agentList?manager_id=${managerId}', - // ); + final headers = { 'Authorization': 'Bearer $_token' ?? '', 'app-signature': Env.App_Signature, @@ -2114,9 +2087,6 @@ class ApiService { final url = Uri.parse( '${Env.apiUrl}reports/policy-excel?manager_id=$managerId&from_date=${fromDate ?? ''}&to_date=${toDate ?? ''}&search=${searchValue ?? ''}', ); - - // final url = Uri.parse( 'http://localhost/nhance_partner_be/reports/policy-excel?manager_id=$managerId&from_date=${fromDate ?? ''}&to_date=${toDate ?? ''}&search=${searchValue ?? ''}', ); - print('getPdfDownload policy-excel - $url'); await _initializeToken(); diff --git a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart index 050646d..08facd6 100644 --- a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart +++ b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart @@ -156,7 +156,7 @@ class EnquiryTabState extends ConsumerState { updateData(); } - // api/enquiry/enquiryList?enquiry_id=1 + // enquiry/enquiryList?enquiry_id=1 Future _initializeToken() async { _token = await AuthService.getToken(); print("APISERTOKEN - $_token"); @@ -189,7 +189,7 @@ class EnquiryTabState extends ConsumerState { print('API Data - $getVehicleTypeData'); filteredVechicleData = List.from(getVehicleTypeData); - print('originalData - $filteredVechicleData'); + // print('originalData - $filteredVechicleData'); }); } else { getVehicleTypeData = []; @@ -220,7 +220,7 @@ class EnquiryTabState extends ConsumerState { print('API Data - $getInsurersData'); filteredInsurersData = List.from(getInsurersData); - print('originalData - $filteredInsurersData'); + // print('originalData - $filteredInsurersData'); }); } else { getInsurersData = []; @@ -1227,9 +1227,9 @@ class EnquiryTabState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -1258,9 +1258,9 @@ class EnquiryTabState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -1289,9 +1289,9 @@ class EnquiryTabState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, diff --git a/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart b/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart index 219886d..d6179e7 100644 --- a/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart +++ b/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart @@ -370,7 +370,7 @@ class _AddDialogState extends State { print('API Data - $getClaimsTypeData'); filteredClaimsData = List.from(getClaimsTypeData); - print('originalData - $filteredClaimsData'); + // print('originalData - $filteredClaimsData'); }); } else { getClaimsTypeData = []; @@ -401,7 +401,7 @@ class _AddDialogState extends State { print('API Data - $getEndrosmentType'); filteredEndrosmentData = List.from(getEndrosmentType); - print('originalData - $filteredEndrosmentData'); + // print('originalData - $filteredEndrosmentData'); }); } else { getEndrosmentType = []; @@ -1025,7 +1025,7 @@ class _AddDialogState extends State { // // GestureDetector( // // onTap: () => apiService.downloadFile( // // apiUrl: - // // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedClaimId', + // // 'agent/downloadAgentCertificateFile?agent_id=$selectedClaimId', // // apiId: selectedClaimId, // // localFile: docUploadedFile, // // fileName: selectedClaimFileNames, @@ -1312,7 +1312,7 @@ class _AddDialogState extends State { // // GestureDetector( // // onTap: () => apiService.downloadFile( // // apiUrl: - // // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedEndorsId', + // // 'agent/downloadAgentCertificateFile?agent_id=$selectedEndorsId', // // apiId: selectedEndorsId, // // localFile: docUploadedEndorsFile, // // fileName: selectedFileNames, diff --git a/lib/presentation/screens/Enquiry/enquiry/policy_tab.dart b/lib/presentation/screens/Enquiry/enquiry/policy_tab.dart index b305bb9..a569d2b 100644 --- a/lib/presentation/screens/Enquiry/enquiry/policy_tab.dart +++ b/lib/presentation/screens/Enquiry/enquiry/policy_tab.dart @@ -218,9 +218,9 @@ class PolicyTabState extends ConsumerState { // print("Upload ${widget.id}"); // final selectedId = widget.id; // // final path = - // // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // // 'agent/downloadAgentIncentiveFile?id=$selectedId'; // final path = - // 'api/policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_payment_receipt'; + // 'policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_payment_receipt'; // apiService.getPdfDownload(path, selectedId); // }, // child: Container( @@ -439,9 +439,9 @@ class PolicyTabState extends ConsumerState { print("Upload ${widget.id}"); final selectedId = widget.id; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_pdf'; + 'policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_pdf'; apiService.getPdfDownload(path, selectedId); }, @@ -479,9 +479,9 @@ class PolicyTabState extends ConsumerState { print("Upload ${widget.id}"); final selectedId = widget.id; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_payment_receipt'; + 'policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_payment_receipt'; apiService.getPdfDownload(path, selectedId); }, child: Container( diff --git a/lib/presentation/screens/Enquiry/enquiry/quotation_tab.dart b/lib/presentation/screens/Enquiry/enquiry/quotation_tab.dart index f67ece1..8377578 100644 --- a/lib/presentation/screens/Enquiry/enquiry/quotation_tab.dart +++ b/lib/presentation/screens/Enquiry/enquiry/quotation_tab.dart @@ -735,7 +735,7 @@ class QuotationTabState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - apiUrl: 'api/quotation/downloadAdditionalUploadedFile?id=$selectedId', + apiUrl: 'quotation/downloadAdditionalUploadedFile?id=$selectedId', apiId: selectedId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart b/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart index f354acb..715b2b6 100644 --- a/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart +++ b/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart @@ -668,7 +668,7 @@ class _UpdateEndorsementDialogState extends State { // // GestureDetector( // // onTap: () => apiService.downloadFile( // // apiUrl: - // // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedEndorsId', + // // 'agent/downloadAgentCertificateFile?agent_id=$selectedEndorsId', // // apiId: selectedEndorsId, // // localFile: docUploadedFile, // // fileName: selectedFileNames, diff --git a/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart b/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart index 415e856..1164828 100644 --- a/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart +++ b/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart @@ -206,7 +206,7 @@ class endosementState extends ConsumerState { onTap: () { Navigator.pop(context); // Close the menu first apiService.downloadFile( - apiUrl: 'api/endorsement/downloadEndorsementCompletionFile?id=$Id', + apiUrl: 'endorsement/downloadEndorsementCompletionFile?id=$Id', apiId: Id, localFile: null, fileName: fileName, @@ -665,7 +665,7 @@ class endosementState extends ConsumerState { const SizedBox(width: 12), InkWell( onTap: () => apiService.downloadFile( - apiUrl: 'api/endorsement/downloadEndorsementCompletionFile?id=$Id', + apiUrl: 'endorsement/downloadEndorsementCompletionFile?id=$Id', apiId: Id, localFile: null, fileName: fileName, diff --git a/lib/presentation/screens/UserManagement/Agent/agent.dart b/lib/presentation/screens/UserManagement/Agent/agent.dart index e64c196..2311bb0 100644 --- a/lib/presentation/screens/UserManagement/Agent/agent.dart +++ b/lib/presentation/screens/UserManagement/Agent/agent.dart @@ -229,9 +229,7 @@ class AgentState extends ConsumerState { final id = widget.id; final uri = Uri.parse( - // isUpdating - // ? 'https://venbait.in/nhance/partner/dev/api/agent/updateAgent' - // : 'https://venbait.in/nhance/partner/dev/api/agent/createAgent', + isUpdating ? '${Env.apiUrl}agent/updateAgent' : '${Env.apiUrl}agent/createAgent', @@ -402,7 +400,7 @@ class AgentState extends ConsumerState { // } else if (passportFileUrlFromApi != null) { // print("Download from API: $passportFileUrlFromApi"); // final path = - // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId'; + // 'agent/downloadAgentCertificateFile?agent_id=$selectedId'; // // apiService.getPdfDownload(path, selectedId); // } @@ -949,7 +947,7 @@ class AgentState extends ConsumerState { InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiId: selectedId, localFile: docUploadedFile, fileName: selectedFileNames, @@ -1039,7 +1037,7 @@ class AgentState extends ConsumerState { // print("Raw file path: $passportFileUrlFromApi"); // // final path = - // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId'; + // 'agent/downloadAgentCertificateFile?agent_id=$selectedId'; // // apiService.getPdfDownload(path, selectedId); // } else { @@ -1084,7 +1082,7 @@ class AgentState extends ConsumerState { // // print("Raw file path: $passportFileUrlFromApi"); // // // // final path = - // // 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId'; + // // 'agent/downloadAgentCertificateFile?agent_id=$selectedId'; // // // // apiService.getPdfDownload(path, selectedId); // // } else { diff --git a/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart b/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart index 0a997bc..9a2c772 100644 --- a/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart +++ b/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart @@ -157,7 +157,7 @@ class UploadIncentiveModalState extends ConsumerState { print('API Data - $getAgentData'); filteredData = List.from(getAgentData); - print('originalData - $filteredData'); + // print('originalData - $filteredData'); }); } else { getAgentData = []; @@ -190,7 +190,7 @@ class UploadIncentiveModalState extends ConsumerState { print('API AgentIncentive - $getAgentIncentiveFileData'); filteredIncentiveData = List.from(getAgentIncentiveFileData); - print('originalData - $filteredIncentiveData'); + // print('originalData - $filteredIncentiveData'); }); } else { getAgentIncentiveFileData = []; @@ -234,7 +234,7 @@ class UploadIncentiveModalState extends ConsumerState { Future uploadIncentiveData(Map dataSet) async { final uri = Uri.parse('${Env.apiUrl}agent/uploadAgentIncentiveFile'); - // 'https://venbait.in/nhance/partner/dev/api/agent/uploadAgentIncentiveFile', + if (_token == null) { throw Exception('Token not found. Please log in.'); } @@ -745,7 +745,7 @@ class UploadIncentiveModalState extends ConsumerState { print("Upload ${file['id']}"); final selectedId = file['id']; final path = - 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + 'agent/downloadAgentIncentiveFile?id=$selectedId'; apiService.getPdfDownload(path, selectedId); }, onDelete: () async { diff --git a/lib/presentation/screens/UserManagement/Profile/profile_mobile.dart b/lib/presentation/screens/UserManagement/Profile/profile_mobile.dart index a05faca..5489aa7 100644 --- a/lib/presentation/screens/UserManagement/Profile/profile_mobile.dart +++ b/lib/presentation/screens/UserManagement/Profile/profile_mobile.dart @@ -109,7 +109,7 @@ class ProfileState extends ConsumerState { print('API AgentIncentive - $getAgentIncentiveFileData'); filteredIncentiveData = List.from(getAgentIncentiveFileData); - print('originalData - $filteredIncentiveData'); + // print('originalData - $filteredIncentiveData'); // Sort descending by created_on filteredIncentiveData.sort((a, b) { @@ -289,10 +289,10 @@ class ProfileState extends ConsumerState { roleId == 2 && roleId == 3) { path = - 'api/staff/downloadManagerIncentiveFile?id=$latestId'; + 'staff/downloadManagerIncentiveFile?id=$latestId'; } else { path = - 'api/agent/downloadAgentIncentiveFile?id=$latestId'; + 'agent/downloadAgentIncentiveFile?id=$latestId'; } apiService.getPdfDownload( path, @@ -384,10 +384,10 @@ class ProfileState extends ConsumerState { roleId == 2 && roleId == 3) { path = - 'api/staff/downloadManagerIncentiveFile?id=$selectedId'; + 'staff/downloadManagerIncentiveFile?id=$selectedId'; } else { path = - 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + 'agent/downloadAgentIncentiveFile?id=$selectedId'; } apiService.getPdfDownload( path, @@ -554,10 +554,10 @@ class ProfileState extends ConsumerState { print('teRole - $roleId'); path = - 'api/staff/downloadManagerIncentiveFile?id=$latestId'; + 'staff/downloadManagerIncentiveFile?id=$latestId'; } else { path = - 'api/agent/downloadAgentIncentiveFile?id=$latestId'; + 'agent/downloadAgentIncentiveFile?id=$latestId'; } apiService.getPdfDownload( path, @@ -649,10 +649,10 @@ class ProfileState extends ConsumerState { roleId == 2 && roleId == 3) { path = - 'api/staff/downloadManagerIncentiveFile?id=$selectedId'; + 'staff/downloadManagerIncentiveFile?id=$selectedId'; } else { path = - 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + 'agent/downloadAgentIncentiveFile?id=$selectedId'; } apiService.getPdfDownload( path, diff --git a/lib/presentation/screens/UserManagement/Profile/profile_web.dart b/lib/presentation/screens/UserManagement/Profile/profile_web.dart index 995e390..c8890b4 100644 --- a/lib/presentation/screens/UserManagement/Profile/profile_web.dart +++ b/lib/presentation/screens/UserManagement/Profile/profile_web.dart @@ -43,7 +43,7 @@ class ProfilePopUpState extends ConsumerState { // if (id != null) { // getAgentList(id); // - // // api/staff/managerIncentiveFileList?manager_id=1 + // // staff/managerIncentiveFileList?manager_id=1 // } // }); } @@ -314,10 +314,10 @@ class ProfilePopUpState extends ConsumerState { if (roleId == 1) { path = - 'api/staff/downloadManagerIncentiveFile?id=$latestId'; + 'staff/downloadManagerIncentiveFile?id=$latestId'; } else if (roleId != 1 && roleId != 2) { path = - 'api/agent/downloadAgentIncentiveFile?id=$latestId'; + 'agent/downloadAgentIncentiveFile?id=$latestId'; } apiService.getPdfDownload(path, latestId); }, @@ -397,10 +397,10 @@ class ProfilePopUpState extends ConsumerState { if (roleId == 1) { path = - 'api/staff/downloadManagerIncentiveFile?id=$selectedId'; + 'staff/downloadManagerIncentiveFile?id=$selectedId'; } else if (roleId != 1 && roleId != 2) { path = - 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + 'agent/downloadAgentIncentiveFile?id=$selectedId'; } apiService.getPdfDownload( path, diff --git a/lib/presentation/screens/UserManagement/Staff/staff.dart b/lib/presentation/screens/UserManagement/Staff/staff.dart index e7f5a19..087f04d 100644 --- a/lib/presentation/screens/UserManagement/Staff/staff.dart +++ b/lib/presentation/screens/UserManagement/Staff/staff.dart @@ -188,9 +188,6 @@ class StaffState extends ConsumerState { final bool isUpdating = widget.id != null && widget.id != 'Create'; final String? id = isUpdating ? widget.id : null; final String apiUrldata; - // apiUrldata = isUpdating - // ? 'https://venbait.in/nhance/partner/dev/api/staff/updateStaff' - // : 'https://venbait.in/nhance/partner/dev/api/staff/createStaff'; apiUrldata = isUpdating ? '${Env.apiUrl}staff/updateStaff' diff --git a/lib/presentation/screens/handler/enquiryList.dart b/lib/presentation/screens/handler/enquiryList.dart index 7cb43b5..7482757 100644 --- a/lib/presentation/screens/handler/enquiryList.dart +++ b/lib/presentation/screens/handler/enquiryList.dart @@ -1501,9 +1501,9 @@ class EnquiryHandlerState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -1535,9 +1535,9 @@ class EnquiryHandlerState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -1568,9 +1568,9 @@ class EnquiryHandlerState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, @@ -1585,9 +1585,9 @@ class EnquiryHandlerState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1623,9 +1623,9 @@ class EnquiryHandlerState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1661,9 +1661,9 @@ class EnquiryHandlerState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_Edit_17Nov.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_Edit_17Nov.dart index 202bcf7..c8f6a0d 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_Edit_17Nov.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_Edit_17Nov.dart @@ -1725,9 +1725,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -1763,9 +1763,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -1799,9 +1799,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, @@ -1819,9 +1819,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1858,9 +1858,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1896,9 +1896,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_dec1.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_dec1.dart index 9461e20..e01a084 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_dec1.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_dec1.dart @@ -2046,9 +2046,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -2084,9 +2084,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -2120,9 +2120,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, @@ -2140,9 +2140,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -2179,9 +2179,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -2217,9 +2217,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); @@ -2547,9 +2547,9 @@ class EnquiryStaffState extends ConsumerState { onTap: () { final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, @@ -2593,9 +2593,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -2634,9 +2634,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart index 77a284b..03b61b8 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart @@ -649,14 +649,14 @@ class EnquiryStaffState extends ConsumerState { final response = await apiService.fetchMasterDropDown('vehicleType'); if (response['status'] == 200) { - print('EIL 2getVT-Data - ${response['data']}'); + // print('EIL 2getVT-Data - ${response['data']}'); setState(() { // getVehicleTypeData = List>.from(response['data']); getVehicleTypeData = List>.from(response['data']).where((item) => item['is_active']?.toString() == '1').toList(); - print('EIL 3getVT-B4filterData : $getVehicleTypeData'); + // print('EIL 3getVT-B4filterData : $getVehicleTypeData'); filteredVehicleData = List.from(getVehicleTypeData); - print('EIL 3getVT-AftfilterData : $filteredVehicleData'); + // print('EIL 3getVT-AftfilterData : $filteredVehicleData'); }); } else { getVehicleTypeData = []; @@ -2924,7 +2924,7 @@ class EnquiryStaffState extends ConsumerState { child: InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', apiId: item["policy_id"], localFile: null, fileName: item['policy_pdf_file_name'], @@ -2946,6 +2946,11 @@ class EnquiryStaffState extends ConsumerState { } else { ToastHelper.showErrorToast(context, 'Please select payment mode'); } + if (item['vehicle_type'] != null) { + _showPolicyUploadMenu(buttonContext, item); + } else { + ToastHelper.showErrorToast(context, 'Please select vehicle type'); + } }, child: Tooltip( message: 'Click and Upload Policy PDF', @@ -3090,8 +3095,8 @@ class EnquiryStaffState extends ConsumerState { try { print('EIL 1getSVT-called'); - print('EIL 2getSVT-vehicle_type_id ${item['vehicle_type_id']}'); - print('EIL 3getSVT-vehicle_type ${item['vehicle_type']}'); + // print('EIL 2getSVT-vehicle_type_id ${item['vehicle_type_id']}'); + // print('EIL 3getSVT-vehicle_type ${item['vehicle_type']}'); final result = filteredVehicleData.firstWhere( (vt) { @@ -3102,8 +3107,8 @@ class EnquiryStaffState extends ConsumerState { vt['vehicle_type'].toString().trim().toLowerCase() == item['vehicle_type'].toString().trim().toLowerCase(); - print('EIL 3getSVT-check id O:${vt['id']} | name O:${vt['vehicle_type']} '); // o means original - print('EIL 4getSVT-check id M:$idMatch | name M:$nameMatch'); // M means match + // print('EIL 3getSVT-check id O:${vt['id']} | name O:${vt['vehicle_type']} '); // o means original + // print('EIL 4getSVT-check id M:$idMatch | name M:$nameMatch'); // M means match return idMatch || nameMatch; }, diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec11.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec11.dart index 6a67f06..08cdf61 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec11.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec11.dart @@ -2305,9 +2305,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -2343,9 +2343,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -2379,9 +2379,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, @@ -2399,9 +2399,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -2438,9 +2438,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -2476,9 +2476,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); @@ -2831,9 +2831,9 @@ class EnquiryStaffState extends ConsumerState { onTap: () { final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, @@ -2877,9 +2877,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -2918,9 +2918,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -4914,7 +4914,7 @@ class EnquiryStaffState extends ConsumerState { child: InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', apiId: item["policy_id"], localFile: null, fileName: item['policy_pdf_file_name'], diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec12.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec12.dart index 593461f..00613e5 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec12.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list_dec12.dart @@ -2775,7 +2775,7 @@ class EnquiryStaffState extends ConsumerState { child: InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=${item["policy_id"]}&file_type=policy_pdf', apiId: item["policy_id"], localFile: null, fileName: item['policy_pdf_file_name'], diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_old.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_old.dart index 6fc83f3..b8c9cfb 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_old.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_old.dart @@ -1599,9 +1599,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc', apiId: selectedId.toString(), @@ -1633,9 +1633,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof', apiId: selectedId.toString(), localFile: docUploadedIDProof, @@ -1666,9 +1666,9 @@ class EnquiryStaffState extends ConsumerState { }); }, onDownload: () => apiService.downloadFile( - // apiUrl: 'api/agent/downloadAgentCertificateFile?agent_id=$selectedId', + // apiUrl: 'agent/downloadAgentCertificateFile?agent_id=$selectedId', apiUrl: - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy', apiId: selectedId.toString(), localFile: docUploadedPrevPolicy, @@ -1683,9 +1683,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1721,9 +1721,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); }, @@ -1759,9 +1759,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; print("Uploadpath $path"); apiService.getPdfDownload(path, selectedId); diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_list.dart b/lib/presentation/screens/staff/Enquiry/enquiry_list.dart index 2cfb887..7e5cc8e 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_list.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_list.dart @@ -1437,9 +1437,9 @@ class EnquiryStaffState extends ConsumerState { onTap: () { final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, @@ -1483,9 +1483,9 @@ class EnquiryStaffState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1524,9 +1524,9 @@ class EnquiryStaffState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( diff --git a/lib/presentation/screens/staff/Enquiry/multi_file_list.dart b/lib/presentation/screens/staff/Enquiry/multi_file_list.dart index 0249ab7..b250da7 100644 --- a/lib/presentation/screens/staff/Enquiry/multi_file_list.dart +++ b/lib/presentation/screens/staff/Enquiry/multi_file_list.dart @@ -268,7 +268,7 @@ class MultipleFileWidgetState extends ConsumerState { GestureDetector( onTap: () { final path = - 'api/enquiry/downloadEnquiryFiles?file_id=$fileId'; + 'enquiry/downloadEnquiryFiles?file_id=$fileId'; print("Uploadpath $path"); apiService.getPdfDownload(path, fileId); }, diff --git a/lib/presentation/screens/staff/Enquiry/staff_policy.dart b/lib/presentation/screens/staff/Enquiry/staff_policy.dart index 9caa3f7..b91edbe 100644 --- a/lib/presentation/screens/staff/Enquiry/staff_policy.dart +++ b/lib/presentation/screens/staff/Enquiry/staff_policy.dart @@ -1064,9 +1064,9 @@ class PolicyStaffEnqListState extends ConsumerState { // print("Upload $idget.id}{w"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1105,9 +1105,9 @@ class PolicyStaffEnqListState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1142,9 +1142,9 @@ class PolicyStaffEnqListState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1179,11 +1179,11 @@ class PolicyStaffEnqListState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = acceptedQuotationId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; // final path = - // 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + // 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; final path = - 'api/quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; + 'quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; apiService.getPdfDownload(path, selectedId); }, @@ -2446,7 +2446,7 @@ class PolicyStaffEnqListState extends ConsumerState { InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', apiId: choosedPolcyId, localFile: docPDFUploadedFile, fileName: selectedPDFFileNames, @@ -2523,7 +2523,7 @@ class PolicyStaffEnqListState extends ConsumerState { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', apiId: choosedPolcyId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/Enquiry/tabs/createQuotation.dart b/lib/presentation/screens/staff/Enquiry/tabs/createQuotation.dart index 20dba85..627bfac 100644 --- a/lib/presentation/screens/staff/Enquiry/tabs/createQuotation.dart +++ b/lib/presentation/screens/staff/Enquiry/tabs/createQuotation.dart @@ -195,7 +195,7 @@ class CreateProposalFormState extends ConsumerState { print('API Data - $getBrokerData'); filteredBrokerData = List.from(getBrokerData); - print('originalData - $filteredBrokerData'); + // print('originalData - $filteredBrokerData'); }); } else { getBrokerData = []; @@ -1320,9 +1320,9 @@ class CreateProposalFormState extends ConsumerState { // GestureDetector( // onTap: () => apiService.downloadFile( // // apiUrl: - // // 'api/quotation/downloadAdditionalUploadedFile?id=$selectedId', + // // 'quotation/downloadAdditionalUploadedFile?id=$selectedId', // apiUrl: - // 'api/policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_pdf', + // 'policy/downloadPolicyFile?policy_id=$selectedId&file_type=policy_pdf', // apiId: selectedId, // localFile: docUploadedFile, // fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/Enquiry/tabs/createQuotationOld.dart b/lib/presentation/screens/staff/Enquiry/tabs/createQuotationOld.dart index 23f475c..4422406 100644 --- a/lib/presentation/screens/staff/Enquiry/tabs/createQuotationOld.dart +++ b/lib/presentation/screens/staff/Enquiry/tabs/createQuotationOld.dart @@ -291,9 +291,6 @@ class CreateQuotationFormState extends ConsumerState { print('id - $id'); final uri = Uri.parse( - // isUpdating - // ? 'https://venbait.in/nhance/partner/dev/api/agent/updateAgent' - // : 'https://venbait.in/nhance/partner/dev/api/agent/createAgent', isUpdating ? '${Env.apiUrl}quotation/updateQuotation' : '${Env.apiUrl}quotation/createQuotation', @@ -732,7 +729,7 @@ class CreateQuotationFormState extends ConsumerState { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/quotation/downloadAdditionalUploadedFile?id=$selectedId', + 'quotation/downloadAdditionalUploadedFile?id=$selectedId', apiId: selectedId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/Enquiry/tabs/policyTab.dart b/lib/presentation/screens/staff/Enquiry/tabs/policyTab.dart index e5736a9..2f345a1 100644 --- a/lib/presentation/screens/staff/Enquiry/tabs/policyTab.dart +++ b/lib/presentation/screens/staff/Enquiry/tabs/policyTab.dart @@ -938,9 +938,9 @@ class PolicyStaffTabState extends ConsumerState { // print("Upload $idget.id}{w"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -979,9 +979,9 @@ class PolicyStaffTabState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1016,9 +1016,9 @@ class PolicyStaffTabState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -1053,11 +1053,11 @@ class PolicyStaffTabState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = acceptedQuotationId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; // final path = - // 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + // 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; final path = - 'api/quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; + 'quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; apiService.getPdfDownload(path, selectedId); }, @@ -1893,7 +1893,7 @@ class PolicyStaffTabState extends ConsumerState { InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', apiId: choosedPolcyId, localFile: docPDFUploadedFile, fileName: selectedPDFFileNames, @@ -1970,7 +1970,7 @@ class PolicyStaffTabState extends ConsumerState { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', apiId: choosedPolcyId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/assignStaff.dart b/lib/presentation/screens/staff/assignStaff.dart index d3fa592..52f87d6 100644 --- a/lib/presentation/screens/staff/assignStaff.dart +++ b/lib/presentation/screens/staff/assignStaff.dart @@ -140,7 +140,7 @@ class _AddDialogState extends ConsumerState { print('API Data - $getInsurersData'); filteredInsurersData = List.from(getInsurersData); - print('originalData - $filteredInsurersData'); + // print('originalData - $filteredInsurersData'); }); } else { getInsurersData = []; @@ -171,7 +171,7 @@ class _AddDialogState extends ConsumerState { print('API Data - $getBrokerData'); filteredBrokerData = List.from(getBrokerData); - print('originalData - $filteredBrokerData'); + // print('originalData - $filteredBrokerData'); }); } else { getBrokerData = []; @@ -209,7 +209,7 @@ class _AddDialogState extends ConsumerState { print('API Data - $getStaffDetailsDataEnqAsgn'); filteredStaffDataEnqAsgn = List.from(getStaffDetailsDataEnqAsgn); - print('originalData - $filteredStaffDataEnqAsgn'); + // print('originalData - $filteredStaffDataEnqAsgn'); }); } else { getStaffDetailsDataEnqAsgn = []; diff --git a/lib/presentation/screens/staff/policy/policy.dart b/lib/presentation/screens/staff/policy/policy.dart index 42142ee..2d3d7cd 100644 --- a/lib/presentation/screens/staff/policy/policy.dart +++ b/lib/presentation/screens/staff/policy/policy.dart @@ -731,9 +731,9 @@ class PolicyScreenState extends ConsumerState { // print("Upload $idget.id}{w"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -772,9 +772,9 @@ class PolicyScreenState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -809,9 +809,9 @@ class PolicyScreenState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -846,11 +846,11 @@ class PolicyScreenState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = acceptedQuotationId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; // final path = - // 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + // 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; final path = - 'api/quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; + 'quotation/downloadAdditionalUploadedFile?id=$acceptedQuotationId'; apiService.getPdfDownload(path, selectedId); }, @@ -1358,7 +1358,7 @@ class PolicyScreenState extends ConsumerState { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_pdf', apiId: choosedPolcyId, localFile: docPDFUploadedFile, fileName: selectedPDFFileNames, @@ -1431,7 +1431,7 @@ class PolicyScreenState extends ConsumerState { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', + 'policy/downloadPolicyFile?policy_id=$choosedPolcyId&file_type=policy_payment_receipt', apiId: choosedPolcyId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/policy/policy_list.dart b/lib/presentation/screens/staff/policy/policy_list.dart index 054ad44..94cdffd 100644 --- a/lib/presentation/screens/staff/policy/policy_list.dart +++ b/lib/presentation/screens/staff/policy/policy_list.dart @@ -805,7 +805,7 @@ class policylistState extends ConsumerState { InkWell( onTap: () => apiService.downloadFile( apiUrl: - 'api/policy/downloadPolicyFile?policy_id=$policyId&file_type=policy_pdf', + 'policy/downloadPolicyFile?policy_id=$policyId&file_type=policy_pdf', apiId: policyId, localFile: null, fileName: fileName, diff --git a/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart b/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart index c159f3b..e52d7ed 100644 --- a/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart +++ b/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart @@ -177,7 +177,7 @@ class createQuotatDialogState extends State { print('API Data - $getInsurersData'); filteredInsurersData = List.from(getInsurersData); - print('originalData - $filteredInsurersData'); + // print('originalData - $filteredInsurersData'); }); } else { getInsurersData = []; @@ -210,7 +210,7 @@ class createQuotatDialogState extends State { print('API Data - $getInsuranceTypeData'); filteredInsuranceData = List.from(getInsuranceTypeData); - print('originalData - $filteredInsuranceData'); + // print('originalData - $filteredInsuranceData'); }); } else { getInsuranceTypeData = []; @@ -249,9 +249,7 @@ class createQuotatDialogState extends State { print('id - $id'); final uri = Uri.parse( - // isUpdating - // ? 'https://venbait.in/nhance/partner/dev/api/agent/updateAgent' - // : 'https://venbait.in/nhance/partner/dev/api/agent/createAgent', + isUpdating ? '${Env.apiUrl}quotation/updateQuotation' : '${Env.apiUrl}quotation/createQuotation', @@ -724,7 +722,7 @@ class createQuotatDialogState extends State { GestureDetector( onTap: () => apiService.downloadFile( apiUrl: - 'api/quotation/downloadAdditionalUploadedFile?id=$selectedId', + 'quotation/downloadAdditionalUploadedFile?id=$selectedId', apiId: selectedId, localFile: docUploadedFile, fileName: selectedFileNames, diff --git a/lib/presentation/screens/staff/quotations/quotation.dart b/lib/presentation/screens/staff/quotations/quotation.dart index 9a7cd9c..af11131 100644 --- a/lib/presentation/screens/staff/quotations/quotation.dart +++ b/lib/presentation/screens/staff/quotations/quotation.dart @@ -502,7 +502,7 @@ class QuotationScreenState extends ConsumerState { final isMobile = ResponsiveLayout.isMobile(context); return GestureDetector( onTap: () => apiService.downloadFile( - apiUrl: 'api/quotation/downloadAdditionalUploadedFile?id=$selectedId', + apiUrl: 'quotation/downloadAdditionalUploadedFile?id=$selectedId', apiId: selectedId, localFile: docUploadedFile, fileName: selectedFileNames, @@ -541,9 +541,9 @@ class QuotationScreenState extends ConsumerState { // print("Upload $idget.id}{w"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=rc'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -582,9 +582,9 @@ class QuotationScreenState extends ConsumerState { print("Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=id_proof'; apiService.getPdfDownload(path, selectedId); }, child: Container( @@ -619,9 +619,9 @@ class QuotationScreenState extends ConsumerState { print("QD597 Upload $selectedEnquiryId"); final selectedId = selectedEnquiryId; // final path = - // 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; + // 'agent/downloadAgentIncentiveFile?id=$selectedId'; final path = - 'api/enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; + 'enquiry/downloadEnquiryFile?enquiry_id=$selectedId&file_type=previous_policy'; apiService.getPdfDownload(path, selectedId); }, child: Container( diff --git a/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart b/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart index f6c0db1..e704fe8 100644 --- a/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart +++ b/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart @@ -132,7 +132,7 @@ class _DateFilterRowState extends ConsumerState { print('API Data - $getStaffDetailsData'); filteredStaffData = List.from(getStaffDetailsData); - print('originalData - $filteredStaffData'); + // print('originalData - $filteredStaffData'); }); } else { getStaffDetailsData = []; diff --git a/web/index.html b/web/index.html index 486cfc7..3975e71 100644 --- a/web/index.html +++ b/web/index.html @@ -15,8 +15,8 @@ the `--base-href` argument provided to `flutter build`. --> - - + +