From 1efc7d73738d328b8b3e785f0f9f3285be253cca Mon Sep 17 00:00:00 2001 From: Gokul Manohar Date: Tue, 8 Dec 2020 22:28:20 +0530 Subject: [PATCH] File_Upload dart files added --- .flutter-plugins-dependencies | 2 +- .idea/dictionaries/gokul.xml | 1 + .idea/workspace.xml | 61 ++-- .packages | 2 +- .../6.3/executionHistory/executionHistory.bin | Bin 9606176 -> 9606176 bytes .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes android/.gradle/6.3/fileHashes/fileHashes.bin | Bin 837976 -> 840176 bytes .../.gradle/6.3/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes lib/app.dart | 2 + lib/ui/landing/profile.dart | 9 +- lib/ui/landing/profile/upload/db_event.dart | 24 ++ .../landing/profile/upload/upload_notes.dart | 270 ++++++++++++++++++ 13 files changed, 343 insertions(+), 28 deletions(-) create mode 100644 lib/ui/landing/profile/upload/db_event.dart create mode 100644 lib/ui/landing/profile/upload/upload_notes.dart diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index b212812..73b0e74 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":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity-2.0.2\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":[]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+3\\\\","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_pdf_viewer-1.0.7\\\\","dependencies":["path_provider"]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.6\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+14\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.24\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.4.10\\\\","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity-2.0.2\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+3\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-1.0.11\\\\","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_pdf_viewer-1.0.7\\\\","dependencies":["path_provider"]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.6\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+14\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.24\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.4.10\\\\","dependencies":[]}],"macos":[{"name":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity_macos-0.1.0+7\\\\","dependencies":[]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"path_provider_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4+6\\\\","dependencies":[]},{"name":"shared_preferences_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_macos-0.0.1+11\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_macos-0.0.1+9\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_linux-0.0.2+4\\\\","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-0.0.4+3\\\\","dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_windows-0.0.1+3\\\\","dependencies":["path_provider_windows"]}],"web":[{"name":"cloud_firestore_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore_web-0.2.1+1\\\\","dependencies":["firebase_core_web"]},{"name":"connectivity_for_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity_for_web-0.3.1+4\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":[]},{"name":"firebase_auth_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth_web-0.3.2+1\\\\","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core_web-0.2.1+1\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in_web-0.9.2\\\\","dependencies":[]},{"name":"shared_preferences_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_web-0.1.2+7\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_web-0.1.5+1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core","cloud_firestore_web"]},{"name":"cloud_firestore_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_core","firebase_auth_web"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_storage","dependencies":["firebase_core"]},{"name":"flutter_native_image","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_web"]},{"name":"google_sign_in_web","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_macos"]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]}],"date_created":"2020-12-03 16:58:58.732221","version":"1.24.0-8.0.pre.229"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity-2.0.2\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":[]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+3\\\\","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_pdf_viewer-1.0.7\\\\","dependencies":["path_provider"]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.6\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+14\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.24\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.4.10\\\\","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity-2.0.2\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+3\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-1.0.11\\\\","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_pdf_viewer-1.0.7\\\\","dependencies":["path_provider"]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.6\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+14\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.24\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.4.10\\\\","dependencies":[]}],"macos":[{"name":"cloud_firestore","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.3+1\\\\","dependencies":["firebase_core"]},{"name":"connectivity_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity_macos-0.1.0+7\\\\","dependencies":[]},{"name":"firebase_auth","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.3+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.2+1\\\\","dependencies":[]},{"name":"firebase_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-5.0.1\\\\","dependencies":["firebase_core"]},{"name":"path_provider_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4+6\\\\","dependencies":[]},{"name":"shared_preferences_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_macos-0.0.1+11\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.2+1\\\\","dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_macos-0.0.1+9\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_linux-0.0.2+4\\\\","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-0.0.4+3\\\\","dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_windows-0.0.1+3\\\\","dependencies":["path_provider_windows"]}],"web":[{"name":"cloud_firestore_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore_web-0.2.1+1\\\\","dependencies":["firebase_core_web"]},{"name":"connectivity_for_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\connectivity_for_web-0.3.1+4\\\\","dependencies":[]},{"name":"file_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\file_picker-2.1.0\\\\","dependencies":[]},{"name":"firebase_auth_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth_web-0.3.2+1\\\\","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core_web-0.2.1+1\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in_web-0.9.2\\\\","dependencies":[]},{"name":"shared_preferences_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_web-0.1.2+7\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_web-0.1.5+1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core","cloud_firestore_web"]},{"name":"cloud_firestore_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_core","firebase_auth_web"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_storage","dependencies":["firebase_core"]},{"name":"flutter_native_image","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_web"]},{"name":"google_sign_in_web","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_macos"]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]}],"date_created":"2020-12-08 21:29:46.360080","version":"1.24.0-8.0.pre.229"} \ No newline at end of file diff --git a/.idea/dictionaries/gokul.xml b/.idea/dictionaries/gokul.xml index 14b64d0..9f50aa0 100644 --- a/.idea/dictionaries/gokul.xml +++ b/.idea/dictionaries/gokul.xml @@ -4,6 +4,7 @@ appication cupertino firestore + fluttertoast gokul intl librarypdf diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f6de8e8..5113aeb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -19,18 +19,27 @@ - + + + + + + + + + + - + @@ -292,7 +308,8 @@ - @@ -331,38 +348,42 @@ - + + + + + - - + + - - + + - - + + - - + + - - + + - + - + - + @@ -375,9 +396,9 @@ - + - + \ No newline at end of file diff --git a/.packages b/.packages index d6b8936..1cdc987 100644 --- a/.packages +++ b/.packages @@ -1,4 +1,4 @@ -# Generated by pub on 2020-12-03 16:58:47.880324. +# Generated by pub on 2020-12-08 19:51:07.044691. archive:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13/lib/ args:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/ async:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.2/lib/ diff --git a/android/.gradle/6.3/executionHistory/executionHistory.bin b/android/.gradle/6.3/executionHistory/executionHistory.bin index 7b46642e416ab9673a65603b6bdbf5da26e815cd..bb975c7d7a1a48fa0cadc8762c5d47f8676a7f96 100644 GIT binary patch delta 8093 zcma)>3tWt8`^P;^nofA8Bo#H24#LuO+`9j|@OagoijFj>tg72^oYqBZCna#1(Nvh9E-`cfekKqev)$RuPk5{XPfqL8UbG%^jDj?AE5azw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;*pDMH2H-m5>|x$DTOYhS;Y`NiiS8mV_y zsg~TmqDh{R@olWyrBiYKXVP{r*LfYwqmz#lOFsxrs2X z`t7Vf)A`r@MpLnA$#KfQAX0soXG0#W1U;;REXW1}1*M##}z?HZPP-Oh_3n)=~6Qal-!_ zHjB7q-W%lq{W+tXWxI(RFt23tA#)4oKTxew|Kr=p=Gu^+KP|Aun6M#jGabAn(vY=E zw}SdFH_9ohO4r4j2F)`CHpzW66vBEaf@0VJB~S`wP!1Ka5jH_3Y=$kc6{?^bYM>VC z;3e1w+hGU%1nR*84bTWX;is?*tnf3~4SS#o_Chn*pau3pE0f&c|MlIOmKT2UL#LLy zl!ae!s}l%X#1vB$7DwHmTO`c=m$t7s<*9FmL{fKPNpA9&!@~>89&%K3%MweSwtNxk z_T)?HUZo+LPT2Cr74%shqhsXdtmtl-Bau9Vhz%8CyRWIZ|j z*j#!L#XW5ue=~H=68G~V9QBsl4K#0wM#=8H%%}UXRfdL4jvYPBr+8C>xuKtBoZ#nj z>{rDNZwZ*~9X?Y)8>Sb0%5I+K4+OZlx1MygoDLr2Rx$Zm&0>x^ADVnv)|G~Gfh+r! z|Mb(*vPQ~QH5B+wW`f)NnWKutzWmR8BeE8yRXj51d|YXwUZ>;ogjdSr802mQ9{X#E1?FBxtK0f7@DJi(jDe9B=|T9Hrpj zMJyRVv>dNG+DUQO*~pCVJ2FIKFV0J7$)J;O#-vjJc2N{n%|39}bIY+(=bQsIZ)8&U-%WnsEA{Xv#6NagNj2oOu&q7LcY6N~D^=%I diff --git a/android/.gradle/6.3/executionHistory/executionHistory.lock b/android/.gradle/6.3/executionHistory/executionHistory.lock index 5f8738727f8fc529750c2b868d3e3d28314590fe..e2928c18f9a2a134e434229e44593bc098c2f79e 100644 GIT binary patch literal 17 UcmZRsl1(em^1s2s00uID04IM0DF6Tf literal 17 UcmZRsl1(em^1s2s00z=704Bu)Z~y=R diff --git a/android/.gradle/6.3/fileHashes/fileHashes.bin b/android/.gradle/6.3/fileH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nC>nz7ZYsZwmfNQ{$JtS}^DG%6T$2Fx_Q? z1B!GNxVRf>@P%$xLj|VQ)?oCU9S@qn*ab-T_v7LhYzUrpj`hJEFIWw>XHq`Cm46nW z$ZuHK5q-I~slCTC$5Au&QHWfV@Zh&#%_BBIh988fkJud?6_~ERfLouj<7MlC%wdKq%#3+*rp(T0l6khnkk?qdO3S^x7D7>?hHOMlwvbzF5G*O2C*OIP% z@ECa z-MvU7tMv%Nch*n_EOfC>{{uYqcsMl@hxH7baX9CdvuZq8U$H6skvH%^EBi>$)GGJr zP`TA;_Hh3Hu@e|AL|ju=uvFmu76aV4tsErLM{w=F@>2vc50s}w(Dy0h+)%33_^a9h zf24GNoi^^C3(hdoW=KB6-J#(17Gg;&c%_V%FJ6zev=P@YTYAhQLcb?^~)1_U&f?!dW?1(T! zqgKe~Aa#_G#7J9VH3oV*yRk)4T4?xCScjw=6E#(+Cgq#q%frZ-!X6%(tj67rOn*4h zzz-7KHws0lD9scHrYs@M6^{21fdt&o6$TJ&{F_)!z@p89ANdZ4KXf$m>)CgZ{#8Ob z4_AK?q(f2nrFQVV?f%nut|u9#V+DY1Z!NyZ8|vlxp2@E7hUD8*k>!Ng_LNK zArT1+W5pl>OGm67%pZ$&D&WVFWm1RoryuTc!dlT2icDf1BXyW)7Rxp8eH*$&5&D0d zQ(;HahAMHgsD~Nq*|Fb#F@uavUX1)RVrJWs#n+}WL`97}CK7J^ts;=!>ed4{_ z&8g046Df~0nURozk5#Z^q`^yT+KQ)TNQ2jUlGS0{$&SEoM@0?Z)+TMMWXWryeq6FB z!SK%eF1t7p_8k@7RKDA;7v1Y}a}D!}r}Zhbnp0#RztNQiGLJ&xmk4ckaWM1C9Uy literal 17 VcmZP$KDRLRqBf5t0~ok50{|>C1BCzp diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index d155e8873e0af4b3d1554db18118e73e9d2f6a72..65cdd7f6930bc6056393bf9fa0702d37988b18e2 100644 GIT binary patch literal 17 VcmZQx)qPz|(*IEw0~n|^0{}7C1cLwo literal 17 VcmZQx)qPz|(*IEw0~o030RS Navigator.push(context, + MaterialPageRoute(builder: (context) =>UploadNotes())), child: Container( margin: const EdgeInsets.only(top: 30.0, left: 25.0), child: Row( diff --git a/lib/ui/landing/profile/upload/db_event.dart b/lib/ui/landing/profile/upload/db_event.dart new file mode 100644 index 0000000..a8b81ff --- /dev/null +++ b/lib/ui/landing/profile/upload/db_event.dart @@ -0,0 +1,24 @@ +import 'package:cloud_firestore/cloud_firestore.dart'; +import 'package:uuid/uuid.dart'; + + +class EventService{ + FirebaseFirestore _firestore = FirebaseFirestore.instance; + String ref = 'eUpload'; + + + void uploadDetails({String id,String title,String details, String price,String image,String file,Timestamp publishedDate}){ + var id =Uuid(); + String pEventId = id.v1(); + _firestore.collection(ref).doc(pEventId).set({ + 'title' : title, + 'id' : pEventId, + 'description' : details, + 'price' : price, + 'image' : image, + 'publishedDate' : DateTime.now(), + 'file' : file, + }); + + } +} \ No newline at end of file diff --git a/lib/ui/landing/profile/upload/upload_notes.dart b/lib/ui/landing/profile/upload/upload_notes.dart new file mode 100644 index 0000000..8b90bad --- /dev/null +++ b/lib/ui/landing/profile/upload/upload_notes.dart @@ -0,0 +1,270 @@ +import 'package:flutter/material.dart'; +import 'db_event.dart'; +import 'package:flutter_native_image/flutter_native_image.dart'; +import 'package:fluttertoast/fluttertoast.dart'; +import 'package:file_picker/file_picker.dart'; +import 'package:image_picker/image_picker.dart'; +import 'package:firebase_storage/firebase_storage.dart'; + +//import 'package:cloud_firestore/cloud_firestore.dart'; +import 'dart:io'; +//import 'package:uuid/uuid.dart'; + +//import 'package:path/path.dart'; + +class UploadNotes extends StatefulWidget { + @override + _UploadNotesState createState() => _UploadNotesState(); +} + +class _UploadNotesState extends State { + TextEditingController eventNameController = TextEditingController(); + TextEditingController eventDetailsController = TextEditingController(); + TextEditingController eventPriceController = TextEditingController(); + String productId = DateTime.now().millisecondsSinceEpoch.toString(); + + File _image; + String _pdfName; + var _file; + bool isLoading = false; + GlobalKey _formKey = GlobalKey(); + EventService eventService = EventService(); + + @override + Widget build(BuildContext context) { + // var id =Uuid(); + // var pEventId = id.v1(); + void validateAndUpload() { + if (_formKey.currentState.validate()) { + setState(() => isLoading = true); + if (_image != null && _file != null) { + String imageUrl; + String fileUrl; + final FirebaseStorage storage = FirebaseStorage.instance; + final String picture = + "${DateTime.now().millisecondsSinceEpoch.toString()}.jpg"; + final String pdf = + "${DateTime.now().millisecondsSinceEpoch.toString()}.pdf"; + UploadTask imageUpload = storage.ref().child(picture).putFile(_image); + UploadTask pdfUpload = storage.ref().child(pdf).putFile(_file); + imageUpload.then((snapshot) async { + imageUrl = await snapshot.ref.getDownloadURL(); + pdfUpload.then((snapshot) async { + fileUrl = await snapshot.ref.getDownloadURL(); + String imageL = imageUrl; + String fileL = fileUrl; + eventService.uploadDetails( + title: eventNameController.text, + details: eventDetailsController.text, + price: eventPriceController.text, + file: fileL, + image: imageL); + _formKey.currentState.reset(); + setState(() => isLoading = false); + Fluttertoast.showToast( + msg: 'Note added', + toastLength: Toast.LENGTH_LONG, + gravity: ToastGravity.CENTER); + }); + }); + } else { + setState(() => isLoading = false); + Fluttertoast.showToast(msg: 'All details must be provided'); + } + } + } + + Future getFile() async { + FilePickerResult result = await FilePicker.platform.pickFiles( + type: FileType.custom, + allowedExtensions: ['pdf'], + ); + + if (result != null) { + PlatformFile file = result.files.first; + print(file.name); + _pdfName = file.name; + setState(() { + _file = file; + print('file Path $result'); + Fluttertoast.showToast(msg: 'PDF added'); + }); + } else { + // User canceled the picker + Fluttertoast.showToast(msg: 'PDF not selected'); + } + } + + Future getImage() async { + final picker = ImagePicker(); + final image = await picker.getImage(source: ImageSource.gallery); + File result = + await FlutterNativeImage.compressImage(image.path, quality: 70); + if (result != null) { + setState(() { + _image = result; + print('file Path $result'); + Fluttertoast.showToast(msg: 'Image added'); + }); + } else { + // User canceled the picker + Fluttertoast.showToast(msg: 'Image not selected'); + } + } + + Color buttonOutline = Colors.grey[300]; + var brightness = MediaQuery.of(context).platformBrightness; + bool darkModeOn = brightness == Brightness.dark; + if (darkModeOn == true) { + buttonOutline = Colors.grey[600]; + } + return Scaffold( + appBar: AppBar( + title: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('Upload'), + GestureDetector( + // onTap: , + child: Text("Instructions", + style: TextStyle( + fontSize: 14.0, + fontWeight: FontWeight.w400, + color: Colors.deepOrangeAccent)), + ) + ], + ), + ), + body: Form( + key: _formKey, + child: SingleChildScrollView( + child: Container( + margin: EdgeInsets.all(20.0), + child: Column( + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(4.0)), + border: Border.all(color: buttonOutline)), + width: 144.0, + height: 240.0, + child: InkWell( + child: (_image != null) + ? Image.file( + _image, + fit: BoxFit.cover, + ) + : Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + Icons.add, + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: Text("Select image"), + ) + ], + ), + ), + onTap: () { + getImage(); + }, + ), + ), + GestureDetector( + child: Container( + margin: EdgeInsets.all(20.0), + padding: EdgeInsets.all(10.0), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(4.0)), + border: Border.all(color: buttonOutline)), + child: + (_pdfName != null) ? Text(_pdfName) : Container( + width: 144, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Icon( + Icons.note_add_rounded, + ), + Text('Select note'), + ], + ), + ), + ), + onTap: () { + getFile(); + }, + ), + TextFormField( + maxLines: 1, + maxLength: 20, + textCapitalization: TextCapitalization.characters, + controller: eventNameController, + decoration: InputDecoration( + icon: Icon(Icons.title), + labelText: 'Title', + ), + validator: (value) { + if (value.isEmpty) { + return 'You must enter the title'; + } + return null; + }, + ), + TextFormField( + maxLines: 1, + maxLength: 40, + textCapitalization: TextCapitalization.sentences, + controller: eventDetailsController, + decoration: InputDecoration( + icon: Icon(Icons.short_text), + labelText: 'Details', + ), + validator: (value) { + if (value.isEmpty) { + return 'You must enter the details'; + } + return null; + }, + ), + TextFormField( + keyboardType: TextInputType.number, + controller: eventPriceController, + decoration: InputDecoration( + icon: Icon(Icons.monetization_on_outlined), + hintText: 'Price', + labelText: 'Price', + ), + validator: (value) { + if (value.isEmpty) { + return 'You must give a price'; + } + return null; + }, + ), + Container( + margin: EdgeInsets.all(20.0), + child: RaisedButton( + color: Colors.lightBlueAccent, + onPressed: () { + validateAndUpload(); + }, + // elevation: 4.0, + splashColor: Colors.blueGrey, + child: Text( + 'Submit', + style: TextStyle(fontSize: 16.0), + ), + ), + ), + ], + ), + ), + ), + ), + ); + } +}