diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 5c094a5..228d96e 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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.1.0/","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":"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":"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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.30/","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":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.0.5/","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.18/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.12/","native_build":true,"dependencies":[],"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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.1.0/","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":"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":"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","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":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/","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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","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":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/","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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","dependencies":[],"dev_dependency":false},{"name":"firebase_app_check_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check_web-0.2.0+16/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.0.2/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.1.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.0.1/","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":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.0.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":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","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":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_app_check","dependencies":["firebase_app_check_web","firebase_core"]},{"name":"firebase_app_check_web","dependencies":["firebase_core","firebase_core_web"]},{"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":"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":"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":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2025-10-09 18:54:24.128632","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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.1.0/","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":"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":"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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.30/","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":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.0.5/","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.18/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.12/","native_build":true,"dependencies":[],"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_app_check","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check-0.4.0+1/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.1/","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.1.0/","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":"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":"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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","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":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/","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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.0.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.1.0/","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":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/","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":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.3/","dependencies":[],"dev_dependency":false},{"name":"firebase_app_check_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_app_check_web-0.2.0+16/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.0.2/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.1.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.0.1/","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":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.0.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":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","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":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_app_check","dependencies":["firebase_app_check_web","firebase_core"]},{"name":"firebase_app_check_web","dependencies":["firebase_core","firebase_core_web"]},{"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":"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":"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":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2025-10-10 12:12:36.102274","version":"3.32.1","swift_package_manager_enabled":{"ios":false,"macos":false}} \ No newline at end of file diff --git a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart index fe6817d..4fb1950 100644 --- a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart +++ b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart @@ -347,7 +347,7 @@ class EnquiryTabState extends ConsumerState { try { await createUserData(dataSet); // API call - ToastHelper.showInfoToast(context, "Enquiry saved successfully"); + // ToastHelper.showInfoToast(context, "Enquiry saved successfully"); } catch (e) { showDialog( context: context, diff --git a/lib/presentation/screens/Enquiry/enquiryList.dart b/lib/presentation/screens/Enquiry/enquiryList.dart index a715442..e96f908 100644 --- a/lib/presentation/screens/Enquiry/enquiryList.dart +++ b/lib/presentation/screens/Enquiry/enquiryList.dart @@ -373,7 +373,9 @@ class EnquiryListState extends ConsumerState { size: ResponsiveLayout.isMobile(context) ? 25 : 25, color: const Color(0xFF425B5B), ), - onPressed: () { context.go(AppRoutes.dashboard); }, + onPressed: () { + context.go(AppRoutes.dashboard); + }, splashRadius: 18, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -464,7 +466,7 @@ class EnquiryListState extends ConsumerState { ), ), ], - + if (ResponsiveLayout.isMobile(context)) SizedBox(height: 5), Container( // height: 40, // color: Colors.pink, @@ -488,44 +490,9 @@ class EnquiryListState extends ConsumerState { }, ), - // Form( - // key: _formKey, - // child: Row( - // mainAxisAlignment: MainAxisAlignment.start, - // crossAxisAlignment: CrossAxisAlignment.end, - // children: [ - // buildStartDate(context), - // SizedBox(width: 10), - // buildEndDate(context), - // SizedBox(width: 10), - // - // Padding( - // padding: const EdgeInsets.symmetric( - // vertical: 8.0, - // ), - // child: GestureDetector( - // // onTap: filterDateRange, - // onTap: () { - // if (_formKey.currentState!.validate()) { - // filterDateRange(); // only runs if valid - // } - // }, - // child: Icon(Icons.filter_alt_outlined), - // ), - // ), - // - // Padding( - // padding: const EdgeInsets.all(8.0), - // child: GestureDetector( - // onTap: refrshfilterDateRange, - // child: Icon(Icons.refresh), - // ), - // ), - // ], - // ), - // ), Spacer(), ], + ThemedSearchField( hintText: 'Search', backgroundColor: Color(0xFFF6F8F8), @@ -535,8 +502,9 @@ class EnquiryListState extends ConsumerState { ? MediaQuery.of(context).size.width * 0.6 : MediaQuery.of(context).size.width * 0.2, ), - - SizedBox(width: 10), + ResponsiveLayout.isMobile(context) + ? Spacer() + : SizedBox(width: 10), ExportBtn( sheetName: "Enquiry", @@ -781,27 +749,27 @@ class EnquiryListState extends ConsumerState { child: Row( children: [ // GestureDetector( - // onTap: () { - // Navigator.pop(context); - // print('EDITStaff - ${item['id']}'); - // // dynamic id = data['id']; - // // context.go('/tabEnquiry/$id'); - // setState(() { - // final id = item['id'].toString(); - // ref.read(enquiryIdProvider.notifier).state = id; - // }); - // // update provider - // - // context.go(AppRoutes.tabEnquiry); - // }, - // onTap: () { - // handleEdit(item); - // }, - // child: Image.asset( - // "assets/miscellaneous/Edit.png", - // height: 15, - // width: 15, - // ), + // onTap: () { + // Navigator.pop(context); + // print('EDITStaff - ${item['id']}'); + // // dynamic id = data['id']; + // // context.go('/tabEnquiry/$id'); + // setState(() { + // final id = item['id'].toString(); + // ref.read(enquiryIdProvider.notifier).state = id; + // }); + // // update provider + // + // context.go(AppRoutes.tabEnquiry); + // }, + // onTap: () { + // handleEdit(item); + // }, + // child: Image.asset( + // "assets/miscellaneous/Edit.png", + // height: 15, + // width: 15, + // ), // ), Tooltip( message: 'Edit', @@ -819,7 +787,7 @@ class EnquiryListState extends ConsumerState { padding: const EdgeInsets.all(8), constraints: const BoxConstraints(), ), - ) + ), ], ), ), @@ -894,7 +862,7 @@ class EnquiryListState extends ConsumerState { padding: const EdgeInsets.all(8), constraints: const BoxConstraints(), ), - ) + ), // GestureDetector( // // onTap: () { // // Navigator.pop(context); diff --git a/lib/presentation/screens/UserManagement/Agent/agent.dart b/lib/presentation/screens/UserManagement/Agent/agent.dart index c558c68..fe147b4 100644 --- a/lib/presentation/screens/UserManagement/Agent/agent.dart +++ b/lib/presentation/screens/UserManagement/Agent/agent.dart @@ -235,17 +235,17 @@ class AgentState extends ConsumerState { if (response.statusCode == 200 || response.statusCode == 201) { // dispose(); - print("✅ Agent submitted successfully!"); + print("✅ Partner submitted successfully!"); print("Response: ${response.body}"); isUpdating ? ToastHelper.showSuccessToast( context, - 'Agent Updated Successfully', + 'Partner Updated Successfully', ) : ToastHelper.showSuccessToast( context, - 'Agent Created Successfully', + 'Partner Created Successfully', ); context.go(AppRoutes.agentLst); } else { @@ -258,7 +258,7 @@ class AgentState extends ConsumerState { context: context, builder: (BuildContext context) { return AlertDialog( - title: Text("Agent User Creation Failed"), + title: Text("Partner User Creation Failed"), content: Text( msg, // "There was a problem in creating user. Please try again.", @@ -324,7 +324,7 @@ class AgentState extends ConsumerState { // managerId = ref.watch(managerIdProvider); // userId = ref.watch(userProvider); return MainLayout( - title: "Agent", + title: "Partner", body: Container( // color: Colors.yellow.shade50, width: MediaQuery.of(context).size.width, @@ -347,8 +347,14 @@ class AgentState extends ConsumerState { Tooltip( message: 'Back', child: IconButton( - icon: const Icon(Icons.arrow_left_sharp,size: 25,color: Color(0xFF425B5B)), - onPressed: () { context.go(AppRoutes.agentLst); }, + icon: const Icon( + Icons.arrow_left_sharp, + size: 25, + color: Color(0xFF425B5B), + ), + onPressed: () { + context.go(AppRoutes.agentLst); + }, splashRadius: 18, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -357,7 +363,7 @@ class AgentState extends ConsumerState { ), const SizedBox(width: 5), // spacing between icon and text Text( - "Agent", + "Partner", style: TextStyle( fontSize: 18, fontWeight: FontWeight.w600, @@ -510,7 +516,7 @@ class AgentState extends ConsumerState { return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Text("Agent Id *", style: _textStyle), + Text("Partner Id *", style: _textStyle), SizedBox(width: 10), ThemedFormField( controller: controllers['code']!, diff --git a/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart b/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart index ac35ae0..3c980cb 100644 --- a/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart +++ b/lib/presentation/screens/UserManagement/Agent/agentIncentiveFile.dart @@ -206,7 +206,7 @@ class UploadIncentiveModalState extends ConsumerState { Future handleSave() async { if (agentId == null) { - ToastHelper.showErrorToast(context, 'Select Agent Name'); + ToastHelper.showErrorToast(context, 'Select Partner Name'); } else { if (!_formKey.currentState!.validate()) return; print("Handl1"); @@ -316,7 +316,7 @@ class UploadIncentiveModalState extends ConsumerState { if (response.statusCode == 200 || response.statusCode == 201) { // dispose(); - print("✅ Agent submitted successfully!"); + print("✅ Partner submitted successfully!"); print("📨 Response: ${response.body}"); @@ -347,7 +347,7 @@ class UploadIncentiveModalState extends ConsumerState { context: context, builder: (BuildContext context) { return AlertDialog( - title: Text("Agent Creation Failed"), + title: Text("Partner Creation Failed"), content: Text( "There was a problem in creating user. Please try again.", ), @@ -392,7 +392,11 @@ class UploadIncentiveModalState extends ConsumerState { Tooltip( message: 'Refresh', child: IconButton( - icon: const Icon(Icons.refresh, size: 20, color: Color(0xFF425B5B)), + icon: const Icon( + Icons.refresh, + size: 20, + color: Color(0xFF425B5B), + ), onPressed: () { refresh(); }, @@ -405,7 +409,11 @@ class UploadIncentiveModalState extends ConsumerState { Tooltip( message: 'Close', child: IconButton( - icon: const Icon(Icons.close, size: 20, color: Color(0xFF425B5B)), + icon: const Icon( + Icons.close, + size: 20, + color: Color(0xFF425B5B), + ), onPressed: () { Navigator.pop(context); }, @@ -425,7 +433,7 @@ class UploadIncentiveModalState extends ConsumerState { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Agent Name', style: _labelStyle), + Text('Partner Name', style: _labelStyle), SizedBox(height: 5), Container( @@ -449,7 +457,7 @@ class UploadIncentiveModalState extends ConsumerState { item['id'] == selectedItem['id'], // ✅ compare by id decoratorProps: DropDownDecoratorProps( decoration: AppInputDecorations.dropdownDecoration( - label: "Select Agent", + label: "Select Partner", ), ), @@ -477,7 +485,7 @@ class UploadIncentiveModalState extends ConsumerState { onChanged: (agent) { if (agent != null) { - print("Selected Agent Name: ${agent['name']}"); + print("Selected Partner Name: ${agent['name']}"); print("Agent Code: ${agent['agent_code']}"); print("Agent Id: ${agent['id']}"); getAgentIncenctiveFileList(agent['id']); @@ -494,7 +502,7 @@ class UploadIncentiveModalState extends ConsumerState { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Agent ID', style: _labelStyle), + Text('Partner ID', style: _labelStyle), SizedBox(height: 5), ThemedFormField( controller: controllers['agentId']!, @@ -677,7 +685,11 @@ class UploadIncentiveModalState extends ConsumerState { final selectedId = file['id']; final path = 'api/agent/downloadAgentIncentiveFile?id=$selectedId'; - apiService.getPdfDownload(context,path, selectedId); + apiService.getPdfDownload( + context, + path, + selectedId, + ); }, onDelete: () async { print("Delete ${file['id']}"); diff --git a/lib/presentation/screens/UserManagement/Agent/agentList.dart b/lib/presentation/screens/UserManagement/Agent/agentList.dart index 10d4262..6989fec 100644 --- a/lib/presentation/screens/UserManagement/Agent/agentList.dart +++ b/lib/presentation/screens/UserManagement/Agent/agentList.dart @@ -83,11 +83,21 @@ class AgentListState extends ConsumerState { setState(() { filteredData = getAgentData.where((item) { final isActiveStatus = item['is_active'] == "1" ? "active" : "inactive"; - return (item['name'] ?? '-').toLowerCase().contains(query.toLowerCase()) || - (item['email'] ?? '-').toLowerCase().contains(query.toLowerCase()) || - (item['mobile'] ?? '-').toLowerCase().contains(query.toLowerCase()) || - (item['address'] ?? '-').toLowerCase().contains(query.toLowerCase()) || - (item['agent_code'] ?? '-').toLowerCase().contains(query.toLowerCase()) || + return (item['name'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || + (item['email'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || + (item['mobile'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || + (item['address'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || + (item['agent_code'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || (isActiveStatus.contains(query.toLowerCase())); }).toList(); }); @@ -155,7 +165,7 @@ class AgentListState extends ConsumerState { Widget build(BuildContext context) { managerId = ref.watch(managerIdProvider); return MainLayout( - title: "Agent", + title: "Partner", body: Container( // color: Colors.yellow.shade50, width: MediaQuery.of(context).size.width, @@ -178,8 +188,14 @@ class AgentListState extends ConsumerState { Tooltip( message: 'Back', child: IconButton( - icon: const Icon(Icons.arrow_left_sharp,size: 25,color: Color(0xFF425B5B)), - onPressed: () { context.go(AppRoutes.dashboard); }, + icon: const Icon( + Icons.arrow_left_sharp, + size: 25, + color: Color(0xFF425B5B), + ), + onPressed: () { + context.go(AppRoutes.dashboard); + }, splashRadius: 18, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -188,7 +204,7 @@ class AgentListState extends ConsumerState { ), const SizedBox(width: 5), // spacing between icon and text Text( - "Agent", + "Partner", style: TextStyle( fontSize: 18, fontWeight: FontWeight.w600, @@ -290,7 +306,7 @@ class AgentListState extends ConsumerState { mainAxisSize: MainAxisSize.min, children: [ Text( - 'Create New Agent', + 'Create New Partner', style: TextStyle( color: Colors.white, fontWeight: FontWeight.w600, @@ -327,7 +343,7 @@ class AgentListState extends ConsumerState { ), Expanded( flex: 2, - child: Text('Agent Name', style: _headerStyle), + child: Text('Partner Name', style: _headerStyle), ), Expanded( flex: 3, diff --git a/lib/presentation/screens/dashboard/dashboard.dart b/lib/presentation/screens/dashboard/dashboard.dart index 83a8a28..1c8a235 100644 --- a/lib/presentation/screens/dashboard/dashboard.dart +++ b/lib/presentation/screens/dashboard/dashboard.dart @@ -9,6 +9,7 @@ import '../../../core/routing/routes.dart'; import '../../../core/services/api_service.dart'; import '../../layouts/main_layout.dart'; import '../../providers/manager_provider.dart'; +import '../../providers/quotation_staff_proivder.dart'; import '../../providers/userRoleProvider.dart'; import '../staff/assignStaff.dart'; @@ -96,8 +97,13 @@ class _DashboardScreenState extends ConsumerState { } void refresh() { - print("REFRESH-"); - getStaffList(prefid, prefroleId); + final prefid = ref.read(userIdProvider); + final prefroleId = ref.read(userRoleProvider); + + if (prefid != null) { + print("REFRESH- calling getStaffList with $prefid, $prefroleId"); + getStaffList(prefid, prefroleId); + } } Future handleEdit(String id) async { @@ -108,7 +114,6 @@ class _DashboardScreenState extends ConsumerState { // context.go('/tabEnquiry/$id'); final prefs = await SharedPreferences.getInstance(); - // ✅ Remove old value (if any) await prefs.remove('enqAgentDataId'); @@ -118,13 +123,27 @@ class _DashboardScreenState extends ConsumerState { // await prefs.setString('enqAgentDataId', id.toString()); await prefs.setString('enqAgentDataId', id); ref.read(enquiryIdProvider.notifier).state = id; - - // }); - // update provider - context.go(AppRoutes.tabEnquiry); } + Future handleStaffEdit(String id, String? flag) async { + // Navigator.pop(context); + print('EDITStaff'); + print('EDITStaff - $id'); + + final prefs = await SharedPreferences.getInstance(); + await prefs.remove('enqStaffDataId'); + // ✅ Save the new id + await prefs.setString('enqStaffDataId', id.toString()); + ref.read(quotationStaffIdProvider.notifier).state = id; + + if (flag == "Policies") { + context.go(AppRoutes.policy); + } else { + context.go(AppRoutes.quotation); + } + } + Future getStaffList(int managerId, role) async { print('B89 => Fns called => $managerId | $role'); setState(() { @@ -405,10 +424,18 @@ class _DashboardScreenState extends ConsumerState { parts[0], ); date = DateFormat( - 'dd/MM/yyyy', + 'dd-MM-yyyy', ).format(parsedDate); // 19/09/2025 } - time = parts.length > 1 ? parts[1] : ""; + // time = parts.length > 1 ? parts[1] : ""; + // Format the time part (HH:mm) + if (parts.length >= 2) { + final timeParts = parts[1].split(":"); + time = + "${timeParts[0]}:${timeParts[1]}"; // 05:45 + } else { + time = ""; + } } return Card( @@ -440,13 +467,10 @@ class _DashboardScreenState extends ConsumerState { mainAxisAlignment: MainAxisAlignment.center, children: [ Text( - '$date ${time}', + date, style: GoogleFonts.inter(fontSize: 12), ), - // Text( - // (time ?? "").toString().split(" ").last, - // style: GoogleFonts.inter(fontSize: 12), - // ), + Text(time, style: _tableDataTimeStyle), ], ), ), @@ -526,6 +550,9 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ) : (role == 'manager') ? othersPendings( @@ -544,6 +571,10 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ), ), const SizedBox(width: 16), @@ -559,6 +590,9 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ) : (role == 'manager') ? awaitingApproval( @@ -577,6 +611,9 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ), ), const SizedBox(width: 16), @@ -593,6 +630,9 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ) : (role == 'manager') ? othersPendings( @@ -612,6 +652,9 @@ class _DashboardScreenState extends ConsumerState { row, ); // parent method is called }, + onStaffEdit: (row, flag) { + handleStaffEdit(row, flag); + }, ), ), ], @@ -653,115 +696,6 @@ class _DashboardScreenState extends ConsumerState { ), ), ), - - // Expanded( - // child: - // - // SingleChildScrollView( - // scrollDirection: Axis.vertical, - // child: Column( - // children: [ - // if (role != 'staff') - // Row( - // children: [ - // Expanded( - // child: StatCard( - // title: "Policies Issued", - // today: policiesIssuedToday ?? '', - // month: policiesIssuedMonth ?? '', - // year: policiesIssuedYear ?? '', - // imagePath: - // "assets/dashboard/Policy issue icon.png", - // ), - // ), - // SizedBox(width: 16), - // Expanded( - // child: StatCard( - // title: "Premium Value", - // today: premiumValueToday ?? '', - // month: premiumValueMonth ?? '', - // year: premiumValueYear ?? '', - // imagePath: "assets/dashboard/Premium value.png", - // ), - // ), - // SizedBox(width: 16), - // Expanded( - // child: StatCard( - // title: "Earnings", - // today: earningsToday ?? '', - // month: earningsMonth ?? '', - // year: earningsYear ?? '', - // imagePath: "assets/dashboard/Earnings.png", - // ), - // ), - // ], - // ), - // if (role == 'manager') - // Expanded( - // child: Row( - // children: [ - // Expanded( - // child: Performance( - // title: "Performing Agents", - // data: agentsPerformanceList, - // ), - // ), - // SizedBox(width: 16), - // Expanded( - // child: Performance( - // title: "Non-Performing Agents", - // data: nonAgentsPerformanceList, - // ), - // ), - // ], - // ), - // ), - // const SizedBox(height: 10), - // Expanded( - // child: Row( - // children: [ - // Expanded( - // child: (role == 'agent') - // ? agentPendings( - // title: - // "Enquiries Pending (${policiesPendingList.length})", - // data: policiesPendingList, - // ) - // : othersPendings( - // title: - // "Quotations Pending (${quotationsPendingList.length})", - // data: quotationsPendingList, - // stringFlag: "Quotation", - // ), - // ), - // const SizedBox(width: 16), - // Expanded( - // child: (role == 'agent') - // ? agentPendings( - // title: - // "Quotations Pending (${quotationsPendingList.length})", - // data: quotationsPendingList, - // ) - // : othersPendings( - // title: - // "Policies Pending (${policiesPendingList.length})", - // data: policiesPendingList, - // stringFlag: "Policies", - // ), - // // child: - // // quotationsPendingList.isEmpty ? Center(child: Text("Loading quotations...")) : - // // agentPendings( - // // title: "Quotations Pending (${quotationsPendingList.length})", - // // data: quotationsPendingList, - // // ), - // ), - // ], - // ), - // ), - // ], - // ), - // ), - // ), ); } @@ -965,12 +899,15 @@ class agentPendings extends StatelessWidget { // final Function(Map)? onEdit; final Function(String)? onEdit; + // final Function(String)? onStaffEdit; + final Function(String, String?)? onStaffEdit; agentPendings({ Key? key, required this.title, required this.data, this.stringFlag, + required this.onStaffEdit, required this.role, required this.onEdit, }) : super(key: key); @@ -1001,14 +938,14 @@ class agentPendings extends StatelessWidget { ), child: Row( children: [ - Expanded( - flex: 1, - child: Text( - "S.No", - textAlign: TextAlign.center, - style: _headerStyle, - ), - ), + // Expanded( + // flex: 1, + // child: Text( + // "S.No", + // textAlign: TextAlign.center, + // style: _headerStyle, + // ), + // ), Expanded( flex: 1, child: Text( @@ -1056,10 +993,17 @@ class agentPendings extends StatelessWidget { if (parts.isNotEmpty) { DateTime parsedDate = DateTime.parse(parts[0]); date = DateFormat( - 'dd/MM/yyyy', + 'dd-MM-yyyy', ).format(parsedDate); // 19/09/2025 } - time = parts.length > 1 ? parts[1] : ""; + // time = parts.length > 1 ? parts[1] : ""; + // Format the time part (HH:mm) + if (parts.length >= 2) { + final timeParts = parts[1].split(":"); + time = "${timeParts[0]}:${timeParts[1]}"; // 05:45 + } else { + time = ""; + } } return InkWell( @@ -1068,10 +1012,16 @@ class agentPendings extends StatelessWidget { borderRadius: BorderRadius.circular(2), onTap: (role == 'manager') ? null - : () { - print("Clicked ID role : $role - ${row['id']}"); + : (role == 'agent') + ? () { + print("Clicked Agent role : $role - ${row['id']}"); onEdit!(row['id'].toString()); // onEdit!(row['id']); + } + : () { + print("Clicked Staff role : $role - ${row['id']}"); + print("Clicked Staff stringFlag : $stringFlag"); + onStaffEdit!(row['id'].toString(), stringFlag); }, child: Container( margin: const EdgeInsets.symmetric(vertical: 5), @@ -1085,14 +1035,14 @@ class agentPendings extends StatelessWidget { ), child: Row( children: [ - Expanded( - flex: 1, - child: Text( - (index + 1).toString(), - textAlign: TextAlign.center, - style: _tableDataStyle, - ), - ), + // Expanded( + // flex: 1, + // child: Text( + // (index + 1).toString(), + // textAlign: TextAlign.center, + // style: _tableDataStyle, + // ), + // ), // Date & Time Expanded( flex: 1, @@ -1100,7 +1050,7 @@ class agentPendings extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text(date, style: _tableDataStyle), - Text(time, style: _tableDataStyle), + Text(time, style: _tableDataTimeStyle), ], ), ), @@ -1177,14 +1127,14 @@ class othersPendings extends StatelessWidget { ), child: Row( children: [ - Expanded( - flex: 1, - child: Text( - "S.No", - textAlign: TextAlign.center, - style: _headerStyle, - ), - ), + // Expanded( + // flex: 1, + // child: Text( + // "S.No", + // textAlign: TextAlign.center, + // style: _headerStyle, + // ), + // ), Expanded( flex: 2, child: Text( @@ -1232,67 +1182,59 @@ class othersPendings extends StatelessWidget { ? '0' : row['total_premium_value']; - return InkWell( - focusColor: Color(0xFF3E5B56), - highlightColor: Color(0xFF3E5B56), - borderRadius: BorderRadius.circular(2), - onTap: () { - print("Clicked ID: ${row['id']}"); - }, - child: Container( - margin: const EdgeInsets.symmetric(vertical: 5), - padding: const EdgeInsets.symmetric( - vertical: 5, - horizontal: 12, - ), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(10), - ), - child: Row( - children: [ - Expanded( - flex: 1, - child: Text( - (index + 1).toString(), - textAlign: TextAlign.center, - style: _tableDataStyle, - ), - ), - Expanded( - flex: 2, - child: Text( - row['staff_name'] ?? "", + return Container( + margin: const EdgeInsets.symmetric(vertical: 5), + padding: const EdgeInsets.symmetric( + vertical: 5, + horizontal: 12, + ), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(10), + ), + child: Row( + children: [ + // Expanded( + // flex: 1, + // child: Text( + // (index + 1).toString(), + // textAlign: TextAlign.center, + // style: _tableDataStyle, + // ), + // ), + Expanded( + flex: 2, + child: Text( + row['staff_name'] ?? "", - textAlign: TextAlign.center, - style: _tableDataStyle, - ), + textAlign: TextAlign.center, + style: _tableDataStyle, ), + ), - Expanded( - flex: 2, - child: Text( - issuedCount, - // row['total_approval_pending'] ?? "", - textAlign: TextAlign.center, - style: _tableDataStyle, - ), + Expanded( + flex: 2, + child: Text( + issuedCount, + // row['total_approval_pending'] ?? "", + textAlign: TextAlign.center, + style: _tableDataStyle, ), - // stringFlag == "Policies" - // ? Expanded( - // flex: 2, - // child: Text( - // formatToCroresLakhsAndThousands(permiumValue), - // textAlign: TextAlign.center, - // style: GoogleFonts.inter( - // fontSize: 14, - // fontWeight: FontWeight.w500, - // ), - // ), - // ) - // : const SizedBox.shrink(), - ], - ), + ), + // stringFlag == "Policies" + // ? Expanded( + // flex: 2, + // child: Text( + // formatToCroresLakhsAndThousands(permiumValue), + // textAlign: TextAlign.center, + // style: GoogleFonts.inter( + // fontSize: 14, + // fontWeight: FontWeight.w500, + // ), + // ), + // ) + // : const SizedBox.shrink(), + ], ), ); }, @@ -1343,14 +1285,14 @@ class awaitingApproval extends StatelessWidget { ), child: Row( children: [ - Expanded( - flex: 1, - child: Text( - "S.No", - textAlign: TextAlign.center, - style: _headerStyle, - ), - ), + // Expanded( + // flex: 1, + // child: Text( + // "S.No", + // textAlign: TextAlign.center, + // style: _headerStyle, + // ), + // ), Expanded( flex: 2, child: Text( @@ -1398,67 +1340,59 @@ class awaitingApproval extends StatelessWidget { ? '0' : row['total_premium_value']; - return InkWell( - focusColor: Color(0xFF3E5B56), - highlightColor: Color(0xFF3E5B56), - borderRadius: BorderRadius.circular(2), - onTap: () { - print("Clicked ID: ${row['id']}"); - }, - child: Container( - margin: const EdgeInsets.symmetric(vertical: 5), - padding: const EdgeInsets.symmetric( - vertical: 5, - horizontal: 12, - ), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(10), - ), - child: Row( - children: [ - Expanded( - flex: 1, - child: Text( - (index + 1).toString(), - textAlign: TextAlign.center, - style: _tableDataStyle, - ), - ), - Expanded( - flex: 2, - child: Text( - row['staff_name'] ?? "", + return Container( + margin: const EdgeInsets.symmetric(vertical: 5), + padding: const EdgeInsets.symmetric( + vertical: 5, + horizontal: 12, + ), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(10), + ), + child: Row( + children: [ + // Expanded( + // flex: 1, + // child: Text( + // (index + 1).toString(), + // textAlign: TextAlign.center, + // style: _tableDataStyle, + // ), + // ), + Expanded( + flex: 2, + child: Text( + row['staff_name'] ?? "", - textAlign: TextAlign.center, - style: _tableDataStyle, - ), + textAlign: TextAlign.center, + style: _tableDataStyle, ), + ), - Expanded( - flex: 2, - child: Text( - // issuedCount, - (row['total_approval_pending'] ?? 0).toString(), - textAlign: TextAlign.center, - style: _tableDataStyle, - ), + Expanded( + flex: 2, + child: Text( + // issuedCount, + (row['total_approval_pending'] ?? 0).toString(), + textAlign: TextAlign.center, + style: _tableDataStyle, ), - // stringFlag == "Policies" - // ? Expanded( - // flex: 2, - // child: Text( - // formatToCroresLakhsAndThousands(permiumValue), - // textAlign: TextAlign.center, - // style: GoogleFonts.inter( - // fontSize: 14, - // fontWeight: FontWeight.w500, - // ), - // ), - // ) - // : const SizedBox.shrink(), - ], - ), + ), + // stringFlag == "Policies" + // ? Expanded( + // flex: 2, + // child: Text( + // formatToCroresLakhsAndThousands(permiumValue), + // textAlign: TextAlign.center, + // style: GoogleFonts.inter( + // fontSize: 14, + // fontWeight: FontWeight.w500, + // ), + // ), + // ) + // : const SizedBox.shrink(), + ], ), ); }, @@ -1502,13 +1436,13 @@ class Performance extends StatelessWidget { ), child: Row( children: [ - Expanded( - child: Text( - "S.No", - textAlign: TextAlign.center, - style: _headerStyle, - ), - ), + // Expanded( + // child: Text( + // "S.No", + // textAlign: TextAlign.center, + // style: _headerStyle, + // ), + // ), Expanded( child: Text( "Agent Name", @@ -1555,14 +1489,13 @@ class Performance extends StatelessWidget { ), child: Row( children: [ - Expanded( - child: Text( - (index + 1).toString(), // convert int to string - textAlign: TextAlign.center, - style: _tableDataStyle, - ), - ), - + // Expanded( + // child: Text( + // (index + 1).toString(), // convert int to string + // textAlign: TextAlign.center, + // style: _tableDataStyle, + // ), + // ), Expanded( child: Text( row['agent_name'] ?? "", @@ -1648,13 +1581,13 @@ class UnassignedEnq extends StatelessWidget { ), child: Row( children: [ - Expanded( - child: Text( - "S.No", - textAlign: TextAlign.center, - style: _headerStyle, - ), - ), + // Expanded( + // child: Text( + // "S.No", + // textAlign: TextAlign.center, + // style: _headerStyle, + // ), + // ), Expanded( child: Text( "Registration number", @@ -1689,10 +1622,17 @@ class UnassignedEnq extends StatelessWidget { if (parts.isNotEmpty) { DateTime parsedDate = DateTime.parse(parts[0]); date = DateFormat( - 'dd/MM/yyyy', + 'dd-MM-yyyy', ).format(parsedDate); // 19/09/2025 } - time = parts.length > 1 ? parts[1] : ""; + // time = parts.length > 1 ? parts[1] : ""; + // Format the time part (HH:mm) + if (parts.length >= 2) { + final timeParts = parts[1].split(":"); + time = "${timeParts[0]}:${timeParts[1]}"; // 05:45 + } else { + time = ""; + } } return InkWell( @@ -1736,14 +1676,6 @@ class UnassignedEnq extends StatelessWidget { ), child: Row( children: [ - Expanded( - child: Text( - (index + 1).toString(), // convert int to string - textAlign: TextAlign.center, - style: _tableDataStyle, - ), - ), - Expanded( child: Text( row['reg_no'] ?? "", @@ -1751,14 +1683,22 @@ class UnassignedEnq extends StatelessWidget { style: _tableDataStyle, ), ), - Expanded( child: Text( - "$date $time", + '', // convert int to string textAlign: TextAlign.center, style: _tableDataStyle, ), ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(date, style: _tableDataStyle), + Text(time, style: _tableDataTimeStyle), + ], + ), + ), ], ), ), @@ -1790,6 +1730,10 @@ final _tableDataStyle = GoogleFonts.inter( fontSize: 14, fontWeight: FontWeight.w500, ); +final _tableDataTimeStyle = GoogleFonts.inter( + fontSize: 12, + fontWeight: FontWeight.w400, +); final topHeaderStyle = GoogleFonts.inter( fontSize: 12, diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_list.dart b/lib/presentation/screens/staff/Enquiry/enquiry_list.dart index 76ede4e..937f871 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_list.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_list.dart @@ -708,7 +708,7 @@ class EnquiryStaffState extends ConsumerState { child: Text('Updated Date', style: _headerStyle), ), Expanded(flex: 2, child: Text('Reg.No', style: _headerStyle)), - Expanded(flex: 2, child: Text('Agents', style: _headerStyle)), + Expanded(flex: 2, child: Text('Partner', style: _headerStyle)), Expanded( flex: 2, child: Text('Assigned To', style: _headerStyle), @@ -1032,7 +1032,7 @@ class EnquiryStaffState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - const Text("Agent", style: _cardheaderStyle), + const Text("Partner", style: _cardheaderStyle), Text(item['agent_name'] ?? '-', style: _cardBodyStyle), ], ), diff --git a/lib/presentation/screens/staff/policy/policy.dart b/lib/presentation/screens/staff/policy/policy.dart index e4c23db..16f77eb 100644 --- a/lib/presentation/screens/staff/policy/policy.dart +++ b/lib/presentation/screens/staff/policy/policy.dart @@ -118,7 +118,8 @@ class PolicyScreenState extends ConsumerState { "issued_date": controllers["issueDate"]?.text, "start_date": controllers["startDate"]?.text, "end_date": controllers["endDate"]?.text, - "premium_amount": controllers["policyPremiumAmount"]?.text, + "premium_amount": controllers["premium_amount"]?.text, + // "premium_amount": controllers["policyPremiumAmount"]?.text, "policy_number": controllers["policyNumber"]?.text, "payment_mode": controllers["policyPaymentMode"]?.text, "manager_id": managerId, @@ -540,8 +541,14 @@ class PolicyScreenState extends ConsumerState { Tooltip( message: 'Back', child: IconButton( - icon: const Icon(Icons.arrow_left_sharp,size: 25,color: Color(0xFF425B5B)), - onPressed: () { context.go(AppRoutes.enquiryForStaff); }, + icon: const Icon( + Icons.arrow_left_sharp, + size: 25, + color: Color(0xFF425B5B), + ), + onPressed: () { + context.go(AppRoutes.enquiryForStaff); + }, splashRadius: 18, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -1004,7 +1011,7 @@ class PolicyScreenState extends ConsumerState { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Register Number*', style: _textStyle), + Text('Registration Number*', style: _textStyle), SizedBox(height: 10), ThemedFormField( controller: controllers['regNum']!, @@ -1110,12 +1117,13 @@ class PolicyScreenState extends ConsumerState { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Premium Amount *', style: _textStyle), + Text('Premium Amount ', style: _textStyle), SizedBox(height: 10), ThemedFormField( - controller: controllers['policyPremiumAmount']!, - validator: (value) => - Validators.requiredField(value, "policyPremiumAmount"), + controller: controllers['premium_amount']!, + readOnly: true, + // validator: (value) => + // Validators.requiredField(value, "policyPremiumAmount"), txtwidth: ResponsiveLayout.isMobile(context) ? null : MediaQuery.of(context).size.width * 0.26, diff --git a/lib/presentation/screens/staff/policy/policy_list.dart b/lib/presentation/screens/staff/policy/policy_list.dart index e5417c7..fd283a9 100644 --- a/lib/presentation/screens/staff/policy/policy_list.dart +++ b/lib/presentation/screens/staff/policy/policy_list.dart @@ -382,8 +382,14 @@ class policylistState extends ConsumerState { Tooltip( message: 'Back', child: IconButton( - icon: const Icon(Icons.arrow_left_sharp,size: 25,color: Color(0xFF425B5B)), - onPressed: () { context.go(AppRoutes.dashboard); }, + icon: const Icon( + Icons.arrow_left_sharp, + size: 25, + color: Color(0xFF425B5B), + ), + onPressed: () { + context.go(AppRoutes.dashboard); + }, splashRadius: 18, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -623,7 +629,7 @@ class policylistState extends ConsumerState { children: [ Expanded(flex: 4, child: Text('Date', style: _headerStyle)), Expanded(flex: 3, child: Text('Reg.No', style: _headerStyle)), - Expanded(flex: 3, child: Text('Agents', style: _headerStyle)), + Expanded(flex: 3, child: Text('Partner', style: _headerStyle)), Expanded( flex: 3, child: Text('Assigned To', style: _headerStyle), @@ -893,7 +899,7 @@ class policylistState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text("Agent", style: _cardheaderStyle), + Text("Partner", style: _cardheaderStyle), Text(item['agent_name'] ?? '-', style: _cardBodyStyle), ], ), diff --git a/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart b/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart index 9941003..0887435 100644 --- a/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart +++ b/lib/presentation/screens/staff/quotations/createQuotationPopUp.dart @@ -476,8 +476,8 @@ class createQuotatDialogState extends State { SizedBox(height: 10), Container( decoration: BoxDecoration( - // color: Colors.white, - borderRadius: BorderRadius.circular(10.0), + color: Colors.white, + // borderRadius: BorderRadius.circular(10.0), ), width: ResponsiveLayout.isMobile(context) ? null diff --git a/lib/presentation/screens/staff/quotations/quotation.dart b/lib/presentation/screens/staff/quotations/quotation.dart index 2c91d45..b530f61 100644 --- a/lib/presentation/screens/staff/quotations/quotation.dart +++ b/lib/presentation/screens/staff/quotations/quotation.dart @@ -168,7 +168,10 @@ class QuotationScreenState extends ConsumerState { } void refresh() { - _loadData(enqQuotation); + print("refresh--"); + if (enqQuotation != null) { + _loadData(enqQuotation); + } } Future getQuotationList(enqQuotation) async { @@ -248,6 +251,7 @@ class QuotationScreenState extends ConsumerState { print(value); if (value == 'Success') { + print('Success'); refresh(); } @@ -297,8 +301,14 @@ class QuotationScreenState extends ConsumerState { Tooltip( message: 'Back', child: IconButton( - icon: const Icon(Icons.arrow_left_sharp,size: 20,color: Color(0xFF425B5B)), - onPressed: () { context.go(AppRoutes.enquiryForStaff); }, + icon: const Icon( + Icons.arrow_left_sharp, + size: 20, + color: Color(0xFF425B5B), + ), + onPressed: () { + context.go(AppRoutes.enquiryForStaff); + }, splashRadius: 9, hoverColor: Colors.black12, padding: const EdgeInsets.all(4), @@ -424,6 +434,7 @@ class QuotationScreenState extends ConsumerState { print(value); if (value == 'Success') { + print('Success'); refresh(); } @@ -642,7 +653,7 @@ class QuotationScreenState extends ConsumerState { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Register Number', style: _textStyle), + Text('Registration Number', style: _textStyle), SizedBox(height: 10), ThemedFormField( controller: controllers['regNum']!, @@ -843,24 +854,24 @@ class QuotationScreenState extends ConsumerState { // ), // ) ? Tooltip( - message: 'Edit', - child: IconButton( - icon: Image.asset( - "assets/miscellaneous/Edit.png", - height: 15, - width: 15, - ), - onPressed: () { - final id = item['id']; - print('RAV - $id'); - handleEdit(id, item); - }, - splashRadius: 20, - hoverColor: Colors.black12, - padding: const EdgeInsets.all(8), - constraints: const BoxConstraints(), + message: 'Edit', + child: IconButton( + icon: Image.asset( + "assets/miscellaneous/Edit.png", + height: 15, + width: 15, ), - ) + onPressed: () { + final id = item['id']; + print('RAV - $id'); + handleEdit(id, item); + }, + splashRadius: 20, + hoverColor: Colors.black12, + padding: const EdgeInsets.all(8), + constraints: const BoxConstraints(), + ), + ) : Image.asset( "assets/miscellaneous/Edit_muted.png", height: 15, @@ -928,24 +939,24 @@ class QuotationScreenState extends ConsumerState { // ), // ) ? Tooltip( - message: 'Edit', - child: IconButton( - icon: Image.asset( - "assets/miscellaneous/Edit.png", - height: 15, - width: 15, + message: 'Edit', + child: IconButton( + icon: Image.asset( + "assets/miscellaneous/Edit.png", + height: 15, + width: 15, + ), + onPressed: () { + final id = item['id']; + print('RAV - $id'); + handleEdit(id, item); + }, + splashRadius: 28, + hoverColor: Colors.black12, + padding: const EdgeInsets.all(8), + constraints: const BoxConstraints(), ), - onPressed: () { - final id = item['id']; - print('RAV - $id'); - handleEdit(id, item); - }, - splashRadius: 28, - hoverColor: Colors.black12, - padding: const EdgeInsets.all(8), - constraints: const BoxConstraints(), - ), - ) + ) : Image.asset( "assets/miscellaneous/Edit_muted.png", height: 15, diff --git a/lib/presentation/widgets/drawer_menu.dart b/lib/presentation/widgets/drawer_menu.dart index c592a1b..439c8b9 100644 --- a/lib/presentation/widgets/drawer_menu.dart +++ b/lib/presentation/widgets/drawer_menu.dart @@ -41,7 +41,7 @@ class DrawerMenuState extends ConsumerState { children: [ if (key == 'User') ...[ _buildPopupItem( - label: "Agent", + label: "Partner", onTap: () => context.go(AppRoutes.agentLst), ), const SizedBox(height: 5), @@ -134,24 +134,26 @@ class DrawerMenuState extends ConsumerState { ), // User (Manager Only) - if (roleId == 'manager') _buildHoverMenu( - context: context, - icon: Icon(Icons.person_add_alt, size: 30), - label: "User", - popupKey: 'User', - ), + if (roleId == 'manager') + _buildHoverMenu( + context: context, + icon: Icon(Icons.person_add_alt, size: 30), + label: "User", + popupKey: 'User', + ), // Reports (Not Staff) - if (roleId != 'staff') _buildHoverMenu( - context: context, - icon: Image.asset( - "assets/drawer/drawerImg2.png", - height: 25, - width: 25, + if (roleId != 'staff') + _buildHoverMenu( + context: context, + icon: Image.asset( + "assets/drawer/drawerImg2.png", + height: 25, + width: 25, + ), + label: "Reports", + popupKey: 'Reports', ), - label: "Reports", - popupKey: 'Reports', - ), ], ), );