diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 49d1f064..ebc4d8b4 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":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","native_build":true,"dependencies":[]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage-9.2.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_ios-0.8.12\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_ios-6.3.0\\\\","native_build":true,"dependencies":[]},{"name":"video_player_avfoundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_avfoundation-2.6.1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.13.1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_plugin_android_lifecycle-2.0.20\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage-9.2.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_android-0.8.12+3\\\\","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.2.5\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_android-2.2.3\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_android-6.3.3\\\\","native_build":true,"dependencies":[]},{"name":"video_player_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_android-2.5.0\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-3.16.4\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_selector_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_macos-0.9.4\\\\","native_build":true,"dependencies":[]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_macos-3.1.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_macos-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_macos"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_macos-3.2.0\\\\","native_build":true,"dependencies":[]},{"name":"video_player_avfoundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_avfoundation-2.6.1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":false,"dependencies":[]},{"name":"file_selector_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_linux-0.9.2+1\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_linux-1.2.1\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_linux-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_linux"]},{"name":"path_provider_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_linux-2.3.2\\\\","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_linux-3.1.1\\\\","native_build":true,"dependencies":[]}],"windows":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":false,"dependencies":[]},{"name":"file_selector_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_windows-0.9.3+1\\\\","native_build":true,"dependencies":[]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_windows-3.1.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_windows-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_windows"]},{"name":"path_provider_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_windows-2.3.2\\\\","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_windows-3.1.1\\\\","native_build":true,"dependencies":[]}],"web":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","dependencies":[]},{"name":"firebase_analytics_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics_web-0.5.7+9\\\\","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core_web-2.17.2\\\\","dependencies":[]},{"name":"firebase_messaging_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging_web-3.8.9\\\\","dependencies":["firebase_core_web"]},{"name":"flutter_secure_storage_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_web-1.2.1\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_for_web-3.0.4\\\\","dependencies":[]},{"name":"shared_preferences_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_web-2.3.0\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_web-2.3.1\\\\","dependencies":[]},{"name":"video_player_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_web-2.3.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"firebase_analytics","dependencies":["firebase_analytics_web","firebase_core"]},{"name":"firebase_analytics_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_local_notifications","dependencies":[]},{"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":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]},{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]},{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-06-21 09:50:17.040953","version":"3.22.2"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","native_build":true,"dependencies":[]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage-9.2.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_ios-0.8.12\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_ios-6.3.0\\\\","native_build":true,"dependencies":[]},{"name":"video_player_avfoundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_avfoundation-2.6.1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.13.1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_plugin_android_lifecycle-2.0.20\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage-9.2.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_android-0.8.12+3\\\\","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.2.5\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_android-2.2.3\\\\","native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_android-6.3.3\\\\","native_build":true,"dependencies":[]},{"name":"video_player_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_android-2.5.0\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_android","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-3.16.4\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":true,"dependencies":[]},{"name":"file_selector_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_macos-0.9.4\\\\","native_build":true,"dependencies":[]},{"name":"firebase_analytics","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics-11.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"firebase_messaging","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging-15.0.1\\\\","native_build":true,"dependencies":["firebase_core"]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_local_notifications-17.1.2\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_macos-3.1.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_macos-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_macos"]},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.3+1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_macos-3.2.0\\\\","native_build":true,"dependencies":[]},{"name":"video_player_avfoundation","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_avfoundation-2.6.1\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":false,"dependencies":[]},{"name":"file_selector_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_linux-0.9.2+1\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_linux-1.2.1\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_linux-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_linux"]},{"name":"path_provider_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_linux-2.3.2\\\\","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_linux-3.1.1\\\\","native_build":true,"dependencies":[]}],"windows":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","native_build":false,"dependencies":[]},{"name":"file_selector_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_selector_windows-0.9.3+1\\\\","native_build":true,"dependencies":[]},{"name":"firebase_core","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core-3.1.0\\\\","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_windows-3.1.2\\\\","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_windows-0.2.1+1\\\\","native_build":false,"dependencies":["file_selector_windows"]},{"name":"path_provider_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_windows-2.3.2\\\\","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_windows-3.1.1\\\\","native_build":true,"dependencies":[]}],"web":[{"name":"device_info_plus","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\device_info_plus-10.1.0\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\file_picker-8.0.5\\\\","dependencies":[]},{"name":"firebase_analytics_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_analytics_web-0.5.7+9\\\\","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_core_web-2.17.2\\\\","dependencies":[]},{"name":"firebase_messaging_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\firebase_messaging_web-3.8.9\\\\","dependencies":["firebase_core_web"]},{"name":"flutter_secure_storage_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_secure_storage_web-1.2.1\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\image_picker_for_web-3.0.4\\\\","dependencies":[]},{"name":"shared_preferences_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_web-2.3.0\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_web-2.3.1\\\\","dependencies":[]},{"name":"video_player_web","path":"C:\\\\Users\\\\jantu\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\video_player_web-2.3.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"firebase_analytics","dependencies":["firebase_analytics_web","firebase_core"]},{"name":"firebase_analytics_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_local_notifications","dependencies":[]},{"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":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]},{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]},{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-06-21 12:24:44.701847","version":"3.22.2"} \ No newline at end of file diff --git a/lib/actions/actions.dart b/lib/actions/actions.dart index 8607b0b5..5f00b861 100644 --- a/lib/actions/actions.dart +++ b/lib/actions/actions.dart @@ -69,6 +69,7 @@ Future manageStatusColorAction( BuildContext context, { required String? visitStatusStr, }) async { + debugPrint('visitStatusStr: $visitStatusStr'); if (visitStatusStr == 'A') { return FlutterFlowTheme.of(context).success; } else if ((visitStatusStr == 'C') || diff --git a/lib/components/organism_components/view_visit_detail/view_visit_detail_model.dart b/lib/components/organism_components/view_visit_detail/view_visit_detail_model.dart index 32e250ab..a5726bc8 100644 --- a/lib/components/organism_components/view_visit_detail/view_visit_detail_model.dart +++ b/lib/components/organism_components/view_visit_detail/view_visit_detail_model.dart @@ -7,7 +7,7 @@ class ViewVisitDetailModel extends FlutterFlowModel { /// State fields for stateful widgets in this component. // Stores action output result for [Action Block - manageStatusColorAction] action in viewVisitDetail widget. - Color? visitStatusColor; + // Color? visitStatusColor; // State field(s) for TextField widget. FocusNode? textFieldFocusNode1; TextEditingController? textController1; diff --git a/lib/components/organism_components/view_visit_detail/view_visit_detail_widget.dart b/lib/components/organism_components/view_visit_detail/view_visit_detail_widget.dart index a854291b..4a1540f6 100644 --- a/lib/components/organism_components/view_visit_detail/view_visit_detail_widget.dart +++ b/lib/components/organism_components/view_visit_detail/view_visit_detail_widget.dart @@ -29,6 +29,7 @@ class ViewVisitDetailWidget extends StatefulWidget { required this.visitorStrList, this.visitorJsonList, required this.visitIdStr, + required this.visitStatusColor, }); final String? visitorImgPath; @@ -42,6 +43,7 @@ class ViewVisitDetailWidget extends StatefulWidget { final String? visitorStrList; final List? visitorJsonList; final String? visitIdStr; + final Color? visitStatusColor; @override State createState() => _ViewVisitDetailWidgetState(); @@ -63,6 +65,7 @@ List? findVisitorById(List? jsonList, String? id) { class _ViewVisitDetailWidgetState extends State { late ViewVisitDetailModel _model; + bool isLoading = true; @override void setState(VoidCallback callback) { @@ -76,14 +79,14 @@ class _ViewVisitDetailWidgetState extends State { _model = createModel(context, () => ViewVisitDetailModel()); // On component load action. - SchedulerBinding.instance.addPostFrameCallback((_) async { - if (widget.visitStatusStr != null) { - _model.visitStatusColor = await action_blocks.manageStatusColorAction( - context, - visitStatusStr: widget.visitStatusStr!, - ); - } - }); + // SchedulerBinding.instance.addPostFrameCallback((_) async { + // if (widget.visitStatusStr != null) { + // _model.visitStatusColor = await action_blocks.manageStatusColorAction( + // context, + // visitStatusStr: widget.visitStatusStr!, + // ); + // } + // }); _model.textController1 = TextEditingController( text: widget.visitTempStr == 'null' ? '' : widget.visitTempStr ?? ''); @@ -780,10 +783,7 @@ class _ViewVisitDetailWidgetState extends State { width: double.infinity, height: 35.0, decoration: BoxDecoration( - color: valueOrDefault( - _model.visitStatusColor, - FlutterFlowTheme.of(context).primary, - ), + color: widget.visitStatusColor, borderRadius: const BorderRadius.only( bottomLeft: Radius.circular(0.0), bottomRight: Radius.circular(0.0), diff --git a/lib/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart b/lib/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart index f964b9b1..338dfe80 100644 --- a/lib/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart +++ b/lib/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart @@ -22,6 +22,7 @@ class VisitDetailsModalTemplateComponentWidget extends StatefulWidget { this.visitIdStr, this.updateToggleIdx, this.repeatVisitSchedule, + this.visitStatusColor, }); final String? visitStatusStr; @@ -38,6 +39,7 @@ class VisitDetailsModalTemplateComponentWidget extends StatefulWidget { final String? visitIdStr; final Future Function()? updateToggleIdx; final Future Function()? repeatVisitSchedule; + final Color? visitStatusColor; @override State createState() => @@ -91,6 +93,7 @@ class _VisitDetailsModalTemplateComponentWidgetState visitorStrList: widget.visitorStrList!, visitorJsonList: widget.visitorJsonList, visitIdStr: widget.visitIdStr!, + visitStatusColor: widget.visitStatusColor!, ), ); } else { diff --git a/lib/flutter_flow/nav/nav.dart b/lib/flutter_flow/nav/nav.dart index 9e70b40a..e400723b 100644 --- a/lib/flutter_flow/nav/nav.dart +++ b/lib/flutter_flow/nav/nav.dart @@ -135,16 +135,16 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) => GoRouter( path: '/peopleOnThePropertyPage', builder: (context, params) => const PeopleOnThePropertyPageWidget(), ), - FFRoute( - name: 'acessHistoryPage', - path: '/acessHistoryPage', - builder: (context, params) => const AcessHistoryPageWidget(), - ), - FFRoute( - name: 'liberationHistory', - path: '/liberationHistory', - builder: (context, params) => const LiberationHistoryWidget(), - ) + // FFRoute( + // name: 'acessHistoryPage', + // path: '/acessHistoryPage', + // builder: (context, params) => const AcessHistoryPageWidget(), + // ), + // FFRoute( + // name: 'liberationHistory', + // path: '/liberationHistory', + // builder: (context, params) => const LiberationHistoryWidget(), + // ) ].map((r) => r.toRoute(appStateNotifier)).toList(), ); diff --git a/lib/pages/acess_history_page/acess_history_page_model.dart b/lib/pages/acess_history_page/acess_history_page_model.dart index 79f51b52..f186fcfd 100644 --- a/lib/pages/acess_history_page/acess_history_page_model.dart +++ b/lib/pages/acess_history_page/acess_history_page_model.dart @@ -1,22 +1,22 @@ -import '/flutter_flow/flutter_flow_util.dart'; -import 'acess_history_page_widget.dart' show AcessHistoryPageWidget; -import 'package:flutter/material.dart'; +// import '/flutter_flow/flutter_flow_util.dart'; +// import 'acess_history_page_widget.dart' show AcessHistoryPageWidget; +// import 'package:flutter/material.dart'; -class AcessHistoryPageModel extends FlutterFlowModel { - /// State fields for stateful widgets in this page. +// class AcessHistoryPageModel extends FlutterFlowModel { +// /// State fields for stateful widgets in this page. - final unfocusNode = FocusNode(); - // State field(s) for TabBar widget. - TabController? tabBarController; - int get tabBarCurrentIndex => - tabBarController != null ? tabBarController!.index : 0; +// final unfocusNode = FocusNode(); +// // State field(s) for TabBar widget. +// TabController? tabBarController; +// int get tabBarCurrentIndex => +// tabBarController != null ? tabBarController!.index : 0; - @override - void initState(BuildContext context) {} +// @override +// void initState(BuildContext context) {} - @override - void dispose() { - unfocusNode.dispose(); - tabBarController?.dispose(); - } -} +// @override +// void dispose() { +// unfocusNode.dispose(); +// tabBarController?.dispose(); +// } +// } diff --git a/lib/pages/acess_history_page/acess_history_page_widget.dart b/lib/pages/acess_history_page/acess_history_page_widget.dart index 395663af..87b2a099 100644 --- a/lib/pages/acess_history_page/acess_history_page_widget.dart +++ b/lib/pages/acess_history_page/acess_history_page_widget.dart @@ -1,1718 +1,1718 @@ -import '/backend/api_requests/api_calls.dart'; -import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart'; -import '/flutter_flow/flutter_flow_theme.dart'; -import '/flutter_flow/flutter_flow_util.dart'; -import '/flutter_flow/custom_functions.dart' as functions; -import 'package:cached_network_image/cached_network_image.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_spinkit/flutter_spinkit.dart'; -import 'package:google_fonts/google_fonts.dart'; -import 'package:provider/provider.dart'; -import 'acess_history_page_model.dart'; -export 'acess_history_page_model.dart'; +// import '/backend/api_requests/api_calls.dart'; +// import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart'; +// import '/flutter_flow/flutter_flow_theme.dart'; +// import '/flutter_flow/flutter_flow_util.dart'; +// import '/flutter_flow/custom_functions.dart' as functions; +// import 'package:cached_network_image/cached_network_image.dart'; +// import 'package:flutter/material.dart'; +// import 'package:flutter_spinkit/flutter_spinkit.dart'; +// import 'package:google_fonts/google_fonts.dart'; +// import 'package:provider/provider.dart'; +// import 'acess_history_page_model.dart'; +// export 'acess_history_page_model.dart'; -class AcessHistoryPageWidget extends StatefulWidget { - const AcessHistoryPageWidget({super.key}); +// class AcessHistoryPageWidget extends StatefulWidget { +// const AcessHistoryPageWidget({super.key}); - @override - State createState() => _AcessHistoryPageWidgetState(); -} +// @override +// State createState() => _AcessHistoryPageWidgetState(); +// } -class _AcessHistoryPageWidgetState extends State - with TickerProviderStateMixin { - late AcessHistoryPageModel _model; +// class _AcessHistoryPageWidgetState extends State +// with TickerProviderStateMixin { +// late AcessHistoryPageModel _model; - final scaffoldKey = GlobalKey(); +// final scaffoldKey = GlobalKey(); - @override - void initState() { - super.initState(); - _model = createModel(context, () => AcessHistoryPageModel()); +// @override +// void initState() { +// super.initState(); +// _model = createModel(context, () => AcessHistoryPageModel()); - _model.tabBarController = TabController( - vsync: this, - length: 3, - initialIndex: 0, - )..addListener(() => setState(() {})); - } +// _model.tabBarController = TabController( +// vsync: this, +// length: 3, +// initialIndex: 0, +// )..addListener(() => setState(() {})); +// } - @override - void dispose() { - _model.dispose(); +// @override +// void dispose() { +// _model.dispose(); - super.dispose(); - } +// super.dispose(); +// } - @override - Widget build(BuildContext context) { - context.watch(); +// @override +// Widget build(BuildContext context) { +// context.watch(); - return GestureDetector( - onTap: () => _model.unfocusNode.canRequestFocus - ? FocusScope.of(context).requestFocus(_model.unfocusNode) - : FocusScope.of(context).unfocus(), - child: Scaffold( - key: scaffoldKey, - backgroundColor: FlutterFlowTheme.of(context).primaryBackground, - body: SafeArea( - top: true, - child: Column( - children: [ - Align( - alignment: const Alignment(0.0, 0), - child: TabBar( - labelColor: FlutterFlowTheme.of(context).primaryText, - unselectedLabelColor: - FlutterFlowTheme.of(context).primaryText, - labelStyle: FlutterFlowTheme.of(context).titleMedium.override( - fontFamily: - FlutterFlowTheme.of(context).titleMediumFamily, - letterSpacing: 0.0, - useGoogleFonts: GoogleFonts.asMap().containsKey( - FlutterFlowTheme.of(context).titleMediumFamily), - ), - unselectedLabelStyle: const TextStyle(), - indicatorColor: FlutterFlowTheme.of(context).primary, - padding: const EdgeInsets.all(4.0), - tabs: [ - Tab( - text: FFLocalizations.of(context).getText( - 'rjdp7j73' /* Visitantes */, - ), - ), - Tab( - text: FFLocalizations.of(context).getText( - '1qa1ok6g' /* Todos */, - ), - ), - Tab( - text: FFLocalizations.of(context).getText( - 'rvac7h59' /* Moradores */, - ), - ), - ], - controller: _model.tabBarController, - onTap: (i) async { - [() async {}, () async {}, () async {}][i](); - }, - ), - ), - Expanded( - child: TabBarView( - controller: _model.tabBarController, - children: [ - Column( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Expanded( - child: Container( - width: double.infinity, - height: double.infinity, - decoration: const BoxDecoration(), - child: FutureBuilder( - future: PhpGroup.getVisitsCall.call( - devUUID: FFAppState().devUUID, - userUUID: FFAppState().userUUID, - cliID: FFAppState().cliUUID, - atividade: 'getVisitas', - ), - builder: (context, snapshot) { - // Customize what your widget looks like when it's loading. - if (!snapshot.hasData) { - return Center( - child: SizedBox( - width: 50.0, - height: 50.0, - child: SpinKitCircle( - color: FlutterFlowTheme.of(context) - .primary, - size: 50.0, - ), - ), - ); - } - final wrapGetVisitsResponse = snapshot.data!; - return Builder( - builder: (context) { - final visitaWrap = PhpGroup.getVisitsCall - .visitasList( - wrapGetVisitsResponse.jsonBody, - ) - ?.toList() ?? - []; - return Wrap( - spacing: 2.0, - runSpacing: 1.0, - alignment: WrapAlignment.start, - crossAxisAlignment: - WrapCrossAlignment.start, - direction: Axis.horizontal, - runAlignment: WrapAlignment.start, - verticalDirection: VerticalDirection.down, - clipBehavior: Clip.none, - children: List.generate(visitaWrap.length, - (visitaWrapIndex) { - final visitaWrapItem = - visitaWrap[visitaWrapIndex]; - return Align( - alignment: - const AlignmentDirectional(0.0, 0.0), - child: InkWell( - splashColor: Colors.transparent, - focusColor: Colors.transparent, - hoverColor: Colors.transparent, - highlightColor: Colors.transparent, - onTap: () async { - await showModalBottomSheet( - isScrollControlled: true, - backgroundColor: - Colors.transparent, - enableDrag: false, - useSafeArea: true, - context: context, - builder: (context) { - return GestureDetector( - onTap: () => _model - .unfocusNode - .canRequestFocus - ? FocusScope.of(context) - .requestFocus(_model - .unfocusNode) - : FocusScope.of(context) - .unfocus(), - child: Padding( - padding: MediaQuery - .viewInsetsOf( - context), - child: - VisitDetailsModalTemplateComponentWidget( - visitStatusStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - ).toString(), - visitStartDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - visitEndDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - visitReasonStr: - getJsonField( - visitaWrapItem, - r'''$.MOT_DESCRICAO''', - ).toString(), - visitLevelStr: - getJsonField( - visitaWrapItem, - r'''$.NAC_DESCRICAO''', - ).toString(), - visitTempStr: - getJsonField( - visitaWrapItem, - r'''$.VTE_UNICA''', - ).toString(), - visitObsStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_OBS''', - ).toString(), - visitorImgPath: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - visitorStrList: - getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString(), - visitIdStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_ID''', - ).toString(), - visitorJsonList: - PhpGroup - .getVisitsCall - .visitasList( - wrapGetVisitsResponse - .jsonBody, - ), - updateToggleIdx: - () async {}, - repeatVisitSchedule: - () async {}, - ), - ), - ); - }, - ).then((value) => - safeSetState(() {})); - }, - child: Card( - clipBehavior: - Clip.antiAliasWithSaveLayer, - color: - FlutterFlowTheme.of(context) - .secondaryBackground, - elevation: 5.0, - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(8.0), - ), - child: Container( - width: 350.0, - height: 115.0, - decoration: BoxDecoration( - color: FlutterFlowTheme.of( - context) - .secondaryBackground, - ), - child: Row( - mainAxisSize: - MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment - .spaceBetween, - children: [ - Expanded( - child: Container( - width: 100.0, - height: 100.0, - decoration: - const BoxDecoration(), - child: Column( - mainAxisSize: - MainAxisSize.max, - children: [ - Row( - mainAxisSize: - MainAxisSize - .max, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'nhxs49l9' /* Visitante: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - -1.0), - child: Text( - getJsonField( - visitaWrapItem, - r'''$.VTE_NOME''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'x9jg3kfx' /* InĂ­cio em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'dh8ib64e' /* Fim em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - 0.0), - child: Padding( - padding: - const EdgeInsetsDirectional - .fromSTEB( - 10.0, - 0.0, - 0.0, - 0.0), - child: - Container( - width: 200.0, - height: 27.0, - decoration: - BoxDecoration( - color: valueOrDefault< - Color>( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FlutterFlowTheme.of(context) - .success; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') { - return FlutterFlowTheme.of(context) - .error; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"') { - return FlutterFlowTheme.of(context) - .warning; - } else { - return FlutterFlowTheme.of(context) - .primary; - } - }(), - FlutterFlowTheme.of( - context) - .primary, - ), - borderRadius: - BorderRadius.circular( - 5.0), - ), - child: Align( - alignment: - const AlignmentDirectional( - 0.0, - 0.0), - child: Text( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Ativo', - enText: - 'Active', - ); - } else if ((functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"F\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"B\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"')) { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Cancelado', - enText: - 'Canceled', - ); - } else { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Pendente', - enText: - 'Pending', - ); - } - }(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - color: - FlutterFlowTheme.of(context).info, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ), - ), - ), - ].divide(const SizedBox( - height: 3.0)), - ), - ), - ), - ClipRRect( - borderRadius: - BorderRadius.circular( - 0.0), - child: CachedNetworkImage( - fadeInDuration: - const Duration( - milliseconds: - 500), - fadeOutDuration: - const Duration( - milliseconds: - 500), - imageUrl: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - fit: BoxFit.cover, - ), - ), - ], - ), - ), - ), - ), - ); - }), - ); - }, - ); - }, - ), - ), - ), - ].addToStart(const SizedBox(height: 30.0)), - ), - Column( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Expanded( - child: Container( - width: double.infinity, - height: double.infinity, - decoration: const BoxDecoration(), - child: FutureBuilder( - future: PhpGroup.getVisitsCall.call( - devUUID: FFAppState().devUUID, - userUUID: FFAppState().userUUID, - cliID: FFAppState().cliUUID, - atividade: 'getVisitas', - ), - builder: (context, snapshot) { - // Customize what your widget looks like when it's loading. - if (!snapshot.hasData) { - return Center( - child: SizedBox( - width: 50.0, - height: 50.0, - child: SpinKitCircle( - color: FlutterFlowTheme.of(context) - .primary, - size: 50.0, - ), - ), - ); - } - final wrapGetVisitsResponse = snapshot.data!; - return Builder( - builder: (context) { - final visitaWrap = PhpGroup.getVisitsCall - .visitasList( - wrapGetVisitsResponse.jsonBody, - ) - ?.toList() ?? - []; - return Wrap( - spacing: 2.0, - runSpacing: 1.0, - alignment: WrapAlignment.start, - crossAxisAlignment: - WrapCrossAlignment.start, - direction: Axis.horizontal, - runAlignment: WrapAlignment.start, - verticalDirection: VerticalDirection.down, - clipBehavior: Clip.none, - children: List.generate(visitaWrap.length, - (visitaWrapIndex) { - final visitaWrapItem = - visitaWrap[visitaWrapIndex]; - return Align( - alignment: - const AlignmentDirectional(0.0, 0.0), - child: InkWell( - splashColor: Colors.transparent, - focusColor: Colors.transparent, - hoverColor: Colors.transparent, - highlightColor: Colors.transparent, - onTap: () async { - await showModalBottomSheet( - isScrollControlled: true, - backgroundColor: - Colors.transparent, - enableDrag: false, - useSafeArea: true, - context: context, - builder: (context) { - return GestureDetector( - onTap: () => _model - .unfocusNode - .canRequestFocus - ? FocusScope.of(context) - .requestFocus(_model - .unfocusNode) - : FocusScope.of(context) - .unfocus(), - child: Padding( - padding: MediaQuery - .viewInsetsOf( - context), - child: - VisitDetailsModalTemplateComponentWidget( - visitStatusStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - ).toString(), - visitStartDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - visitEndDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - visitReasonStr: - getJsonField( - visitaWrapItem, - r'''$.MOT_DESCRICAO''', - ).toString(), - visitLevelStr: - getJsonField( - visitaWrapItem, - r'''$.NAC_DESCRICAO''', - ).toString(), - visitTempStr: - getJsonField( - visitaWrapItem, - r'''$.VTE_UNICA''', - ).toString(), - visitObsStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_OBS''', - ).toString(), - visitorImgPath: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - visitorStrList: - getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString(), - visitIdStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_ID''', - ).toString(), - visitorJsonList: - PhpGroup - .getVisitsCall - .visitasList( - wrapGetVisitsResponse - .jsonBody, - ), - updateToggleIdx: - () async {}, - repeatVisitSchedule: - () async {}, - ), - ), - ); - }, - ).then((value) => - safeSetState(() {})); - }, - child: Card( - clipBehavior: - Clip.antiAliasWithSaveLayer, - color: - FlutterFlowTheme.of(context) - .secondaryBackground, - elevation: 5.0, - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(8.0), - ), - child: Container( - width: 350.0, - height: 115.0, - decoration: BoxDecoration( - color: FlutterFlowTheme.of( - context) - .secondaryBackground, - ), - child: Row( - mainAxisSize: - MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment - .spaceBetween, - children: [ - Expanded( - child: Container( - width: 100.0, - height: 100.0, - decoration: - const BoxDecoration(), - child: Column( - mainAxisSize: - MainAxisSize.max, - children: [ - Row( - mainAxisSize: - MainAxisSize - .max, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'ftl6katl' /* Visitante: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - -1.0), - child: Text( - getJsonField( - visitaWrapItem, - r'''$.VTE_NOME''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'dbquxozy' /* InĂ­cio em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'gjw5vcc6' /* Fim em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - 0.0), - child: Padding( - padding: - const EdgeInsetsDirectional - .fromSTEB( - 10.0, - 0.0, - 0.0, - 0.0), - child: - Container( - width: 200.0, - height: 27.0, - decoration: - BoxDecoration( - color: valueOrDefault< - Color>( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FlutterFlowTheme.of(context) - .success; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') { - return FlutterFlowTheme.of(context) - .error; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"') { - return FlutterFlowTheme.of(context) - .warning; - } else { - return FlutterFlowTheme.of(context) - .primary; - } - }(), - FlutterFlowTheme.of( - context) - .primary, - ), - borderRadius: - BorderRadius.circular( - 5.0), - ), - child: Align( - alignment: - const AlignmentDirectional( - 0.0, - 0.0), - child: Text( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Ativo', - enText: - 'Active', - ); - } else if ((functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"F\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"B\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"')) { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Cancelado', - enText: - 'Canceled', - ); - } else { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Pendente', - enText: - 'Pending', - ); - } - }(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - color: - FlutterFlowTheme.of(context).info, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ), - ), - ), - ].divide(const SizedBox( - height: 3.0)), - ), - ), - ), - ClipRRect( - borderRadius: - BorderRadius.circular( - 0.0), - child: CachedNetworkImage( - fadeInDuration: - const Duration( - milliseconds: - 500), - fadeOutDuration: - const Duration( - milliseconds: - 500), - imageUrl: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - fit: BoxFit.cover, - ), - ), - ], - ), - ), - ), - ), - ); - }), - ); - }, - ); - }, - ), - ), - ), - ].addToStart(const SizedBox(height: 30.0)), - ), - Column( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Expanded( - child: Container( - width: double.infinity, - height: double.infinity, - decoration: const BoxDecoration(), - child: FutureBuilder( - future: PhpGroup.getVisitsCall.call( - devUUID: FFAppState().devUUID, - userUUID: FFAppState().userUUID, - cliID: FFAppState().cliUUID, - atividade: 'getVisitas', - ), - builder: (context, snapshot) { - // Customize what your widget looks like when it's loading. - if (!snapshot.hasData) { - return Center( - child: SizedBox( - width: 50.0, - height: 50.0, - child: SpinKitCircle( - color: FlutterFlowTheme.of(context) - .primary, - size: 50.0, - ), - ), - ); - } - final wrapGetVisitsResponse = snapshot.data!; - return Builder( - builder: (context) { - final visitaWrap = PhpGroup.getVisitsCall - .visitasList( - wrapGetVisitsResponse.jsonBody, - ) - ?.toList() ?? - []; - return Wrap( - spacing: 2.0, - runSpacing: 1.0, - alignment: WrapAlignment.start, - crossAxisAlignment: - WrapCrossAlignment.start, - direction: Axis.horizontal, - runAlignment: WrapAlignment.start, - verticalDirection: VerticalDirection.down, - clipBehavior: Clip.none, - children: List.generate(visitaWrap.length, - (visitaWrapIndex) { - final visitaWrapItem = - visitaWrap[visitaWrapIndex]; - return Align( - alignment: - const AlignmentDirectional(0.0, 0.0), - child: InkWell( - splashColor: Colors.transparent, - focusColor: Colors.transparent, - hoverColor: Colors.transparent, - highlightColor: Colors.transparent, - onTap: () async { - await showModalBottomSheet( - isScrollControlled: true, - backgroundColor: - Colors.transparent, - enableDrag: false, - useSafeArea: true, - context: context, - builder: (context) { - return GestureDetector( - onTap: () => _model - .unfocusNode - .canRequestFocus - ? FocusScope.of(context) - .requestFocus(_model - .unfocusNode) - : FocusScope.of(context) - .unfocus(), - child: Padding( - padding: MediaQuery - .viewInsetsOf( - context), - child: - VisitDetailsModalTemplateComponentWidget( - visitStatusStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - ).toString(), - visitStartDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - visitEndDateStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - visitReasonStr: - getJsonField( - visitaWrapItem, - r'''$.MOT_DESCRICAO''', - ).toString(), - visitLevelStr: - getJsonField( - visitaWrapItem, - r'''$.NAC_DESCRICAO''', - ).toString(), - visitTempStr: - getJsonField( - visitaWrapItem, - r'''$.VTE_UNICA''', - ).toString(), - visitObsStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_OBS''', - ).toString(), - visitorImgPath: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - visitorStrList: - getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString(), - visitIdStr: - getJsonField( - visitaWrapItem, - r'''$.VAW_ID''', - ).toString(), - visitorJsonList: - PhpGroup - .getVisitsCall - .visitasList( - wrapGetVisitsResponse - .jsonBody, - ), - updateToggleIdx: - () async {}, - repeatVisitSchedule: - () async {}, - ), - ), - ); - }, - ).then((value) => - safeSetState(() {})); - }, - child: Card( - clipBehavior: - Clip.antiAliasWithSaveLayer, - color: - FlutterFlowTheme.of(context) - .secondaryBackground, - elevation: 5.0, - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(8.0), - ), - child: Container( - width: 350.0, - height: 115.0, - decoration: BoxDecoration( - color: FlutterFlowTheme.of( - context) - .secondaryBackground, - ), - child: Row( - mainAxisSize: - MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment - .spaceBetween, - children: [ - Expanded( - child: Container( - width: 100.0, - height: 100.0, - decoration: - const BoxDecoration(), - child: Column( - mainAxisSize: - MainAxisSize.max, - children: [ - Row( - mainAxisSize: - MainAxisSize - .max, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - '0xbh5f3a' /* Visitante: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - -1.0), - child: Text( - getJsonField( - visitaWrapItem, - r'''$.VTE_NOME''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'gq3pp39j' /* InĂ­cio em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize - .max, - mainAxisAlignment: - MainAxisAlignment - .start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - '7iaxwb8o' /* Fim em: */, - ), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight.bold, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox( - width: - 10.0)), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, - 0.0), - child: Padding( - padding: - const EdgeInsetsDirectional - .fromSTEB( - 10.0, - 0.0, - 0.0, - 0.0), - child: - Container( - width: 200.0, - height: 27.0, - decoration: - BoxDecoration( - color: valueOrDefault< - Color>( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FlutterFlowTheme.of(context) - .success; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') { - return FlutterFlowTheme.of(context) - .error; - } else if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"') { - return FlutterFlowTheme.of(context) - .warning; - } else { - return FlutterFlowTheme.of(context) - .primary; - } - }(), - FlutterFlowTheme.of( - context) - .primary, - ), - borderRadius: - BorderRadius.circular( - 5.0), - ), - child: Align( - alignment: - const AlignmentDirectional( - 0.0, - 0.0), - child: Text( - () { - if (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Ativo', - enText: - 'Active', - ); - } else if ((functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"F\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"B\"') || - (functions.jsonToStr(getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"')) { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Cancelado', - enText: - 'Canceled', - ); - } else { - return FFLocalizations.of(context) - .getVariableText( - ptText: - 'Pendente', - enText: - 'Pending', - ); - } - }(), - style: FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - color: - FlutterFlowTheme.of(context).info, - letterSpacing: - 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), - ), - ), - ), - ), - ), - ), - ].divide(const SizedBox( - height: 3.0)), - ), - ), - ), - ClipRRect( - borderRadius: - BorderRadius.circular( - 0.0), - child: CachedNetworkImage( - fadeInDuration: - const Duration( - milliseconds: - 500), - fadeOutDuration: - const Duration( - milliseconds: - 500), - imageUrl: - valueOrDefault< - String>( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - fit: BoxFit.cover, - ), - ), - ], - ), - ), - ), - ), - ); - }), - ); - }, - ); - }, - ), - ), - ), - ].addToStart(const SizedBox(height: 30.0)), - ), - ], - ), - ), - ], - ), - ), - ), - ); - } -} +// return GestureDetector( +// onTap: () => _model.unfocusNode.canRequestFocus +// ? FocusScope.of(context).requestFocus(_model.unfocusNode) +// : FocusScope.of(context).unfocus(), +// child: Scaffold( +// key: scaffoldKey, +// backgroundColor: FlutterFlowTheme.of(context).primaryBackground, +// body: SafeArea( +// top: true, +// child: Column( +// children: [ +// Align( +// alignment: const Alignment(0.0, 0), +// child: TabBar( +// labelColor: FlutterFlowTheme.of(context).primaryText, +// unselectedLabelColor: +// FlutterFlowTheme.of(context).primaryText, +// labelStyle: FlutterFlowTheme.of(context).titleMedium.override( +// fontFamily: +// FlutterFlowTheme.of(context).titleMediumFamily, +// letterSpacing: 0.0, +// useGoogleFonts: GoogleFonts.asMap().containsKey( +// FlutterFlowTheme.of(context).titleMediumFamily), +// ), +// unselectedLabelStyle: const TextStyle(), +// indicatorColor: FlutterFlowTheme.of(context).primary, +// padding: const EdgeInsets.all(4.0), +// tabs: [ +// Tab( +// text: FFLocalizations.of(context).getText( +// 'rjdp7j73' /* Visitantes */, +// ), +// ), +// Tab( +// text: FFLocalizations.of(context).getText( +// '1qa1ok6g' /* Todos */, +// ), +// ), +// Tab( +// text: FFLocalizations.of(context).getText( +// 'rvac7h59' /* Moradores */, +// ), +// ), +// ], +// controller: _model.tabBarController, +// onTap: (i) async { +// [() async {}, () async {}, () async {}][i](); +// }, +// ), +// ), +// Expanded( +// child: TabBarView( +// controller: _model.tabBarController, +// children: [ +// Column( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: MainAxisAlignment.start, +// children: [ +// Expanded( +// child: Container( +// width: double.infinity, +// height: double.infinity, +// decoration: const BoxDecoration(), +// child: FutureBuilder( +// future: PhpGroup.getVisitsCall.call( +// devUUID: FFAppState().devUUID, +// userUUID: FFAppState().userUUID, +// cliID: FFAppState().cliUUID, +// atividade: 'getVisitas', +// ), +// builder: (context, snapshot) { +// // Customize what your widget looks like when it's loading. +// if (!snapshot.hasData) { +// return Center( +// child: SizedBox( +// width: 50.0, +// height: 50.0, +// child: SpinKitCircle( +// color: FlutterFlowTheme.of(context) +// .primary, +// size: 50.0, +// ), +// ), +// ); +// } +// final wrapGetVisitsResponse = snapshot.data!; +// return Builder( +// builder: (context) { +// final visitaWrap = PhpGroup.getVisitsCall +// .visitasList( +// wrapGetVisitsResponse.jsonBody, +// ) +// ?.toList() ?? +// []; +// return Wrap( +// spacing: 2.0, +// runSpacing: 1.0, +// alignment: WrapAlignment.start, +// crossAxisAlignment: +// WrapCrossAlignment.start, +// direction: Axis.horizontal, +// runAlignment: WrapAlignment.start, +// verticalDirection: VerticalDirection.down, +// clipBehavior: Clip.none, +// children: List.generate(visitaWrap.length, +// (visitaWrapIndex) { +// final visitaWrapItem = +// visitaWrap[visitaWrapIndex]; +// return Align( +// alignment: +// const AlignmentDirectional(0.0, 0.0), +// child: InkWell( +// splashColor: Colors.transparent, +// focusColor: Colors.transparent, +// hoverColor: Colors.transparent, +// highlightColor: Colors.transparent, +// onTap: () async { +// await showModalBottomSheet( +// isScrollControlled: true, +// backgroundColor: +// Colors.transparent, +// enableDrag: false, +// useSafeArea: true, +// context: context, +// builder: (context) { +// return GestureDetector( +// onTap: () => _model +// .unfocusNode +// .canRequestFocus +// ? FocusScope.of(context) +// .requestFocus(_model +// .unfocusNode) +// : FocusScope.of(context) +// .unfocus(), +// child: Padding( +// padding: MediaQuery +// .viewInsetsOf( +// context), +// child: +// VisitDetailsModalTemplateComponentWidget( +// visitStatusStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// ).toString(), +// visitStartDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// visitEndDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// visitReasonStr: +// getJsonField( +// visitaWrapItem, +// r'''$.MOT_DESCRICAO''', +// ).toString(), +// visitLevelStr: +// getJsonField( +// visitaWrapItem, +// r'''$.NAC_DESCRICAO''', +// ).toString(), +// visitTempStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_UNICA''', +// ).toString(), +// visitObsStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_OBS''', +// ).toString(), +// visitorImgPath: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// visitorStrList: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString(), +// visitIdStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_ID''', +// ).toString(), +// visitorJsonList: +// PhpGroup +// .getVisitsCall +// .visitasList( +// wrapGetVisitsResponse +// .jsonBody, +// ), +// updateToggleIdx: +// () async {}, +// repeatVisitSchedule: +// () async {}, +// ), +// ), +// ); +// }, +// ).then((value) => +// safeSetState(() {})); +// }, +// child: Card( +// clipBehavior: +// Clip.antiAliasWithSaveLayer, +// color: +// FlutterFlowTheme.of(context) +// .secondaryBackground, +// elevation: 5.0, +// shape: RoundedRectangleBorder( +// borderRadius: +// BorderRadius.circular(8.0), +// ), +// child: Container( +// width: 350.0, +// height: 115.0, +// decoration: BoxDecoration( +// color: FlutterFlowTheme.of( +// context) +// .secondaryBackground, +// ), +// child: Row( +// mainAxisSize: +// MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment +// .spaceBetween, +// children: [ +// Expanded( +// child: Container( +// width: 100.0, +// height: 100.0, +// decoration: +// const BoxDecoration(), +// child: Column( +// mainAxisSize: +// MainAxisSize.max, +// children: [ +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'nhxs49l9' /* Visitante: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// -1.0), +// child: Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_NOME''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'x9jg3kfx' /* InĂ­cio em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'dh8ib64e' /* Fim em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// 0.0), +// child: Padding( +// padding: +// const EdgeInsetsDirectional +// .fromSTEB( +// 10.0, +// 0.0, +// 0.0, +// 0.0), +// child: +// Container( +// width: 200.0, +// height: 27.0, +// decoration: +// BoxDecoration( +// color: valueOrDefault< +// Color>( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FlutterFlowTheme.of(context) +// .success; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') { +// return FlutterFlowTheme.of(context) +// .error; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"') { +// return FlutterFlowTheme.of(context) +// .warning; +// } else { +// return FlutterFlowTheme.of(context) +// .primary; +// } +// }(), +// FlutterFlowTheme.of( +// context) +// .primary, +// ), +// borderRadius: +// BorderRadius.circular( +// 5.0), +// ), +// child: Align( +// alignment: +// const AlignmentDirectional( +// 0.0, +// 0.0), +// child: Text( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Ativo', +// enText: +// 'Active', +// ); +// } else if ((functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"F\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"B\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"')) { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Cancelado', +// enText: +// 'Canceled', +// ); +// } else { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Pendente', +// enText: +// 'Pending', +// ); +// } +// }(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// color: +// FlutterFlowTheme.of(context).info, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ), +// ), +// ), +// ].divide(const SizedBox( +// height: 3.0)), +// ), +// ), +// ), +// ClipRRect( +// borderRadius: +// BorderRadius.circular( +// 0.0), +// child: CachedNetworkImage( +// fadeInDuration: +// const Duration( +// milliseconds: +// 500), +// fadeOutDuration: +// const Duration( +// milliseconds: +// 500), +// imageUrl: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// fit: BoxFit.cover, +// ), +// ), +// ], +// ), +// ), +// ), +// ), +// ); +// }), +// ); +// }, +// ); +// }, +// ), +// ), +// ), +// ].addToStart(const SizedBox(height: 30.0)), +// ), +// Column( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: MainAxisAlignment.start, +// children: [ +// Expanded( +// child: Container( +// width: double.infinity, +// height: double.infinity, +// decoration: const BoxDecoration(), +// child: FutureBuilder( +// future: PhpGroup.getVisitsCall.call( +// devUUID: FFAppState().devUUID, +// userUUID: FFAppState().userUUID, +// cliID: FFAppState().cliUUID, +// atividade: 'getVisitas', +// ), +// builder: (context, snapshot) { +// // Customize what your widget looks like when it's loading. +// if (!snapshot.hasData) { +// return Center( +// child: SizedBox( +// width: 50.0, +// height: 50.0, +// child: SpinKitCircle( +// color: FlutterFlowTheme.of(context) +// .primary, +// size: 50.0, +// ), +// ), +// ); +// } +// final wrapGetVisitsResponse = snapshot.data!; +// return Builder( +// builder: (context) { +// final visitaWrap = PhpGroup.getVisitsCall +// .visitasList( +// wrapGetVisitsResponse.jsonBody, +// ) +// ?.toList() ?? +// []; +// return Wrap( +// spacing: 2.0, +// runSpacing: 1.0, +// alignment: WrapAlignment.start, +// crossAxisAlignment: +// WrapCrossAlignment.start, +// direction: Axis.horizontal, +// runAlignment: WrapAlignment.start, +// verticalDirection: VerticalDirection.down, +// clipBehavior: Clip.none, +// children: List.generate(visitaWrap.length, +// (visitaWrapIndex) { +// final visitaWrapItem = +// visitaWrap[visitaWrapIndex]; +// return Align( +// alignment: +// const AlignmentDirectional(0.0, 0.0), +// child: InkWell( +// splashColor: Colors.transparent, +// focusColor: Colors.transparent, +// hoverColor: Colors.transparent, +// highlightColor: Colors.transparent, +// onTap: () async { +// await showModalBottomSheet( +// isScrollControlled: true, +// backgroundColor: +// Colors.transparent, +// enableDrag: false, +// useSafeArea: true, +// context: context, +// builder: (context) { +// return GestureDetector( +// onTap: () => _model +// .unfocusNode +// .canRequestFocus +// ? FocusScope.of(context) +// .requestFocus(_model +// .unfocusNode) +// : FocusScope.of(context) +// .unfocus(), +// child: Padding( +// padding: MediaQuery +// .viewInsetsOf( +// context), +// child: +// VisitDetailsModalTemplateComponentWidget( +// visitStatusStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// ).toString(), +// visitStartDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// visitEndDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// visitReasonStr: +// getJsonField( +// visitaWrapItem, +// r'''$.MOT_DESCRICAO''', +// ).toString(), +// visitLevelStr: +// getJsonField( +// visitaWrapItem, +// r'''$.NAC_DESCRICAO''', +// ).toString(), +// visitTempStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_UNICA''', +// ).toString(), +// visitObsStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_OBS''', +// ).toString(), +// visitorImgPath: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// visitorStrList: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString(), +// visitIdStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_ID''', +// ).toString(), +// visitorJsonList: +// PhpGroup +// .getVisitsCall +// .visitasList( +// wrapGetVisitsResponse +// .jsonBody, +// ), +// updateToggleIdx: +// () async {}, +// repeatVisitSchedule: +// () async {}, +// ), +// ), +// ); +// }, +// ).then((value) => +// safeSetState(() {})); +// }, +// child: Card( +// clipBehavior: +// Clip.antiAliasWithSaveLayer, +// color: +// FlutterFlowTheme.of(context) +// .secondaryBackground, +// elevation: 5.0, +// shape: RoundedRectangleBorder( +// borderRadius: +// BorderRadius.circular(8.0), +// ), +// child: Container( +// width: 350.0, +// height: 115.0, +// decoration: BoxDecoration( +// color: FlutterFlowTheme.of( +// context) +// .secondaryBackground, +// ), +// child: Row( +// mainAxisSize: +// MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment +// .spaceBetween, +// children: [ +// Expanded( +// child: Container( +// width: 100.0, +// height: 100.0, +// decoration: +// const BoxDecoration(), +// child: Column( +// mainAxisSize: +// MainAxisSize.max, +// children: [ +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'ftl6katl' /* Visitante: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// -1.0), +// child: Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_NOME''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'dbquxozy' /* InĂ­cio em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'gjw5vcc6' /* Fim em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// 0.0), +// child: Padding( +// padding: +// const EdgeInsetsDirectional +// .fromSTEB( +// 10.0, +// 0.0, +// 0.0, +// 0.0), +// child: +// Container( +// width: 200.0, +// height: 27.0, +// decoration: +// BoxDecoration( +// color: valueOrDefault< +// Color>( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FlutterFlowTheme.of(context) +// .success; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') { +// return FlutterFlowTheme.of(context) +// .error; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"') { +// return FlutterFlowTheme.of(context) +// .warning; +// } else { +// return FlutterFlowTheme.of(context) +// .primary; +// } +// }(), +// FlutterFlowTheme.of( +// context) +// .primary, +// ), +// borderRadius: +// BorderRadius.circular( +// 5.0), +// ), +// child: Align( +// alignment: +// const AlignmentDirectional( +// 0.0, +// 0.0), +// child: Text( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Ativo', +// enText: +// 'Active', +// ); +// } else if ((functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"F\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"B\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"')) { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Cancelado', +// enText: +// 'Canceled', +// ); +// } else { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Pendente', +// enText: +// 'Pending', +// ); +// } +// }(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// color: +// FlutterFlowTheme.of(context).info, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ), +// ), +// ), +// ].divide(const SizedBox( +// height: 3.0)), +// ), +// ), +// ), +// ClipRRect( +// borderRadius: +// BorderRadius.circular( +// 0.0), +// child: CachedNetworkImage( +// fadeInDuration: +// const Duration( +// milliseconds: +// 500), +// fadeOutDuration: +// const Duration( +// milliseconds: +// 500), +// imageUrl: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// fit: BoxFit.cover, +// ), +// ), +// ], +// ), +// ), +// ), +// ), +// ); +// }), +// ); +// }, +// ); +// }, +// ), +// ), +// ), +// ].addToStart(const SizedBox(height: 30.0)), +// ), +// Column( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: MainAxisAlignment.start, +// children: [ +// Expanded( +// child: Container( +// width: double.infinity, +// height: double.infinity, +// decoration: const BoxDecoration(), +// child: FutureBuilder( +// future: PhpGroup.getVisitsCall.call( +// devUUID: FFAppState().devUUID, +// userUUID: FFAppState().userUUID, +// cliID: FFAppState().cliUUID, +// atividade: 'getVisitas', +// ), +// builder: (context, snapshot) { +// // Customize what your widget looks like when it's loading. +// if (!snapshot.hasData) { +// return Center( +// child: SizedBox( +// width: 50.0, +// height: 50.0, +// child: SpinKitCircle( +// color: FlutterFlowTheme.of(context) +// .primary, +// size: 50.0, +// ), +// ), +// ); +// } +// final wrapGetVisitsResponse = snapshot.data!; +// return Builder( +// builder: (context) { +// final visitaWrap = PhpGroup.getVisitsCall +// .visitasList( +// wrapGetVisitsResponse.jsonBody, +// ) +// ?.toList() ?? +// []; +// return Wrap( +// spacing: 2.0, +// runSpacing: 1.0, +// alignment: WrapAlignment.start, +// crossAxisAlignment: +// WrapCrossAlignment.start, +// direction: Axis.horizontal, +// runAlignment: WrapAlignment.start, +// verticalDirection: VerticalDirection.down, +// clipBehavior: Clip.none, +// children: List.generate(visitaWrap.length, +// (visitaWrapIndex) { +// final visitaWrapItem = +// visitaWrap[visitaWrapIndex]; +// return Align( +// alignment: +// const AlignmentDirectional(0.0, 0.0), +// child: InkWell( +// splashColor: Colors.transparent, +// focusColor: Colors.transparent, +// hoverColor: Colors.transparent, +// highlightColor: Colors.transparent, +// onTap: () async { +// await showModalBottomSheet( +// isScrollControlled: true, +// backgroundColor: +// Colors.transparent, +// enableDrag: false, +// useSafeArea: true, +// context: context, +// builder: (context) { +// return GestureDetector( +// onTap: () => _model +// .unfocusNode +// .canRequestFocus +// ? FocusScope.of(context) +// .requestFocus(_model +// .unfocusNode) +// : FocusScope.of(context) +// .unfocus(), +// child: Padding( +// padding: MediaQuery +// .viewInsetsOf( +// context), +// child: +// VisitDetailsModalTemplateComponentWidget( +// visitStatusStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// ).toString(), +// visitStartDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// visitEndDateStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// visitReasonStr: +// getJsonField( +// visitaWrapItem, +// r'''$.MOT_DESCRICAO''', +// ).toString(), +// visitLevelStr: +// getJsonField( +// visitaWrapItem, +// r'''$.NAC_DESCRICAO''', +// ).toString(), +// visitTempStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_UNICA''', +// ).toString(), +// visitObsStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_OBS''', +// ).toString(), +// visitorImgPath: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// visitorStrList: +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString(), +// visitIdStr: +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_ID''', +// ).toString(), +// visitorJsonList: +// PhpGroup +// .getVisitsCall +// .visitasList( +// wrapGetVisitsResponse +// .jsonBody, +// ), +// updateToggleIdx: +// () async {}, +// repeatVisitSchedule: +// () async {}, +// ), +// ), +// ); +// }, +// ).then((value) => +// safeSetState(() {})); +// }, +// child: Card( +// clipBehavior: +// Clip.antiAliasWithSaveLayer, +// color: +// FlutterFlowTheme.of(context) +// .secondaryBackground, +// elevation: 5.0, +// shape: RoundedRectangleBorder( +// borderRadius: +// BorderRadius.circular(8.0), +// ), +// child: Container( +// width: 350.0, +// height: 115.0, +// decoration: BoxDecoration( +// color: FlutterFlowTheme.of( +// context) +// .secondaryBackground, +// ), +// child: Row( +// mainAxisSize: +// MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment +// .spaceBetween, +// children: [ +// Expanded( +// child: Container( +// width: 100.0, +// height: 100.0, +// decoration: +// const BoxDecoration(), +// child: Column( +// mainAxisSize: +// MainAxisSize.max, +// children: [ +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// '0xbh5f3a' /* Visitante: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// -1.0), +// child: Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_NOME''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'gq3pp39j' /* InĂ­cio em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize +// .max, +// mainAxisAlignment: +// MainAxisAlignment +// .start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// '7iaxwb8o' /* Fim em: */, +// ), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight.bold, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox( +// width: +// 10.0)), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, +// 0.0), +// child: Padding( +// padding: +// const EdgeInsetsDirectional +// .fromSTEB( +// 10.0, +// 0.0, +// 0.0, +// 0.0), +// child: +// Container( +// width: 200.0, +// height: 27.0, +// decoration: +// BoxDecoration( +// color: valueOrDefault< +// Color>( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FlutterFlowTheme.of(context) +// .success; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') { +// return FlutterFlowTheme.of(context) +// .error; +// } else if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"') { +// return FlutterFlowTheme.of(context) +// .warning; +// } else { +// return FlutterFlowTheme.of(context) +// .primary; +// } +// }(), +// FlutterFlowTheme.of( +// context) +// .primary, +// ), +// borderRadius: +// BorderRadius.circular( +// 5.0), +// ), +// child: Align( +// alignment: +// const AlignmentDirectional( +// 0.0, +// 0.0), +// child: Text( +// () { +// if (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Ativo', +// enText: +// 'Active', +// ); +// } else if ((functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"F\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"B\"') || +// (functions.jsonToStr(getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"')) { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Cancelado', +// enText: +// 'Canceled', +// ); +// } else { +// return FFLocalizations.of(context) +// .getVariableText( +// ptText: +// 'Pendente', +// enText: +// 'Pending', +// ); +// } +// }(), +// style: FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// color: +// FlutterFlowTheme.of(context).info, +// letterSpacing: +// 0.0, +// useGoogleFonts: +// GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// ), +// ), +// ), +// ), +// ), +// ].divide(const SizedBox( +// height: 3.0)), +// ), +// ), +// ), +// ClipRRect( +// borderRadius: +// BorderRadius.circular( +// 0.0), +// child: CachedNetworkImage( +// fadeInDuration: +// const Duration( +// milliseconds: +// 500), +// fadeOutDuration: +// const Duration( +// milliseconds: +// 500), +// imageUrl: +// valueOrDefault< +// String>( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// fit: BoxFit.cover, +// ), +// ), +// ], +// ), +// ), +// ), +// ), +// ); +// }), +// ); +// }, +// ); +// }, +// ), +// ), +// ), +// ].addToStart(const SizedBox(height: 30.0)), +// ), +// ], +// ), +// ), +// ], +// ), +// ), +// ), +// ); +// } +// } diff --git a/lib/pages/liberation_history/liberation_history_model.dart b/lib/pages/liberation_history/liberation_history_model.dart index 82830046..80cfd0a4 100644 --- a/lib/pages/liberation_history/liberation_history_model.dart +++ b/lib/pages/liberation_history/liberation_history_model.dart @@ -1,23 +1,23 @@ -import '/flutter_flow/flutter_flow_util.dart'; -import 'liberation_history_widget.dart' show LiberationHistoryWidget; -import 'package:flutter/material.dart'; +// import '/flutter_flow/flutter_flow_util.dart'; +// import 'liberation_history_widget.dart' show LiberationHistoryWidget; +// import 'package:flutter/material.dart'; -class LiberationHistoryModel extends FlutterFlowModel { - /// State fields for stateful widgets in this page. +// class LiberationHistoryModel extends FlutterFlowModel { +// /// State fields for stateful widgets in this page. - final unfocusNode = FocusNode(); - // State field(s) for TextField widget. - FocusNode? textFieldFocusNode; - TextEditingController? textController; - String? Function(BuildContext, String?)? textControllerValidator; +// final unfocusNode = FocusNode(); +// // State field(s) for TextField widget. +// FocusNode? textFieldFocusNode; +// TextEditingController? textController; +// String? Function(BuildContext, String?)? textControllerValidator; - @override - void initState(BuildContext context) {} +// @override +// void initState(BuildContext context) {} - @override - void dispose() { - unfocusNode.dispose(); - textFieldFocusNode?.dispose(); - textController?.dispose(); - } -} +// @override +// void dispose() { +// unfocusNode.dispose(); +// textFieldFocusNode?.dispose(); +// textController?.dispose(); +// } +// } diff --git a/lib/pages/liberation_history/liberation_history_widget.dart b/lib/pages/liberation_history/liberation_history_widget.dart index f66a234a..9022c7cc 100644 --- a/lib/pages/liberation_history/liberation_history_widget.dart +++ b/lib/pages/liberation_history/liberation_history_widget.dart @@ -1,680 +1,680 @@ -import '/backend/api_requests/api_calls.dart'; -import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart'; -import '/flutter_flow/flutter_flow_theme.dart'; -import '/flutter_flow/flutter_flow_util.dart'; -import '/flutter_flow/custom_functions.dart' as functions; -import 'package:cached_network_image/cached_network_image.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_spinkit/flutter_spinkit.dart'; -import 'package:google_fonts/google_fonts.dart'; -import 'package:provider/provider.dart'; -import 'liberation_history_model.dart'; -export 'liberation_history_model.dart'; +// import '/backend/api_requests/api_calls.dart'; +// import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart'; +// import '/flutter_flow/flutter_flow_theme.dart'; +// import '/flutter_flow/flutter_flow_util.dart'; +// import '/flutter_flow/custom_functions.dart' as functions; +// import 'package:cached_network_image/cached_network_image.dart'; +// import 'package:flutter/material.dart'; +// import 'package:flutter_spinkit/flutter_spinkit.dart'; +// import 'package:google_fonts/google_fonts.dart'; +// import 'package:provider/provider.dart'; +// import 'liberation_history_model.dart'; +// export 'liberation_history_model.dart'; -class LiberationHistoryWidget extends StatefulWidget { - const LiberationHistoryWidget({super.key}); +// class LiberationHistoryWidget extends StatefulWidget { +// const LiberationHistoryWidget({super.key}); - @override - State createState() => - _LiberationHistoryWidgetState(); -} +// @override +// State createState() => +// _LiberationHistoryWidgetState(); +// } -class _LiberationHistoryWidgetState extends State { - late LiberationHistoryModel _model; +// class _LiberationHistoryWidgetState extends State { +// late LiberationHistoryModel _model; - final scaffoldKey = GlobalKey(); +// final scaffoldKey = GlobalKey(); - @override - void initState() { - super.initState(); - _model = createModel(context, () => LiberationHistoryModel()); +// @override +// void initState() { +// super.initState(); +// _model = createModel(context, () => LiberationHistoryModel()); - _model.textController ??= TextEditingController(); - _model.textFieldFocusNode ??= FocusNode(); - } +// _model.textController ??= TextEditingController(); +// _model.textFieldFocusNode ??= FocusNode(); +// } - @override - void dispose() { - _model.dispose(); +// @override +// void dispose() { +// _model.dispose(); - super.dispose(); - } +// super.dispose(); +// } - @override - Widget build(BuildContext context) { - context.watch(); +// @override +// Widget build(BuildContext context) { +// context.watch(); - return GestureDetector( - onTap: () => _model.unfocusNode.canRequestFocus - ? FocusScope.of(context).requestFocus(_model.unfocusNode) - : FocusScope.of(context).unfocus(), - child: Scaffold( - key: scaffoldKey, - backgroundColor: FlutterFlowTheme.of(context).primaryBackground, - body: SafeArea( - top: true, - child: Column( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Container( - width: double.infinity, - height: 100.0, - decoration: BoxDecoration( - color: FlutterFlowTheme.of(context).secondaryBackground, - ), - alignment: const AlignmentDirectional(0.0, -1.0), - child: Padding( - padding: const EdgeInsetsDirectional.fromSTEB(8.0, 0.0, 8.0, 0.0), - child: TextFormField( - controller: _model.textController, - focusNode: _model.textFieldFocusNode, - autofocus: true, - obscureText: false, - decoration: InputDecoration( - labelText: FFLocalizations.of(context).getText( - 'dy0mx15f' /* Label here... */, - ), - labelStyle: FlutterFlowTheme.of(context) - .labelMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).labelMediumFamily, - letterSpacing: 0.0, - useGoogleFonts: GoogleFonts.asMap().containsKey( - FlutterFlowTheme.of(context).labelMediumFamily), - ), - hintStyle: FlutterFlowTheme.of(context) - .labelMedium - .override( - fontFamily: - FlutterFlowTheme.of(context).labelMediumFamily, - letterSpacing: 0.0, - useGoogleFonts: GoogleFonts.asMap().containsKey( - FlutterFlowTheme.of(context).labelMediumFamily), - ), - enabledBorder: UnderlineInputBorder( - borderSide: BorderSide( - color: FlutterFlowTheme.of(context).alternate, - width: 2.0, - ), - borderRadius: BorderRadius.circular(8.0), - ), - focusedBorder: UnderlineInputBorder( - borderSide: BorderSide( - color: FlutterFlowTheme.of(context).primary, - width: 2.0, - ), - borderRadius: BorderRadius.circular(8.0), - ), - errorBorder: UnderlineInputBorder( - borderSide: BorderSide( - color: FlutterFlowTheme.of(context).error, - width: 2.0, - ), - borderRadius: BorderRadius.circular(8.0), - ), - focusedErrorBorder: UnderlineInputBorder( - borderSide: BorderSide( - color: FlutterFlowTheme.of(context).error, - width: 2.0, - ), - borderRadius: BorderRadius.circular(8.0), - ), - prefixIcon: const Icon( - Icons.search_sharp, - ), - ), - style: FlutterFlowTheme.of(context).bodyMedium.override( - fontFamily: - FlutterFlowTheme.of(context).bodyMediumFamily, - letterSpacing: 0.0, - useGoogleFonts: GoogleFonts.asMap().containsKey( - FlutterFlowTheme.of(context).bodyMediumFamily), - ), - validator: - _model.textControllerValidator.asValidator(context), - ), - ), - ), - Expanded( - child: Container( - width: double.infinity, - height: double.infinity, - decoration: const BoxDecoration(), - child: FutureBuilder( - future: PhpGroup.getVisitsCall.call( - devUUID: FFAppState().devUUID, - userUUID: FFAppState().userUUID, - cliID: FFAppState().cliUUID, - atividade: 'getVisitas', - ), - builder: (context, snapshot) { - // Customize what your widget looks like when it's loading. - if (!snapshot.hasData) { - return Center( - child: SizedBox( - width: 50.0, - height: 50.0, - child: SpinKitCircle( - color: FlutterFlowTheme.of(context).primary, - size: 50.0, - ), - ), - ); - } - final wrapGetVisitsResponse = snapshot.data!; - return Builder( - builder: (context) { - final visitaWrap = PhpGroup.getVisitsCall - .visitasList( - wrapGetVisitsResponse.jsonBody, - ) - ?.toList() ?? - []; - return Wrap( - spacing: 2.0, - runSpacing: 1.0, - alignment: WrapAlignment.start, - crossAxisAlignment: WrapCrossAlignment.start, - direction: Axis.horizontal, - runAlignment: WrapAlignment.start, - verticalDirection: VerticalDirection.down, - clipBehavior: Clip.none, - children: List.generate(visitaWrap.length, - (visitaWrapIndex) { - final visitaWrapItem = - visitaWrap[visitaWrapIndex]; - return Align( - alignment: const AlignmentDirectional(0.0, 0.0), - child: InkWell( - splashColor: Colors.transparent, - focusColor: Colors.transparent, - hoverColor: Colors.transparent, - highlightColor: Colors.transparent, - onTap: () async { - await showModalBottomSheet( - isScrollControlled: true, - backgroundColor: Colors.transparent, - enableDrag: false, - useSafeArea: true, - context: context, - builder: (context) { - return GestureDetector( - onTap: () => _model - .unfocusNode.canRequestFocus - ? FocusScope.of(context) - .requestFocus( - _model.unfocusNode) - : FocusScope.of(context) - .unfocus(), - child: Padding( - padding: MediaQuery.viewInsetsOf( - context), - child: - VisitDetailsModalTemplateComponentWidget( - visitStatusStr: getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - ).toString(), - visitStartDateStr: getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - visitEndDateStr: getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - visitReasonStr: getJsonField( - visitaWrapItem, - r'''$.MOT_DESCRICAO''', - ).toString(), - visitLevelStr: getJsonField( - visitaWrapItem, - r'''$.NAC_DESCRICAO''', - ).toString(), - visitTempStr: getJsonField( - visitaWrapItem, - r'''$.VTE_UNICA''', - ).toString(), - visitObsStr: getJsonField( - visitaWrapItem, - r'''$.VAW_OBS''', - ).toString(), - visitorImgPath: - valueOrDefault( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - visitorStrList: getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString(), - visitIdStr: getJsonField( - visitaWrapItem, - r'''$.VAW_ID''', - ).toString(), - visitorJsonList: PhpGroup - .getVisitsCall - .visitasList( - wrapGetVisitsResponse.jsonBody, - ), - updateToggleIdx: () async {}, - repeatVisitSchedule: () async {}, - ), - ), - ); - }, - ).then((value) => safeSetState(() {})); - }, - child: Card( - clipBehavior: Clip.antiAliasWithSaveLayer, - color: FlutterFlowTheme.of(context) - .secondaryBackground, - elevation: 5.0, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(8.0), - ), - child: Container( - width: 350.0, - height: 115.0, - decoration: BoxDecoration( - color: FlutterFlowTheme.of(context) - .secondaryBackground, - ), - child: Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: Container( - width: 100.0, - height: 100.0, - decoration: const BoxDecoration(), - child: Column( - mainAxisSize: MainAxisSize.max, - children: [ - Row( - mainAxisSize: - MainAxisSize.max, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'f77je6tr' /* Visitante: */, - ), - style: - FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight - .bold, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, -1.0), - child: Text( - getJsonField( - visitaWrapItem, - r'''$.VTE_NOME''', - ).toString(), - style: FlutterFlowTheme - .of(context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: 12.5, - letterSpacing: - 0.0, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - ), - ].addToStart( - const SizedBox(width: 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment.start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'dkzewokx' /* InĂ­cio em: */, - ), - style: - FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight - .bold, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTINICIO''', - ).toString(), - style: - FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox(width: 10.0)), - ), - Row( - mainAxisSize: - MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment.start, - children: [ - Text( - FFLocalizations.of( - context) - .getText( - 'qi4mjhtw' /* Fim em: */, - ), - style: - FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - fontWeight: - FontWeight - .bold, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - Text( - getJsonField( - visitaWrapItem, - r'''$.VAW_DTFIM''', - ).toString(), - style: - FlutterFlowTheme.of( - context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - fontSize: - 12.5, - letterSpacing: - 0.0, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - ].addToStart( - const SizedBox(width: 10.0)), - ), - Align( - alignment: - const AlignmentDirectional( - -1.0, 0.0), - child: Padding( - padding: - const EdgeInsetsDirectional - .fromSTEB( - 10.0, - 0.0, - 0.0, - 0.0), - child: Container( - width: 200.0, - height: 27.0, - decoration: - BoxDecoration( - color: valueOrDefault< - Color>( - () { - if (functions - .jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FlutterFlowTheme.of( - context) - .success; - } else if (functions - .jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') { - return FlutterFlowTheme.of( - context) - .error; - } else if (functions - .jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"') { - return FlutterFlowTheme.of( - context) - .warning; - } else { - return FlutterFlowTheme.of( - context) - .primary; - } - }(), - FlutterFlowTheme.of( - context) - .primary, - ), - borderRadius: - BorderRadius - .circular( - 5.0), - ), - child: Align( - alignment: - const AlignmentDirectional( - 0.0, 0.0), - child: Text( - () { - if (functions - .jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"A\"') { - return FFLocalizations.of( - context) - .getVariableText( - ptText: - 'Ativo', - enText: - 'Active', - ); - } else if ((functions - .jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"F\"') || - (functions.jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"C\"') || - (functions.jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"B\"') || - (functions.jsonToStr( - getJsonField( - visitaWrapItem, - r'''$.VAW_STATUS''', - )) == - '\"I\"')) { - return FFLocalizations.of( - context) - .getVariableText( - ptText: - 'Cancelado', - enText: - 'Canceled', - ); - } else { - return FFLocalizations.of( - context) - .getVariableText( - ptText: - 'Pendente', - enText: - 'Pending', - ); - } - }(), - style: FlutterFlowTheme - .of(context) - .bodyMedium - .override( - fontFamily: FlutterFlowTheme.of( - context) - .bodyMediumFamily, - color: FlutterFlowTheme.of( - context) - .info, - letterSpacing: - 0.0, - useGoogleFonts: GoogleFonts - .asMap() - .containsKey( - FlutterFlowTheme.of(context) - .bodyMediumFamily), - ), - ), - ), - ), - ), - ), - ].divide(const SizedBox(height: 3.0)), - ), - ), - ), - ClipRRect( - borderRadius: - BorderRadius.circular(0.0), - child: CachedNetworkImage( - fadeInDuration: - const Duration(milliseconds: 500), - fadeOutDuration: - const Duration(milliseconds: 500), - imageUrl: valueOrDefault( - 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( - visitaWrapItem, - r'''$.VTE_DOCUMENTO''', - ).toString()}&tipo=E', - 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', - ), - fit: BoxFit.cover, - ), - ), - ], - ), - ), - ), - ), - ); - }), - ); - }, - ); - }, - ), - ), - ), - ].addToStart(const SizedBox(height: 30.0)), - ), - ), - ), - ); - } -} +// return GestureDetector( +// onTap: () => _model.unfocusNode.canRequestFocus +// ? FocusScope.of(context).requestFocus(_model.unfocusNode) +// : FocusScope.of(context).unfocus(), +// child: Scaffold( +// key: scaffoldKey, +// backgroundColor: FlutterFlowTheme.of(context).primaryBackground, +// body: SafeArea( +// top: true, +// child: Column( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: MainAxisAlignment.start, +// children: [ +// Container( +// width: double.infinity, +// height: 100.0, +// decoration: BoxDecoration( +// color: FlutterFlowTheme.of(context).secondaryBackground, +// ), +// alignment: const AlignmentDirectional(0.0, -1.0), +// child: Padding( +// padding: const EdgeInsetsDirectional.fromSTEB(8.0, 0.0, 8.0, 0.0), +// child: TextFormField( +// controller: _model.textController, +// focusNode: _model.textFieldFocusNode, +// autofocus: true, +// obscureText: false, +// decoration: InputDecoration( +// labelText: FFLocalizations.of(context).getText( +// 'dy0mx15f' /* Label here... */, +// ), +// labelStyle: FlutterFlowTheme.of(context) +// .labelMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).labelMediumFamily, +// letterSpacing: 0.0, +// useGoogleFonts: GoogleFonts.asMap().containsKey( +// FlutterFlowTheme.of(context).labelMediumFamily), +// ), +// hintStyle: FlutterFlowTheme.of(context) +// .labelMedium +// .override( +// fontFamily: +// FlutterFlowTheme.of(context).labelMediumFamily, +// letterSpacing: 0.0, +// useGoogleFonts: GoogleFonts.asMap().containsKey( +// FlutterFlowTheme.of(context).labelMediumFamily), +// ), +// enabledBorder: UnderlineInputBorder( +// borderSide: BorderSide( +// color: FlutterFlowTheme.of(context).alternate, +// width: 2.0, +// ), +// borderRadius: BorderRadius.circular(8.0), +// ), +// focusedBorder: UnderlineInputBorder( +// borderSide: BorderSide( +// color: FlutterFlowTheme.of(context).primary, +// width: 2.0, +// ), +// borderRadius: BorderRadius.circular(8.0), +// ), +// errorBorder: UnderlineInputBorder( +// borderSide: BorderSide( +// color: FlutterFlowTheme.of(context).error, +// width: 2.0, +// ), +// borderRadius: BorderRadius.circular(8.0), +// ), +// focusedErrorBorder: UnderlineInputBorder( +// borderSide: BorderSide( +// color: FlutterFlowTheme.of(context).error, +// width: 2.0, +// ), +// borderRadius: BorderRadius.circular(8.0), +// ), +// prefixIcon: const Icon( +// Icons.search_sharp, +// ), +// ), +// style: FlutterFlowTheme.of(context).bodyMedium.override( +// fontFamily: +// FlutterFlowTheme.of(context).bodyMediumFamily, +// letterSpacing: 0.0, +// useGoogleFonts: GoogleFonts.asMap().containsKey( +// FlutterFlowTheme.of(context).bodyMediumFamily), +// ), +// validator: +// _model.textControllerValidator.asValidator(context), +// ), +// ), +// ), +// Expanded( +// child: Container( +// width: double.infinity, +// height: double.infinity, +// decoration: const BoxDecoration(), +// child: FutureBuilder( +// future: PhpGroup.getVisitsCall.call( +// devUUID: FFAppState().devUUID, +// userUUID: FFAppState().userUUID, +// cliID: FFAppState().cliUUID, +// atividade: 'getVisitas', +// ), +// builder: (context, snapshot) { +// // Customize what your widget looks like when it's loading. +// if (!snapshot.hasData) { +// return Center( +// child: SizedBox( +// width: 50.0, +// height: 50.0, +// child: SpinKitCircle( +// color: FlutterFlowTheme.of(context).primary, +// size: 50.0, +// ), +// ), +// ); +// } +// final wrapGetVisitsResponse = snapshot.data!; +// return Builder( +// builder: (context) { +// final visitaWrap = PhpGroup.getVisitsCall +// .visitasList( +// wrapGetVisitsResponse.jsonBody, +// ) +// ?.toList() ?? +// []; +// return Wrap( +// spacing: 2.0, +// runSpacing: 1.0, +// alignment: WrapAlignment.start, +// crossAxisAlignment: WrapCrossAlignment.start, +// direction: Axis.horizontal, +// runAlignment: WrapAlignment.start, +// verticalDirection: VerticalDirection.down, +// clipBehavior: Clip.none, +// children: List.generate(visitaWrap.length, +// (visitaWrapIndex) { +// final visitaWrapItem = +// visitaWrap[visitaWrapIndex]; +// return Align( +// alignment: const AlignmentDirectional(0.0, 0.0), +// child: InkWell( +// splashColor: Colors.transparent, +// focusColor: Colors.transparent, +// hoverColor: Colors.transparent, +// highlightColor: Colors.transparent, +// onTap: () async { +// await showModalBottomSheet( +// isScrollControlled: true, +// backgroundColor: Colors.transparent, +// enableDrag: false, +// useSafeArea: true, +// context: context, +// builder: (context) { +// return GestureDetector( +// onTap: () => _model +// .unfocusNode.canRequestFocus +// ? FocusScope.of(context) +// .requestFocus( +// _model.unfocusNode) +// : FocusScope.of(context) +// .unfocus(), +// child: Padding( +// padding: MediaQuery.viewInsetsOf( +// context), +// child: +// VisitDetailsModalTemplateComponentWidget( +// visitStatusStr: getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// ).toString(), +// visitStartDateStr: getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// visitEndDateStr: getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// visitReasonStr: getJsonField( +// visitaWrapItem, +// r'''$.MOT_DESCRICAO''', +// ).toString(), +// visitLevelStr: getJsonField( +// visitaWrapItem, +// r'''$.NAC_DESCRICAO''', +// ).toString(), +// visitTempStr: getJsonField( +// visitaWrapItem, +// r'''$.VTE_UNICA''', +// ).toString(), +// visitObsStr: getJsonField( +// visitaWrapItem, +// r'''$.VAW_OBS''', +// ).toString(), +// visitorImgPath: +// valueOrDefault( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// visitorStrList: getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString(), +// visitIdStr: getJsonField( +// visitaWrapItem, +// r'''$.VAW_ID''', +// ).toString(), +// visitorJsonList: PhpGroup +// .getVisitsCall +// .visitasList( +// wrapGetVisitsResponse.jsonBody, +// ), +// updateToggleIdx: () async {}, +// repeatVisitSchedule: () async {}, +// ), +// ), +// ); +// }, +// ).then((value) => safeSetState(() {})); +// }, +// child: Card( +// clipBehavior: Clip.antiAliasWithSaveLayer, +// color: FlutterFlowTheme.of(context) +// .secondaryBackground, +// elevation: 5.0, +// shape: RoundedRectangleBorder( +// borderRadius: BorderRadius.circular(8.0), +// ), +// child: Container( +// width: 350.0, +// height: 115.0, +// decoration: BoxDecoration( +// color: FlutterFlowTheme.of(context) +// .secondaryBackground, +// ), +// child: Row( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment.spaceBetween, +// children: [ +// Expanded( +// child: Container( +// width: 100.0, +// height: 100.0, +// decoration: const BoxDecoration(), +// child: Column( +// mainAxisSize: MainAxisSize.max, +// children: [ +// Row( +// mainAxisSize: +// MainAxisSize.max, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'f77je6tr' /* Visitante: */, +// ), +// style: +// FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight +// .bold, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, -1.0), +// child: Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VTE_NOME''', +// ).toString(), +// style: FlutterFlowTheme +// .of(context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// ), +// ].addToStart( +// const SizedBox(width: 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment.start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'dkzewokx' /* InĂ­cio em: */, +// ), +// style: +// FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight +// .bold, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTINICIO''', +// ).toString(), +// style: +// FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox(width: 10.0)), +// ), +// Row( +// mainAxisSize: +// MainAxisSize.max, +// mainAxisAlignment: +// MainAxisAlignment.start, +// children: [ +// Text( +// FFLocalizations.of( +// context) +// .getText( +// 'qi4mjhtw' /* Fim em: */, +// ), +// style: +// FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// fontWeight: +// FontWeight +// .bold, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// Text( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_DTFIM''', +// ).toString(), +// style: +// FlutterFlowTheme.of( +// context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// fontSize: +// 12.5, +// letterSpacing: +// 0.0, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// ].addToStart( +// const SizedBox(width: 10.0)), +// ), +// Align( +// alignment: +// const AlignmentDirectional( +// -1.0, 0.0), +// child: Padding( +// padding: +// const EdgeInsetsDirectional +// .fromSTEB( +// 10.0, +// 0.0, +// 0.0, +// 0.0), +// child: Container( +// width: 200.0, +// height: 27.0, +// decoration: +// BoxDecoration( +// color: valueOrDefault< +// Color>( +// () { +// if (functions +// .jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FlutterFlowTheme.of( +// context) +// .success; +// } else if (functions +// .jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') { +// return FlutterFlowTheme.of( +// context) +// .error; +// } else if (functions +// .jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"') { +// return FlutterFlowTheme.of( +// context) +// .warning; +// } else { +// return FlutterFlowTheme.of( +// context) +// .primary; +// } +// }(), +// FlutterFlowTheme.of( +// context) +// .primary, +// ), +// borderRadius: +// BorderRadius +// .circular( +// 5.0), +// ), +// child: Align( +// alignment: +// const AlignmentDirectional( +// 0.0, 0.0), +// child: Text( +// () { +// if (functions +// .jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"A\"') { +// return FFLocalizations.of( +// context) +// .getVariableText( +// ptText: +// 'Ativo', +// enText: +// 'Active', +// ); +// } else if ((functions +// .jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"F\"') || +// (functions.jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"C\"') || +// (functions.jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"B\"') || +// (functions.jsonToStr( +// getJsonField( +// visitaWrapItem, +// r'''$.VAW_STATUS''', +// )) == +// '\"I\"')) { +// return FFLocalizations.of( +// context) +// .getVariableText( +// ptText: +// 'Cancelado', +// enText: +// 'Canceled', +// ); +// } else { +// return FFLocalizations.of( +// context) +// .getVariableText( +// ptText: +// 'Pendente', +// enText: +// 'Pending', +// ); +// } +// }(), +// style: FlutterFlowTheme +// .of(context) +// .bodyMedium +// .override( +// fontFamily: FlutterFlowTheme.of( +// context) +// .bodyMediumFamily, +// color: FlutterFlowTheme.of( +// context) +// .info, +// letterSpacing: +// 0.0, +// useGoogleFonts: GoogleFonts +// .asMap() +// .containsKey( +// FlutterFlowTheme.of(context) +// .bodyMediumFamily), +// ), +// ), +// ), +// ), +// ), +// ), +// ].divide(const SizedBox(height: 3.0)), +// ), +// ), +// ), +// ClipRRect( +// borderRadius: +// BorderRadius.circular(0.0), +// child: CachedNetworkImage( +// fadeInDuration: +// const Duration(milliseconds: 500), +// fadeOutDuration: +// const Duration(milliseconds: 500), +// imageUrl: valueOrDefault( +// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField( +// visitaWrapItem, +// r'''$.VTE_DOCUMENTO''', +// ).toString()}&tipo=E', +// 'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg', +// ), +// fit: BoxFit.cover, +// ), +// ), +// ], +// ), +// ), +// ), +// ), +// ); +// }), +// ); +// }, +// ); +// }, +// ), +// ), +// ), +// ].addToStart(const SizedBox(height: 30.0)), +// ), +// ), +// ), +// ); +// } +// } diff --git a/lib/pages/schedule_complete_visit_page/schedule_complete_visit_page_widget.dart b/lib/pages/schedule_complete_visit_page/schedule_complete_visit_page_widget.dart index 520ecafd..aeae3657 100644 --- a/lib/pages/schedule_complete_visit_page/schedule_complete_visit_page_widget.dart +++ b/lib/pages/schedule_complete_visit_page/schedule_complete_visit_page_widget.dart @@ -2461,6 +2461,20 @@ class _ScheduleCompleteVisitPageWidgetState visitaWrapItem, r'''$.VAW_ID''', ).toString(), + visitStatusColor: + getJsonField( + visitaWrapItem, + r'''$.VAW_STATUS''', + ) + .toString() == + 'A' + ? FlutterFlowTheme + .of( + context) + .success + : FlutterFlowTheme + .of(context) + .error, visitorJsonList: PhpGroup .getVisitsCall .visitasList(