├── functions ├── .gitignore ├── .env.example ├── encryption.js ├── package.json ├── models │ └── HrEmail.js ├── database │ └── database.js ├── routes │ ├── hrEmailRoutes.js │ └── sendEmailRoutes.js ├── index.js ├── controllers │ ├── sendEmailController.js │ └── hrEmailController.js ├── data │ └── email.json └── docs │ └── api.md ├── linux ├── .gitignore ├── main.cc ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugin_registrant.cc │ ├── generated_plugins.cmake │ └── CMakeLists.txt ├── my_application.h └── my_application.cc ├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-50x50@1x.png │ │ │ ├── Icon-App-50x50@2x.png │ │ │ ├── Icon-App-57x57@1x.png │ │ │ ├── Icon-App-57x57@2x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-72x72@1x.png │ │ │ ├── Icon-App-72x72@2x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ │ └── LaunchBackground.imageset │ │ │ ├── background.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── GoogleService-Info.plist │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── RunnerTests │ └── RunnerTests.swift ├── .gitignore └── Podfile ├── lib ├── data │ └── constants.dart ├── routes │ ├── auth_guard.dart │ └── router.dart ├── pages │ ├── not_found_page.dart │ ├── dashboard_page.dart │ ├── login.dart │ └── upgrade_pro_section.dart ├── models │ ├── hr_emails.dart │ ├── enums │ │ └── navigation_items.dart │ └── companies_list.dart ├── provider │ ├── navigation.dart │ ├── hr_emails.dart │ ├── auth.dart │ ├── smtp.dart │ └── companies.dart ├── encryption.dart ├── validators │ └── validator.dart ├── widgets │ ├── alerts.dart │ ├── navigation_button.dart │ ├── video.dart │ ├── profile_page.dart │ ├── category_box.dart │ └── contribute_dialog.dart ├── layout │ ├── top_app_bar.dart │ ├── app_layout.dart │ └── navigation_panel.dart ├── styles │ ├── styles.dart │ └── fonts.dart ├── responsive.dart ├── file_picker.dart └── main.dart ├── assets ├── logo.png ├── mobile.png ├── splash.png ├── astranaut.png ├── desktop.png ├── dribble.png ├── favicon.png ├── google-icon.png ├── card_logos │ ├── amex.png │ ├── visa.png │ ├── discover.png │ └── mastercard.png └── fonts │ ├── Poppins-Black.ttf │ ├── Poppins-Bold.ttf │ ├── Poppins-Light.ttf │ ├── Poppins-Thin.ttf │ ├── Poppins-Italic.ttf │ ├── Poppins-Medium.ttf │ ├── Poppins-Regular.ttf │ ├── Poppins-BoldItalic.ttf │ ├── Poppins-ExtraBold.ttf │ ├── Poppins-ExtraLight.ttf │ ├── Poppins-SemiBold.ttf │ ├── Poppins-ThinItalic.ttf │ ├── Poppins-BlackItalic.ttf │ ├── Poppins-LightItalic.ttf │ ├── Poppins-MediumItalic.ttf │ ├── Poppins-ExtraBoldItalic.ttf │ ├── Poppins-SemiBoldItalic.ttf │ └── Poppins-ExtraLightItalic.ttf ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── splash │ └── img │ │ ├── dark-1x.png │ │ ├── dark-2x.png │ │ ├── dark-3x.png │ │ ├── dark-4x.png │ │ ├── light-1x.png │ │ ├── light-2x.png │ │ ├── light-3x.png │ │ └── light-4x.png ├── sitemap.xml └── manifest.json ├── flutter_native_splash.yaml ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable │ │ │ │ │ ├── background.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ ├── background.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ └── launcher_icon.xml │ │ │ │ ├── values-v31 │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-night-v31 │ │ │ │ │ └── styles.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── shippi │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle └── settings.gradle ├── macos ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ ├── app_icon_64.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── DebugProfile.entitlements │ ├── MainFlutterWindow.swift │ ├── GoogleService-Info.plist │ └── Info.plist ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── RunnerTests │ └── RunnerTests.swift └── Podfile ├── .well-known └── funding-manifest-urls ├── windows ├── runner │ ├── resources │ │ └── app_icon.ico │ ├── resource.h │ ├── utils.h │ ├── runner.exe.manifest │ ├── flutter_window.h │ ├── main.cpp │ ├── CMakeLists.txt │ ├── utils.cpp │ ├── flutter_window.cpp │ ├── Runner.rc │ └── win32_window.h ├── .gitignore ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugins.cmake │ ├── generated_plugin_registrant.cc │ └── CMakeLists.txt └── CMakeLists.txt ├── .gitignore ├── analysis_options.yaml ├── .metadata ├── README.md ├── pubspec.yaml └── LICENSE /functions/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/data/constants.dart: -------------------------------------------------------------------------------- 1 | const String baseUrl = "http://localhost:58359/api"; -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/logo.png -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/favicon.png -------------------------------------------------------------------------------- /assets/mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/mobile.png -------------------------------------------------------------------------------- /assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/splash.png -------------------------------------------------------------------------------- /assets/astranaut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/astranaut.png -------------------------------------------------------------------------------- /assets/desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/desktop.png -------------------------------------------------------------------------------- /assets/dribble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/dribble.png -------------------------------------------------------------------------------- /assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/favicon.png -------------------------------------------------------------------------------- /assets/google-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/google-icon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /flutter_native_splash.yaml: -------------------------------------------------------------------------------- 1 | flutter_native_splash: 2 | image: "assets/splash.png" 3 | color: "#5c1669" -------------------------------------------------------------------------------- /assets/card_logos/amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/card_logos/amex.png -------------------------------------------------------------------------------- /assets/card_logos/visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/card_logos/visa.png -------------------------------------------------------------------------------- /web/splash/img/dark-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/dark-1x.png -------------------------------------------------------------------------------- /web/splash/img/dark-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/dark-2x.png -------------------------------------------------------------------------------- /web/splash/img/dark-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/dark-3x.png -------------------------------------------------------------------------------- /web/splash/img/dark-4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/dark-4x.png -------------------------------------------------------------------------------- /web/splash/img/light-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/light-1x.png -------------------------------------------------------------------------------- /web/splash/img/light-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/light-2x.png -------------------------------------------------------------------------------- /web/splash/img/light-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/light-3x.png -------------------------------------------------------------------------------- /web/splash/img/light-4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/splash/img/light-4x.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /assets/card_logos/discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/card_logos/discover.png -------------------------------------------------------------------------------- /assets/fonts/Poppins-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Black.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Thin.ttf -------------------------------------------------------------------------------- /assets/card_logos/mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/card_logos/mastercard.png -------------------------------------------------------------------------------- /assets/fonts/Poppins-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Italic.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Medium.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-Regular.ttf -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /assets/fonts/Poppins-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-BoldItalic.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-ExtraBold.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-ExtraLight.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-SemiBold.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-ThinItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-ThinItalic.ttf -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /.well-known/funding-manifest-urls: -------------------------------------------------------------------------------- 1 | { 2 | "funding": { 3 | "paypal":"https://www.paypal.me/muzammildafedar" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /assets/fonts/Poppins-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-BlackItalic.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-LightItalic.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-MediumItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-MediumItalic.ttf -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /assets/fonts/Poppins-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /assets/fonts/Poppins-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /functions/.env.example: -------------------------------------------------------------------------------- 1 | ENCRYPTION_KEY = 2 | DB_USERNAME = postgres 3 | DB_PASSWORD = 4 | DB_HOST = localhost 5 | DB_DATABASE = postgres -------------------------------------------------------------------------------- /assets/fonts/Poppins-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/assets/fonts/Poppins-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-v21/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/drawable-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/shippi/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.shippi 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muzammildafedar/udayah/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip 6 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/routes/auth_guard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | 4 | class AuthGuard { 5 | bool isAuthenticated(BuildContext context) { 6 | final user = FirebaseAuth.instance.currentUser; 7 | return user != null; 8 | } 9 | } 10 | 11 | final authGuard = AuthGuard(); 12 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = '../build' 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(':app') 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /lib/pages/not_found_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:udayah/styles/styles.dart'; 3 | 4 | class NotFoundScreen extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Scaffold( 8 | backgroundColor: Styles.brandBackgroundColor, 9 | body: Center( 10 | child: Text('Page not found'), 11 | ), 12 | ); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "background.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web/sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | https://www.udayah.in/ 11 | 2024-09-11T11:50:18+00:00 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "LaunchImage.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "LaunchImage@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "LaunchImage@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/models/hr_emails.dart: -------------------------------------------------------------------------------- 1 | // hr_email.dart 2 | class HrEmail { 3 | final String emailAddress; 4 | final String companyName; 5 | final String website; 6 | final String addedBy; 7 | 8 | HrEmail({ 9 | required this.emailAddress, 10 | required this.companyName, 11 | required this.website, 12 | required this.addedBy, 13 | }); 14 | 15 | Map toJson() { 16 | return { 17 | 'email_address': emailAddress, 18 | 'company_name': companyName, 19 | 'website': website, 20 | 'added_by': addedBy, 21 | }; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/provider/navigation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:udayah/provider/auth.dart'; 4 | import 'package:udayah/widgets/companies_list.dart'; 5 | import 'package:udayah/widgets/smtp_page.dart'; 6 | 7 | class ActiveTabIndexProvider extends ChangeNotifier { 8 | int _activeTab = 0; 9 | 10 | // ActiveTabIndexProvider(this._authProvider); 11 | 12 | int get fetchCurrentTabIndex => _activeTab; 13 | 14 | void setActiveTabIndex(int newIndex) { 15 | _activeTab = newIndex; 16 | notifyListeners(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/models/enums/navigation_items.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | enum NavigationItems { 4 | home, 5 | settings, 6 | profile, 7 | logout 8 | } 9 | 10 | extension NavigationItemsExtensions on NavigationItems { 11 | IconData get icon { 12 | switch (this) { 13 | case NavigationItems.home: 14 | return Icons.home; 15 | case NavigationItems.settings: 16 | return Icons.settings; 17 | case NavigationItems.profile: 18 | return Icons.person; 19 | case NavigationItems.logout: 20 | return Icons.logout; 21 | default: 22 | return Icons.person; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = shippi 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shippi 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /functions/encryption.js: -------------------------------------------------------------------------------- 1 | const crypto = require('crypto'); 2 | const algorithm = 'aes-256-cbc'; // AES encryption algorithm 3 | const key = Buffer.from(process.env.ENCRYPTION_KEY, 'utf8').slice(0, 32); // Ensure key is 32 bytes 4 | 5 | // Encryption function with a random IV 6 | function encrypt(text) { 7 | const iv = crypto.randomBytes(16); // Generate a random 16-byte IV 8 | const cipher = crypto.createCipheriv(algorithm, key, iv); 9 | let encrypted = cipher.update(text, 'utf8', 'base64'); 10 | encrypted += cipher.final('base64'); 11 | 12 | // Return both the IV and the encrypted data as base64 13 | return { 14 | iv: iv.toString('base64'), 15 | encryptedData: encrypted, 16 | }; 17 | } 18 | 19 | module.exports = { 20 | encrypt, 21 | }; 22 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "description": "A Node.js server with Express and Nodemailer", 4 | "scripts": { 5 | "serve": "node index.js", 6 | "start": "node index.js", 7 | "logs": "echo 'No logs available without Firebase'" 8 | }, 9 | "engines": { 10 | "node": "20" 11 | }, 12 | "main": "index.js", 13 | "dependencies": { 14 | "axios": "^1.7.7", 15 | "cors": "^2.8.5", 16 | "crypto": "^1.0.1", 17 | "dotenv": "^16.4.5", 18 | "express": "^4.21.0", 19 | "express-validator": "^7.2.0", 20 | "multer": "^1.4.5-lts.1", 21 | "nodemailer": "^6.9.14", 22 | "path": "^0.12.7", 23 | "pg": "^8.13.0", 24 | "pg-hstore": "^2.3.4", 25 | "sequelize": "^6.37.3" 26 | }, 27 | "private": true 28 | } 29 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "646103040420", 4 | "project_id": "udayah", 5 | "storage_bucket": "udayah.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:646103040420:android:42fb4139a7cbcac22f8131", 11 | "android_client_info": { 12 | "package_name": "com.example.shippi" 13 | } 14 | }, 15 | "oauth_client": [], 16 | "api_key": [ 17 | { 18 | "current_key": "AIzaSyCu0lj9PzdU56DgDkznA6Eel9cV8ReEZbM" 19 | } 20 | ], 21 | "services": { 22 | "appinvite_service": { 23 | "other_platform_oauth_client": [] 24 | } 25 | } 26 | } 27 | ], 28 | "configuration_version": "1" 29 | } -------------------------------------------------------------------------------- /functions/models/HrEmail.js: -------------------------------------------------------------------------------- 1 | const { DataTypes } = require('sequelize'); 2 | const sequelize = require('../database/database'); 3 | 4 | const HREmail = sequelize.define('HREmail', { 5 | email_address: { 6 | type: DataTypes.STRING, 7 | allowNull: false, 8 | unique: true, 9 | }, 10 | company_name: { 11 | type: DataTypes.STRING, 12 | allowNull: false, 13 | }, 14 | website: { 15 | type: DataTypes.STRING, 16 | allowNull: false, 17 | }, 18 | added_by: { 19 | type: DataTypes.STRING, 20 | allowNull: false, 21 | }, 22 | visible: { 23 | type: DataTypes.BOOLEAN, 24 | allowNull: false, 25 | defaultValue: false, 26 | }, 27 | }, { 28 | timestamps: true, 29 | }); 30 | 31 | // Export the model 32 | module.exports = HREmail; 33 | -------------------------------------------------------------------------------- /lib/encryption.dart: -------------------------------------------------------------------------------- 1 | import 'package:encrypt/encrypt.dart' as encrypt; 2 | import 'dart:convert'; 3 | import 'package:http/http.dart' as http; 4 | 5 | class EncryptionHelper { 6 | static final key = encrypt.Key.fromUtf8("your key"); // Ensure this is the same as in Node.js 7 | 8 | static String decrypt(String encryptedData, String ivBase64) { 9 | final iv = encrypt.IV.fromBase64(ivBase64); // Convert IV from base64 to bytes 10 | final encrypter = encrypt.Encrypter(encrypt.AES(key, mode: encrypt.AESMode.cbc)); 11 | 12 | try { 13 | // Decrypt the encrypted data using the same IV 14 | final decrypted = encrypter.decrypt64(encryptedData, iv: iv); 15 | return decrypted; 16 | } catch (e) { 17 | // print('Decryption error: $e'); 18 | throw Exception('Failed to decrypt data'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/validators/validator.dart: -------------------------------------------------------------------------------- 1 | // validators.dart 2 | import 'package:flutter/material.dart'; 3 | 4 | class Validators { 5 | static String? validateEmail(String? value) { 6 | if (value == null || value.isEmpty) { 7 | return 'Please enter an email'; 8 | } 9 | final emailRegex = RegExp(r'^[^@]+@[^@]+\.[^@]+'); 10 | if (!emailRegex.hasMatch(value)) { 11 | return 'Please enter a valid email'; 12 | } 13 | return null; 14 | } 15 | 16 | static String? validateCompanyName(String? value) { 17 | if (value == null || value.isEmpty) { 18 | return 'Please enter a company name'; 19 | } 20 | return null; 21 | } 22 | 23 | static String? validateWebsite(String? value) { 24 | if (value == null || value.isEmpty) { 25 | return 'Please enter a website'; 26 | } 27 | return null; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/widgets/alerts.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:udayah/styles/fonts.dart'; 3 | import 'package:udayah/styles/styles.dart'; 4 | 5 | void ShowCustomDialog(BuildContext context, String message) { 6 | showDialog( 7 | context: context, 8 | builder: (BuildContext context) { 9 | return AlertDialog( 10 | backgroundColor: Styles.brandBackgroundColor, 11 | title: Text("Alert !", style: AppTextStyles.regular,), 12 | content: Text(message,style: AppTextStyles.regular,), 13 | actions: [ 14 | TextButton( 15 | child: Text("OK", style: AppTextStyles.regular,), 16 | onPressed: () { 17 | Navigator.of(context).pop(); // Close the dialog 18 | }, 19 | ), 20 | ], 21 | ); 22 | }, 23 | ); 24 | } -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_linux 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /functions/database/database.js: -------------------------------------------------------------------------------- 1 | const { Sequelize } = require('sequelize'); 2 | 3 | const sequelize = new Sequelize(process.env.DB_DATABASE, process.env.DB_USERNAME, process.env.DB_PASSWORD, { 4 | host: process.env.DB_HOST, 5 | dialect: 'postgres', 6 | port: 5432, 7 | dialectOptions: { 8 | ssl: { 9 | require: true, // This will help you. But you will see nwe error 10 | rejectUnauthorized: false // This line will fix new error 11 | } 12 | }, 13 | }); 14 | 15 | const connectDB = async () => { 16 | try { 17 | await sequelize.authenticate(); 18 | console.log('Connection has been established successfully.'); 19 | 20 | 21 | await sequelize.sync(); 22 | } catch (error) { 23 | console.error('Unable to connect to the database:', error); 24 | } 25 | }; 26 | 27 | connectDB(); 28 | 29 | module.exports = sequelize; 30 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "7.3.0" apply false 22 | // START: FlutterFire Configuration 23 | id "com.google.gms.google-services" version "4.3.15" apply false 24 | // END: FlutterFire Configuration 25 | id "org.jetbrains.kotlin.android" version "1.7.10" apply false 26 | } 27 | 28 | include ":app" 29 | -------------------------------------------------------------------------------- /ios/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | API_KEY 6 | AIzaSyDkzIUWgv-hCAN-Ark4O6aaXICiT0eJSVA 7 | GCM_SENDER_ID 8 | 646103040420 9 | PLIST_VERSION 10 | 1 11 | BUNDLE_ID 12 | com.example.shippi 13 | PROJECT_ID 14 | udayah 15 | STORAGE_BUCKET 16 | udayah.appspot.com 17 | IS_ADS_ENABLED 18 | 19 | IS_ANALYTICS_ENABLED 20 | 21 | IS_APPINVITE_ENABLED 22 | 23 | IS_GCM_ENABLED 24 | 25 | IS_SIGNIN_ENABLED 26 | 27 | GOOGLE_APP_ID 28 | 1:646103040420:ios:6d70529cc103cc992f8131 29 | 30 | -------------------------------------------------------------------------------- /macos/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | API_KEY 6 | AIzaSyDkzIUWgv-hCAN-Ark4O6aaXICiT0eJSVA 7 | GCM_SENDER_ID 8 | 646103040420 9 | PLIST_VERSION 10 | 1 11 | BUNDLE_ID 12 | com.example.shippi 13 | PROJECT_ID 14 | udayah 15 | STORAGE_BUCKET 16 | udayah.appspot.com 17 | IS_ADS_ENABLED 18 | 19 | IS_ANALYTICS_ENABLED 20 | 21 | IS_APPINVITE_ENABLED 22 | 23 | IS_GCM_ENABLED 24 | 25 | IS_SIGNIN_ENABLED 26 | 27 | GOOGLE_APP_ID 28 | 1:646103040420:ios:6d70529cc103cc992f8131 29 | 30 | -------------------------------------------------------------------------------- /lib/models/companies_list.dart: -------------------------------------------------------------------------------- 1 | class CompaniesEmail { 2 | var id; 3 | final String emailAddress; 4 | final String companyName; 5 | final String website; 6 | final bool visible; 7 | final String addedBy; 8 | final String createdAt; 9 | final String updatedAt; 10 | 11 | CompaniesEmail({ 12 | required this.id, 13 | required this.emailAddress, 14 | required this.companyName, 15 | required this.website, 16 | required this.visible, 17 | required this.addedBy, 18 | required this.createdAt, 19 | required this.updatedAt, 20 | }); 21 | 22 | factory CompaniesEmail.fromJson(Map json) { 23 | return CompaniesEmail( 24 | id: json['id'], 25 | emailAddress: json['email_address'], 26 | companyName: json['company_name'], 27 | website: json['website'], 28 | visible: json['visible'], 29 | addedBy: json['added_by'], 30 | createdAt: json['createdAt'], 31 | updatedAt: json['updatedAt'], 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | cloud_firestore 7 | firebase_auth 8 | firebase_core 9 | firebase_storage 10 | flutter_inappwebview_windows 11 | url_launcher_windows 12 | ) 13 | 14 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 15 | ) 16 | 17 | set(PLUGIN_BUNDLED_LIBRARIES) 18 | 19 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 20 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 21 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 24 | endforeach(plugin) 25 | 26 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 27 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 28 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 29 | endforeach(ffi_plugin) 30 | -------------------------------------------------------------------------------- /functions/routes/hrEmailRoutes.js: -------------------------------------------------------------------------------- 1 | const { body,param } = require('express-validator'); 2 | const hrEmailController = require('../controllers/hrEmailController'); 3 | const express = require('express'); 4 | 5 | 6 | const router = express.Router(); 7 | 8 | // POST endpoint to store hr email 9 | router.post('/api/add-hr-email', [ 10 | body('email_address').isEmail().withMessage('Must be a valid email address'), 11 | body('company_name').notEmpty().withMessage('Company name is required'), 12 | body('website').isURL().withMessage('Must be a valid URL'), 13 | body('added_by') 14 | .exists().withMessage('the user email is required') 15 | .isEmail().withMessage('Must be a valid email'), 16 | ], hrEmailController.addHREmail); 17 | 18 | router.get('/api/companies/:company_id?', [ 19 | param('company_id') 20 | .optional() 21 | .isInt({ gt: 0 }).withMessage('Company ID must be a positive integer'),], 22 | hrEmailController.fetchCompanies,); 23 | 24 | 25 | module.exports = router; 26 | -------------------------------------------------------------------------------- /lib/layout/top_app_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:udayah/responsive.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class TopAppBar extends StatelessWidget { 7 | const TopAppBar({Key? key, final String ? title}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Padding( 12 | padding: const EdgeInsets.all(18.0), 13 | child: Row( 14 | children: [ 15 | Visibility( 16 | visible: Responsive.isDesktop(context), 17 | child: const Padding( 18 | padding: EdgeInsets.only(right: 30.0), 19 | child: Text( 20 | "", 21 | style: TextStyle( 22 | fontWeight: FontWeight.bold, 23 | fontSize: 26, 24 | ), 25 | ), 26 | ), 27 | ), 28 | 29 | ], 30 | ), 31 | ); 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /functions/index.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config(); 2 | const express = require('express'); 3 | const cors = require('cors'); 4 | const app = express(); 5 | const port = process.env.PORT || 3000; 6 | const hrEmailRoutes = require('./routes/hrEmailRoutes'); 7 | const sendEmailRoutes = require('./routes/sendEmailRoutes'); 8 | 9 | 10 | app.use(cors({ 11 | origin: '*', // Update if needed 12 | methods: 'GET, POST, PUT, DELETE, OPTIONS', 13 | allowedHeaders: 'Origin, X-Requested-With, Content-Type, Accept, Authorization' 14 | })); 15 | // app.use('/.well-known', express.static(path.join(__dirname, '.well-known'))); 16 | //app.use(cors()); 17 | app.use(express.json()); 18 | app.get('/', async (req, res) => { 19 | res.status(200).json({ success: 'Working bro..' }); 20 | }); 21 | //app.us('/.well-known', express.static(path.join(__dirname, '.well-known'))); 22 | 23 | 24 | //routers 25 | app.use(hrEmailRoutes); 26 | app.use(sendEmailRoutes); 27 | 28 | 29 | 30 | app.listen(port, () => { 31 | console.log('Server running on port 3000'); 32 | }); 33 | -------------------------------------------------------------------------------- /lib/widgets/navigation_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:udayah/styles/styles.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class NavigationButton extends StatelessWidget { 5 | const NavigationButton({ 6 | Key? key, 7 | required this.onPressed, 8 | required this.icon, 9 | this.isActive = true, 10 | }) : super(key: key); 11 | 12 | final VoidCallback onPressed; 13 | final IconData icon; 14 | final bool isActive; 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Container( 19 | margin: const EdgeInsets.symmetric(vertical: 10, horizontal: 10), 20 | decoration: BoxDecoration( 21 | color: isActive 22 | ? Styles.defaultYellowColor 23 | : Styles.defaultLightWhiteColor, 24 | shape: BoxShape.circle, 25 | ), 26 | child: IconButton( 27 | onPressed: onPressed, 28 | icon: Icon( 29 | icon, 30 | size: 20, 31 | color: isActive ? Colors.white : Colors.grey, 32 | ), 33 | ), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-v31/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night-v31/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Udayah", 3 | "short_name": "Udayah", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#1C1C3A", 7 | "theme_color": "#1C1C3A", 8 | "description": "Udayah: AI-powered solutions for job hunters. Create standout resumes, send effective cold mails, and optimize your job applications with our AI ATS.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Vscode related 20 | .vscode/ 21 | 22 | # The .vscode folder contains launch configuration and tasks you configure in 23 | # VS Code which you may wish to be included in version control, so this line 24 | # is commented out by default. 25 | .vscode/ 26 | 27 | # Firebase related 28 | firebase.json 29 | firebase.config.js 30 | .env.firebase 31 | /.firebase/ 32 | /.firebase/ 33 | 34 | # Flutter/Dart/Pub related 35 | **/doc/api/ 36 | **/ios/Flutter/.last_build_id 37 | .dart_tool/ 38 | .flutter-plugins 39 | .flutter-plugins-dependencies 40 | .pub-cache/ 41 | .pub/ 42 | /build/ 43 | 44 | # Symbolication related 45 | app.*.symbols 46 | 47 | # Obfuscation related 48 | app.*.map.json 49 | 50 | # Android Studio will place build artifacts here 51 | /android/app/debug 52 | /android/app/profile 53 | /android/app/release 54 | 55 | 56 | #others 57 | /email_data 58 | /functions/node_modules 59 | /functions/.env 60 | /.firebaserc 61 | /lib/firebase_options.dart 62 | /web/*.zip 63 | /functions/emails.json 64 | sec-file.txt 65 | -------------------------------------------------------------------------------- /functions/routes/sendEmailRoutes.js: -------------------------------------------------------------------------------- 1 | const { body } = require('express-validator'); 2 | const sendEmailController = require('../controllers/sendEmailController'); 3 | const express = require('express'); 4 | 5 | const router = express.Router(); 6 | 7 | // POST endpoint to store hr email 8 | router.post('/api/send-email', [ 9 | body('smtpDetails') 10 | .exists().withMessage('smtp Details are required') 11 | .notEmpty().withMessage('smtp details can not be empty'), 12 | body('resumeUrl') 13 | .exists().withMessage('resumeUrl field is required') 14 | .isURL().withMessage('Must be a valid URL'), 15 | body('from') 16 | .exists().withMessage('the to field is required') 17 | .isEmail().withMessage('the sender email (from) must be valid'), 18 | body('to') 19 | .exists().withMessage('the to field is required') 20 | .isEmail().withMessage('the reciver email (to) must be valid'), 21 | body('subject') 22 | .exists().withMessage('subject is required') 23 | .notEmpty().withMessage('subject must not be empty'), 24 | body('body') 25 | .exists().withMessage('body is required') 26 | .notEmpty().withMessage('Body cannot be empty'), 27 | ], sendEmailController.sendEmail); 28 | 29 | module.exports = router; 30 | -------------------------------------------------------------------------------- /lib/provider/hr_emails.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:http/http.dart' as http; 3 | import 'package:udayah/data/constants.dart'; 4 | import 'dart:convert'; 5 | 6 | import 'package:udayah/models/hr_emails.dart'; 7 | 8 | class HrEmailProvider with ChangeNotifier { 9 | bool _isLoading = false; 10 | 11 | bool get isLoading => _isLoading; 12 | 13 | Future addHrEmail(HrEmail hrEmail) async { 14 | _isLoading = true; 15 | notifyListeners(); 16 | 17 | try { 18 | final response = await http.post( 19 | Uri.parse('${baseUrl}/add-hr-email'), 20 | headers: {'Content-Type': 'application/json'}, 21 | body: json.encode(hrEmail.toJson()), 22 | ); 23 | 24 | if (response.statusCode == 201) { 25 | // Handle success 26 | final responseData = jsonDecode(response.body); 27 | return responseData['success']; 28 | } else { 29 | // Handle failure 30 | final responseData = jsonDecode(response.body); 31 | String errorMessage = responseData['errors'][0]["msg"]; 32 | throw Exception('Failed: ${errorMessage}'); 33 | } 34 | } catch (error) { 35 | rethrow; 36 | } finally { 37 | _isLoading = false; 38 | notifyListeners(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/styles/styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Styles { 4 | static Color scaffoldBackgroundColor = Color(0xFFedc7b7); 5 | static Color defaultRedColor = const Color(0xffff698a); 6 | static Color defaultYellowColor = const Color(0xFFac3b61); 7 | static Color defaultBlueColor = const Color(0xff52beff); 8 | static Color defaultGreyColor = const Color(0xff77839a); 9 | static Color defaultLightGreyColor = const Color(0xffc4c4c4); 10 | static Color defaultLightWhiteColor = const Color(0xFFf2f6fe); 11 | static Color brandBackgroundColor = const Color(0xFF1C1C3A); 12 | static List brandGradientColor = []; 13 | static BoxDecoration brandingDecoration = BoxDecoration( 14 | gradient: LinearGradient( 15 | colors: [ 16 | Color(0xFF0F2027), 17 | Color(0xFF203A43), 18 | Color(0xFF2C5364), 19 | Colors.purple 20 | ], 21 | begin: Alignment.topCenter, 22 | end: Alignment.bottomRight, 23 | ), 24 | ); 25 | 26 | static double defaultPadding = 18.0; 27 | 28 | static BorderRadius defaultBorderRadius = BorderRadius.circular(20); 29 | 30 | static ScrollbarThemeData scrollbarTheme = 31 | const ScrollbarThemeData().copyWith( 32 | thumbColor: MaterialStateProperty.all(defaultYellowColor), 33 | // isAlwaysShown: false, 34 | interactive: true, 35 | ); 36 | } 37 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 19 | 22 | 23 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 19 | 22 | 23 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | void RegisterPlugins(flutter::PluginRegistry* registry) { 17 | CloudFirestorePluginCApiRegisterWithRegistrar( 18 | registry->GetRegistrarForPlugin("CloudFirestorePluginCApi")); 19 | FirebaseAuthPluginCApiRegisterWithRegistrar( 20 | registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); 21 | FirebaseCorePluginCApiRegisterWithRegistrar( 22 | registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); 23 | FirebaseStoragePluginCApiRegisterWithRegistrar( 24 | registry->GetRegistrarForPlugin("FirebaseStoragePluginCApi")); 25 | FlutterInappwebviewWindowsPluginCApiRegisterWithRegistrar( 26 | registry->GetRegistrarForPlugin("FlutterInappwebviewWindowsPluginCApi")); 27 | UrlLauncherWindowsRegisterWithRegistrar( 28 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 29 | } 30 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import cloud_firestore 9 | import firebase_auth 10 | import firebase_core 11 | import firebase_storage 12 | import flutter_inappwebview_macos 13 | import path_provider_foundation 14 | import shared_preferences_foundation 15 | import url_launcher_macos 16 | import webview_flutter_wkwebview 17 | 18 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 19 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin")) 20 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) 21 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) 22 | FLTFirebaseStoragePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseStoragePlugin")) 23 | InAppWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "InAppWebViewFlutterPlugin")) 24 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 25 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 26 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 27 | FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin")) 28 | } 29 | -------------------------------------------------------------------------------- /lib/provider/auth.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:go_router/go_router.dart'; 4 | import 'package:udayah/widgets/alerts.dart'; 5 | 6 | class AuthProvider with ChangeNotifier { 7 | final FirebaseAuth _auth = FirebaseAuth.instance; 8 | User? _user; 9 | 10 | // Persists the user's authentication state across app restarts 11 | AuthProvider() { 12 | _auth.authStateChanges().listen((User? user) { 13 | _user = user; 14 | notifyListeners(); 15 | }); 16 | } 17 | 18 | User? get user => _user; 19 | bool get isAuthenticated => _user != null; 20 | 21 | Future signInWithGoogle(BuildContext context) async { 22 | try { 23 | UserCredential userCredential = 24 | await _auth.signInWithPopup(GoogleAuthProvider()); 25 | _user = userCredential.user; 26 | // Redirect to dashboard after successful sign-in 27 | if (_user != null) { 28 | GoRouter.of(context).go('/dashboard'); 29 | } 30 | 31 | notifyListeners(); 32 | } catch (e) { 33 | ShowCustomDialog(context, "Error during Google sign-in: $e"); 34 | // print("Error during Google sign-in: $e"); 35 | } 36 | } 37 | 38 | Future signOut(context) async { 39 | await _auth.signOut(); 40 | _user = null; 41 | notifyListeners(); 42 | GoRouter.of(context).go('/'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/responsive.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:udayah/styles/styles.dart'; 3 | 4 | class Responsive extends StatelessWidget { 5 | final Widget mobile; 6 | final Widget desktop; 7 | 8 | const Responsive({ 9 | Key? key, 10 | required this.mobile, 11 | required this.desktop, 12 | }) : super(key: key); 13 | 14 | static bool isMobile(BuildContext context) => 15 | MediaQuery.of(context).size.width < 650; 16 | 17 | static bool isTablet(BuildContext context) => 18 | MediaQuery.of(context).size.width < 1100 && 19 | MediaQuery.of(context).size.width >= 650; 20 | 21 | static bool isDesktop(BuildContext context) => 22 | MediaQuery.of(context).size.width >= 1100; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return LayoutBuilder( 27 | builder: (context, constraints) { 28 | if (constraints.maxWidth >= 650) { 29 | return Container( 30 | alignment: Alignment.center, 31 | height: double.infinity, 32 | decoration: Styles.brandingDecoration, 33 | child: desktop, 34 | ); 35 | } else { 36 | return Container( 37 | alignment: Alignment.center, 38 | height: double.infinity, 39 | decoration: Styles.brandingDecoration, 40 | child: mobile, 41 | ); 42 | } 43 | }, 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"shippi", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /lib/file_picker.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io' as io; 2 | import 'package:flutter/foundation.dart' show kIsWeb; 3 | import 'package:file_picker/file_picker.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:udayah/provider/mailer.dart'; 7 | 8 | Future _pickResume(BuildContext context) async { 9 | FilePickerResult? result = await FilePicker.platform.pickFiles( 10 | type: FileType.custom, 11 | allowedExtensions: ['pdf', 'doc', 'docx'], 12 | ); 13 | 14 | if (result != null) { 15 | final fileName = result.files.single.name; 16 | 17 | if (kIsWeb) { 18 | // On web, access the bytes property 19 | final fileBytes = result.files.single.bytes; 20 | if (fileBytes != null) { 21 | // Handle file as bytes for web 22 | Provider.of(context, listen: false) 23 | .setSelectedFileName(fileName); 24 | Provider.of(context, listen: false) 25 | .setSelectedFileBytes(fileBytes); 26 | } 27 | } else { 28 | // On non-web platforms, access the path 29 | final filePath = result.files.single.path; 30 | if (filePath != null) { 31 | Provider.of(context, listen: false) 32 | .setSelectedFileName(fileName); 33 | Provider.of(context, listen: false) 34 | .setSelectedFilePath(filePath); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /lib/layout/app_layout.dart: -------------------------------------------------------------------------------- 1 | import 'package:udayah/layout/navigation_panel.dart'; 2 | import 'package:udayah/layout/top_app_bar.dart'; 3 | import 'package:udayah/responsive.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | 6 | class AppLayout extends StatelessWidget { 7 | final Widget content; 8 | 9 | const AppLayout({Key? key, required this.content}) : super(key: key); 10 | @override 11 | Widget build(BuildContext context) { 12 | return Responsive( 13 | mobile: Column( 14 | children: [ 15 | // const TopAppBar(), 16 | Expanded( 17 | child: Padding( 18 | padding: const EdgeInsets.all(10.0), 19 | child: content, 20 | ), 21 | ), 22 | const NavigationPanel( 23 | axis: Axis.horizontal, 24 | ), 25 | ], 26 | ), 27 | desktop: Row( 28 | children: [ 29 | const NavigationPanel( 30 | axis: Axis.vertical, 31 | ), 32 | Expanded( 33 | flex: 5, 34 | child: Padding( 35 | padding: const EdgeInsets.only(right: 10.0, bottom: 20.0, top: 20), 36 | child: Column( 37 | mainAxisSize: MainAxisSize.min, 38 | children: [ 39 | // const SizedBox(height: 100, child: TopAppBar()), 40 | Expanded(child: content), 41 | ], 42 | ), 43 | ), 44 | ), 45 | ], 46 | ), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/pages/dashboard_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:udayah/layout/app_layout.dart'; 4 | import 'package:udayah/provider/navigation.dart'; 5 | import 'package:udayah/widgets/companies_list.dart'; 6 | import 'package:udayah/widgets/profile_page.dart'; 7 | import 'package:udayah/widgets/smtp_page.dart'; 8 | 9 | class Dashboard extends StatefulWidget { 10 | const Dashboard({Key? key}) : super(key: key); 11 | 12 | @override 13 | State createState() => _DashboardState(); 14 | } 15 | 16 | class _DashboardState extends State { 17 | List screens = [ 18 | CompaniesList(), 19 | const SmtpSetup(), 20 | const ProfilePage(), 21 | ]; 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return Scaffold( 26 | body: SafeArea( 27 | child: Consumer( 28 | builder: (context, _, data) { 29 | return AppLayout( 30 | content: Row( 31 | mainAxisAlignment: MainAxisAlignment.start, 32 | children: [ 33 | // Main Panel 34 | Expanded( 35 | flex: 5, 36 | child: _.fetchCurrentTabIndex >= 3 37 | ? Container() 38 | : screens[_.fetchCurrentTabIndex], 39 | ), 40 | ], 41 | ), 42 | ); 43 | }, 44 | ), 45 | ), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/provider/smtp.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/widgets.dart'; 4 | import 'package:udayah/widgets/alerts.dart'; 5 | 6 | class SmtpProvider with ChangeNotifier { 7 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 8 | 9 | Future storeSmtpDetails({ 10 | String ? email, 11 | required String smtpServer, 12 | required String smtpPort, 13 | required String smtpUsername, 14 | required String smtpPassword, 15 | required BuildContext context 16 | }) async { 17 | try { 18 | await _firestore.collection('smtp_details').doc(email).set({ 19 | 'smtp_server': smtpServer, 20 | 'smtp_port': smtpPort, 21 | 'smtp_username': smtpUsername, 22 | 'smtp_password': smtpPassword, 23 | }); 24 | ShowCustomDialog(context, "SMTP settings saved."); 25 | } catch (e) { 26 | print(e); 27 | } 28 | } 29 | 30 | Future?> getSmtpDetails(String ? email) async { 31 | try { 32 | DocumentSnapshot doc = 33 | await _firestore.collection('smtp_details').doc(email).get(); 34 | if (doc.exists) { 35 | return { 36 | 'smtp_server': doc['smtp_server'], 37 | 'smtp_port': doc['smtp_port'], 38 | 'smtp_username': doc['smtp_username'], 39 | 'smtp_password': doc['smtp_password'], 40 | }; 41 | } 42 | } catch (e) { 43 | print(e); 44 | } 45 | return null; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.14' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | target 'RunnerTests' do 35 | inherit! :search_paths 36 | end 37 | end 38 | 39 | post_install do |installer| 40 | installer.pods_project.targets.each do |target| 41 | flutter_additional_macos_build_settings(target) 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /lib/routes/router.dart: -------------------------------------------------------------------------------- 1 | import 'package:go_router/go_router.dart'; 2 | import 'package:udayah/pages/dashboard_page.dart'; 3 | import 'package:udayah/pages/landing_page.dart'; 4 | import 'package:udayah/pages/login.dart'; 5 | import 'package:udayah/pages/not_found_page.dart'; 6 | import 'package:udayah/routes/auth_guard.dart'; 7 | 8 | final GoRouter router = GoRouter( 9 | initialLocation: '/', 10 | routes: [ 11 | GoRoute( 12 | path: '/', 13 | builder: (context, state) => LandingPage(), 14 | ), 15 | GoRoute( 16 | path: '/dashboard', 17 | builder: (context, state) => Dashboard(), 18 | ), 19 | GoRoute( 20 | path: '/login', 21 | builder: (context, state) => LoginPage(), 22 | ), 23 | GoRoute( 24 | path: '/404', 25 | builder: (context, state) => NotFoundScreen(), 26 | ), 27 | ], 28 | errorBuilder: (context, state) => NotFoundScreen(), 29 | redirect: (context, state) { 30 | final isAuthenticated = authGuard.isAuthenticated(context); 31 | final isLoggingIn = state.uri.toString() == '/login'; 32 | final isOnPublicPage = state.uri.toString() == '/' || state.uri.toString() == '/404'; 33 | 34 | // Redirect to login if not authenticated and trying to access a protected page 35 | if (!isAuthenticated && !isLoggingIn && !isOnPublicPage) { 36 | return '/login'; 37 | } 38 | // If authenticated and trying to access the login page, redirect to dashboard 39 | if (isAuthenticated && isLoggingIn) { 40 | return '/dashboard'; 41 | } 42 | 43 | return null; 44 | }, 45 | ); 46 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '12.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | target 'RunnerTests' do 36 | inherit! :search_paths 37 | end 38 | end 39 | 40 | post_install do |installer| 41 | installer.pods_project.targets.each do |target| 42 | flutter_additional_ios_build_settings(target) 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /lib/widgets/video.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:udayah/styles/fonts.dart'; 3 | import 'package:udayah/styles/styles.dart'; 4 | import 'package:youtube_player_iframe/youtube_player_iframe.dart'; 5 | 6 | class VideoPopup extends StatefulWidget { 7 | final String videoId; 8 | 9 | const VideoPopup({required this.videoId}); 10 | 11 | @override 12 | _VideoPopupState createState() => _VideoPopupState(); 13 | } 14 | 15 | class _VideoPopupState extends State { 16 | late YoutubePlayerController _controller; 17 | 18 | @override 19 | void initState() { 20 | super.initState(); 21 | _controller = YoutubePlayerController.fromVideoId( 22 | videoId: widget.videoId, 23 | autoPlay: false, 24 | params: YoutubePlayerParams( 25 | showFullscreenButton: true, 26 | showControls: true, 27 | ), 28 | ); 29 | } 30 | 31 | @override 32 | void dispose() { 33 | _controller.close(); 34 | super.dispose(); 35 | } 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | return AlertDialog( 40 | backgroundColor: Styles.brandBackgroundColor, 41 | contentPadding: EdgeInsets.zero, 42 | content: Container( 43 | width: 800, 44 | height: 450, 45 | child: YoutubePlayer( 46 | controller: _controller, 47 | aspectRatio: 16 / 9, 48 | ), 49 | ), 50 | actions: [ 51 | TextButton( 52 | child: Text('Close', style: AppTextStyles.regular), 53 | onPressed: () { 54 | Navigator.of(context).pop(); 55 | }, 56 | ), 57 | ], 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "38ac3de48f16f228c211ab6e3ede2f7ac85ea84f" 8 | channel: "master" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 17 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 18 | - platform: android 19 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 20 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 21 | - platform: ios 22 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 23 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 24 | - platform: linux 25 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 26 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 27 | - platform: macos 28 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 29 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 30 | - platform: web 31 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 32 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 33 | - platform: windows 34 | create_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 35 | base_revision: 38ac3de48f16f228c211ab6e3ede2f7ac85ea84f 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "version": 1, 4 | "author": "xcode" 5 | }, 6 | "images": [ 7 | { 8 | "size": "16x16", 9 | "idiom": "mac", 10 | "filename": "app_icon_16.png", 11 | "scale": "1x" 12 | }, 13 | { 14 | "size": "16x16", 15 | "idiom": "mac", 16 | "filename": "app_icon_32.png", 17 | "scale": "2x" 18 | }, 19 | { 20 | "size": "32x32", 21 | "idiom": "mac", 22 | "filename": "app_icon_32.png", 23 | "scale": "1x" 24 | }, 25 | { 26 | "size": "32x32", 27 | "idiom": "mac", 28 | "filename": "app_icon_64.png", 29 | "scale": "2x" 30 | }, 31 | { 32 | "size": "128x128", 33 | "idiom": "mac", 34 | "filename": "app_icon_128.png", 35 | "scale": "1x" 36 | }, 37 | { 38 | "size": "128x128", 39 | "idiom": "mac", 40 | "filename": "app_icon_256.png", 41 | "scale": "2x" 42 | }, 43 | { 44 | "size": "256x256", 45 | "idiom": "mac", 46 | "filename": "app_icon_256.png", 47 | "scale": "1x" 48 | }, 49 | { 50 | "size": "256x256", 51 | "idiom": "mac", 52 | "filename": "app_icon_512.png", 53 | "scale": "2x" 54 | }, 55 | { 56 | "size": "512x512", 57 | "idiom": "mac", 58 | "filename": "app_icon_512.png", 59 | "scale": "1x" 60 | }, 61 | { 62 | "size": "512x512", 63 | "idiom": "mac", 64 | "filename": "app_icon_1024.png", 65 | "scale": "2x" 66 | } 67 | ] 68 | } -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Shippi 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | shippi 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | UIStatusBarHidden 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr) 51 | -1; // remove the trailing null character 52 | int input_length = (int)wcslen(utf16_string); 53 | std::string utf8_string; 54 | if (target_length <= 0 || target_length > utf8_string.max_size()) { 55 | return utf8_string; 56 | } 57 | utf8_string.resize(target_length); 58 | int converted_length = ::WideCharToMultiByte( 59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 60 | input_length, utf8_string.data(), target_length, nullptr, nullptr); 61 | if (converted_length == 0) { 62 | return std::string(); 63 | } 64 | return utf8_string; 65 | } 66 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | {"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}} -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | // START: FlutterFire Configuration 4 | id 'com.google.gms.google-services' 5 | // END: FlutterFire Configuration 6 | id "kotlin-android" 7 | id "dev.flutter.flutter-gradle-plugin" 8 | } 9 | 10 | def localProperties = new Properties() 11 | def localPropertiesFile = rootProject.file('local.properties') 12 | if (localPropertiesFile.exists()) { 13 | localPropertiesFile.withReader('UTF-8') { reader -> 14 | localProperties.load(reader) 15 | } 16 | } 17 | 18 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 19 | if (flutterVersionCode == null) { 20 | flutterVersionCode = '1' 21 | } 22 | 23 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 24 | if (flutterVersionName == null) { 25 | flutterVersionName = '1.0' 26 | } 27 | 28 | android { 29 | namespace "com.example.shippi" 30 | compileSdk flutter.compileSdkVersion 31 | ndkVersion flutter.ndkVersion 32 | 33 | compileOptions { 34 | sourceCompatibility JavaVersion.VERSION_1_8 35 | targetCompatibility JavaVersion.VERSION_1_8 36 | } 37 | 38 | kotlinOptions { 39 | jvmTarget = '1.8' 40 | } 41 | 42 | sourceSets { 43 | main.java.srcDirs += 'src/main/kotlin' 44 | } 45 | 46 | defaultConfig { 47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 48 | applicationId "com.example.shippi" 49 | // You can update the following values to match your application needs. 50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 51 | minSdk flutter.minSdkVersion 52 | targetSdk flutter.targetSdkVersion 53 | versionCode flutterVersionCode.toInteger() 54 | versionName flutterVersionName 55 | } 56 | 57 | buildTypes { 58 | release { 59 | // TODO: Add your own signing config for the release build. 60 | // Signing with the debug keys for now, so `flutter run --release` works. 61 | signingConfig signingConfigs.debug 62 | } 63 | } 64 | } 65 | 66 | flutter { 67 | source '../..' 68 | } 69 | 70 | dependencies {} 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | // Flutter can complete the first frame before the "show window" callback is 35 | // registered. The following call ensures a frame is pending to ensure the 36 | // window is shown. It is a no-op if the first frame hasn't completed yet. 37 | flutter_controller_->ForceRedraw(); 38 | 39 | return true; 40 | } 41 | 42 | void FlutterWindow::OnDestroy() { 43 | if (flutter_controller_) { 44 | flutter_controller_ = nullptr; 45 | } 46 | 47 | Win32Window::OnDestroy(); 48 | } 49 | 50 | LRESULT 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 52 | WPARAM const wparam, 53 | LPARAM const lparam) noexcept { 54 | // Give Flutter, including plugins, an opportunity to handle window messages. 55 | if (flutter_controller_) { 56 | std::optional result = 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 58 | lparam); 59 | if (result) { 60 | return *result; 61 | } 62 | } 63 | 64 | switch (message) { 65 | case WM_FONTCHANGE: 66 | flutter_controller_->engine()->ReloadSystemFonts(); 67 | break; 68 | } 69 | 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 71 | } 72 | -------------------------------------------------------------------------------- /functions/controllers/sendEmailController.js: -------------------------------------------------------------------------------- 1 | const { validationResult } = require('express-validator'); 2 | const nodemailer = require('nodemailer'); 3 | const https = require('https'); 4 | 5 | const sendEmail = async (req, res) => { 6 | try { 7 | const { smtpDetails, resumeUrl, from, to, subject, body } = req.body; 8 | 9 | const errors = validationResult(req); 10 | if (!errors.isEmpty()) { 11 | return res.status(400).json({ errors: errors.array() }); 12 | } 13 | 14 | // Create a Nodemailer transporter using the SMTP details 15 | const transporter = nodemailer.createTransport({ 16 | logger: true, // Enables logging 17 | host: smtpDetails.host, 18 | port: 587, 19 | secure: false, 20 | requireTLS: true, 21 | auth: { 22 | user: smtpDetails.user, 23 | pass: smtpDetails.pass, 24 | }, 25 | }); 26 | 27 | const fileUrl = new URL(resumeUrl); 28 | const fileStream = await downloadFile(fileUrl); 29 | 30 | // Send the email 31 | const info = await transporter.sendMail({ 32 | from, 33 | to, 34 | subject, 35 | html: body, 36 | attachments: [ 37 | { 38 | filename: '3YOE_Muzammil_D.pdf', // Adjust the filename as needed 39 | content: fileStream, 40 | }, 41 | ], 42 | }); 43 | 44 | res.status(200).json({ message: 'Email sent', info }); 45 | } catch (error) { 46 | console.error('Error sending email:', error); 47 | res.status(500).json({ error: 'Failed to send email', log: error }); 48 | } 49 | }; 50 | 51 | function downloadFile(url) { 52 | return new Promise((resolve, reject) => { 53 | https.get(url, (res) => { 54 | if (res.statusCode !== 200) { 55 | reject(new Error(`Failed to download file, status code: ${res.statusCode}`)); 56 | return; 57 | } 58 | 59 | // The response object (`res`) is already a readable stream 60 | resolve(res); // Resolve with the stream itself 61 | }).on('error', (err) => { 62 | reject(err); // Handle error in the request 63 | }); 64 | }); 65 | } 66 | 67 | // Export the controller functions 68 | module.exports = { 69 | sendEmail, 70 | }; 71 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:udayah/firebase_options.dart'; 5 | import 'package:udayah/provider/auth.dart'; 6 | import 'package:udayah/provider/companies.dart'; 7 | import 'package:udayah/provider/hr_emails.dart'; 8 | import 'package:udayah/provider/mailer.dart'; 9 | import 'package:udayah/provider/navigation.dart'; 10 | import 'package:udayah/provider/smtp.dart'; 11 | import 'package:udayah/routes/router.dart'; 12 | import 'package:udayah/styles/fonts.dart'; 13 | import 'package:url_strategy/url_strategy.dart'; 14 | 15 | void main() async { 16 | setPathUrlStrategy(); 17 | WidgetsFlutterBinding.ensureInitialized(); 18 | await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); 19 | 20 | runApp(const App()); 21 | } 22 | 23 | class App extends StatelessWidget { 24 | const App({Key? key}) : super(key: key); 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return MultiProvider( 29 | providers: [ 30 | // ChangeNotifierProvider( 31 | // create: (_) => activeTabIndexProvider()), 32 | ChangeNotifierProvider(create: (_) => AuthProvider()), 33 | ChangeNotifierProvider(create: (_) => SmtpProvider()), 34 | ChangeNotifierProvider(create: (_) => ActiveTabIndexProvider()), 35 | ChangeNotifierProvider(create: (_) => CompaniesProvider()), 36 | ChangeNotifierProvider(create: (_) => EmailProvider()), 37 | ChangeNotifierProvider(create: (_) => HrEmailProvider()), 38 | 39 | ], 40 | child: MaterialApp.router( 41 | routerDelegate: router.routerDelegate, 42 | routeInformationParser: router.routeInformationParser, 43 | routeInformationProvider: router.routeInformationProvider, 44 | debugShowCheckedModeBanner: false, 45 | title: "Udayah | AI-Powered Tools for Job Hunters", 46 | 47 | theme: ThemeData( 48 | textTheme: TextTheme( 49 | // displayLarge: AppTextStyles.bold.copyWith(fontSize: 32), 50 | // bodyLarge: AppTextStyles.regular, 51 | // bodyMedium: AppTextStyles.light, 52 | // bodySmall: AppTextStyles.italic, 53 | // labelLarge: AppTextStyles.semiBold.copyWith(fontSize: 18), 54 | // Define other text styles as needed 55 | ), 56 | ), 57 | ), 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /lib/layout/navigation_panel.dart: -------------------------------------------------------------------------------- 1 | import 'package:provider/provider.dart'; 2 | import 'package:udayah/models/enums/navigation_items.dart'; 3 | import 'package:udayah/provider/auth.dart'; 4 | import 'package:udayah/provider/navigation.dart'; 5 | import 'package:udayah/responsive.dart'; 6 | import 'package:udayah/widgets/navigation_button.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:udayah/widgets/popups.dart'; 9 | 10 | class NavigationPanel extends StatefulWidget { 11 | final Axis axis; 12 | const NavigationPanel({Key? key, required this.axis}) : super(key: key); 13 | 14 | @override 15 | State createState() => _NavigationPanelState(); 16 | } 17 | 18 | class _NavigationPanelState extends State { 19 | @override 20 | Widget build(BuildContext context) { 21 | int activeTab = Provider.of(context, listen: true).fetchCurrentTabIndex; 22 | final activeTabProvider = Provider.of(context, listen: false); 23 | final authProvider = Provider.of(context); 24 | 25 | void logout() { 26 | authProvider.signOut(context); 27 | activeTabProvider.setActiveTabIndex(0); 28 | } 29 | 30 | Widget buildNavigationButton(NavigationItems item) { 31 | return NavigationButton( 32 | onPressed: () { 33 | activeTabProvider.setActiveTabIndex(item.index); 34 | if (activeTabProvider.fetchCurrentTabIndex == 3) { 35 | activeTabProvider.setActiveTabIndex(item.index - 1); 36 | ShowLogoutDialog(context, logout); 37 | } 38 | }, 39 | icon: item.icon, // Directly pass the IconData 40 | isActive: item.index == activeTab, 41 | ); 42 | } 43 | 44 | return Container( 45 | constraints: const BoxConstraints(minWidth: 80), 46 | decoration: BoxDecoration( 47 | color: Colors.white, 48 | borderRadius: BorderRadius.circular(20), 49 | ), 50 | margin: Responsive.isDesktop(context) 51 | ? const EdgeInsets.symmetric(horizontal: 30, vertical: 20) 52 | : const EdgeInsets.all(10), 53 | child: widget.axis == Axis.vertical 54 | ? Column( 55 | mainAxisAlignment: MainAxisAlignment.center, // Center items vertically 56 | children: NavigationItems.values 57 | .map((e) => buildNavigationButton(e)) 58 | .toList(), 59 | ) 60 | : Row( 61 | mainAxisAlignment: MainAxisAlignment.center, // Center items horizontally 62 | children: NavigationItems.values 63 | .map((e) => buildNavigationButton(e)) 64 | .toList(), 65 | ), 66 | ); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/widgets/profile_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:developer'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:udayah/widgets/category_box.dart'; 6 | 7 | import '../provider/auth.dart'; 8 | 9 | class ProfilePage extends StatefulWidget { 10 | const ProfilePage({super.key}); 11 | 12 | @override 13 | State createState() => _ProfilePageState(); 14 | } 15 | 16 | class _ProfilePageState extends State { 17 | @override 18 | Widget build(BuildContext context) { 19 | return Consumer( 20 | builder: (context, data, child) { 21 | log("User: ${data.user}"); 22 | if (data.user == null) { 23 | return const Center( 24 | child: CircularProgressIndicator(), 25 | ); 26 | } 27 | final photoURL = data.user?.photoURL; 28 | final displayName = data.user?.displayName; 29 | final email = data.user?.email; 30 | 31 | return CategoryBox( 32 | title: "Profile", 33 | crossAxisAlignment: CrossAxisAlignment.center, 34 | children: [ 35 | const SizedBox(height: 50), 36 | Row( 37 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 38 | children: [ 39 | Column( 40 | crossAxisAlignment: CrossAxisAlignment.start, 41 | children: [ 42 | const Text("Name"), 43 | Text( 44 | displayName ?? "User", 45 | style: const TextStyle( 46 | fontSize: 36, 47 | fontWeight: FontWeight.bold, 48 | ), 49 | ), 50 | const SizedBox(height: 10), 51 | const Text("Email"), 52 | Text( 53 | email ?? "No Email Provided", 54 | style: const TextStyle( 55 | fontSize: 36, 56 | fontWeight: FontWeight.bold, 57 | ), 58 | ), 59 | ], 60 | ), 61 | // Displays User Profile Picture if available other 62 | CircleAvatar( 63 | radius: 100, 64 | backgroundImage: 65 | photoURL != null ? NetworkImage(photoURL) : null, 66 | child: photoURL == null 67 | ? const Icon(Icons.person, size: 50) 68 | : null, 69 | ), 70 | ], 71 | ), 72 | const SizedBox(height: 20), 73 | ], 74 | ); 75 | }, 76 | ); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /lib/provider/companies.dart: -------------------------------------------------------------------------------- 1 | import 'dart:developer'; 2 | 3 | import 'package:cloud_firestore/cloud_firestore.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:udayah/data/constants.dart'; 6 | import 'package:udayah/encryption.dart'; 7 | import 'package:udayah/models/companies_list.dart'; 8 | import 'dart:convert'; 9 | import 'package:http/http.dart' as http; 10 | 11 | 12 | class CompaniesProvider with ChangeNotifier { 13 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 14 | List _emails = []; 15 | List _filteredEmails = []; 16 | bool _loading = true; 17 | String _selectedEmail = ''; 18 | bool _visible = false; 19 | bool get visible => _visible; 20 | String _addedBy = ''; 21 | 22 | String get addedBy => _addedBy; 23 | 24 | List get emails => _filteredEmails; 25 | bool get loading => _loading; 26 | String get selectedEmail => _selectedEmail; 27 | 28 | CompaniesProvider() { 29 | fetchEmails(); 30 | } 31 | selectEmailAddress(String val, bool visible, String added_by) { 32 | _addedBy = added_by; 33 | _visible = visible; 34 | _selectedEmail = val; 35 | notifyListeners(); 36 | } 37 | deselectEmailAddress() { 38 | _addedBy = ''; 39 | _visible = false; 40 | _selectedEmail = ''; 41 | notifyListeners(); 42 | } 43 | 44 | Future> fetchEmails() async { 45 | String apiUrl = '${baseUrl}/companies'; 46 | _loading = true; 47 | notifyListeners(); 48 | 49 | try { 50 | log("Fetching emails from: $apiUrl"); 51 | final response = await http.get(Uri.parse(apiUrl)); 52 | log("Response: ${response.body}"); 53 | log("Response Code: ${response.statusCode}"); 54 | if (response.statusCode == 200) { 55 | final data = jsonDecode(response.body); 56 | final decryptedData = 57 | EncryptionHelper.decrypt(data['encryptedData'], data['iv']); 58 | final jsonData = jsonDecode(decryptedData) as List; 59 | 60 | _emails = jsonData 61 | .map( 62 | (json) => CompaniesEmail.fromJson(json as Map)) 63 | .toList(); 64 | _filteredEmails = List.from(_emails); 65 | notifyListeners(); 66 | 67 | return _emails; 68 | } else { 69 | throw Exception('Failed to load emails..'); 70 | } 71 | } catch (e) { 72 | print("Error fetching emails: $e"); 73 | return []; // Return an empty list in case of an error 74 | } finally { 75 | _loading = false; 76 | notifyListeners(); 77 | } 78 | } 79 | 80 | void searchEmails(String query) { 81 | if (query.isEmpty) { 82 | _filteredEmails = List.from(_emails); 83 | } else { 84 | _filteredEmails = _emails.where((email) { 85 | return email.emailAddress.toLowerCase().contains(query.toLowerCase()); 86 | }).toList(); 87 | } 88 | notifyListeners(); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Udayah 2 | 3 | We invite all open-source enthusiasts to join us in building a free platform for job seekers. In a world where many services for resumes, job emails, and related resources often come at a cost, Udayah stands out as a free, open-source alternative. Whether it’s adding new features, reporting issues, or suggesting improvements, your contributions can help make Udayah a valuable resource for job seekers. 4 | 5 | Before contributing, kindly outline the use case, benefits, and goal of your proposed feature or changes. Together, let’s build something meaningful, accessible, and free for everyone! 6 | 7 | 8 | ## Tech Stack 9 | 10 | - **Frontend:** Flutter 11 | - **Backend:** Node.js, Firebase, Aws 12 | 13 | ## Local Setup 14 | 15 | ### Flutter Setup 16 | 17 | 1. Install Flutter version **3.19.6** by following the official [Flutter documentation](https://docs.flutter.dev/get-started/install). 18 | 2. Set up your own Firebase instance and link it to the project for in-app account creation, later we will setup with share Firebase account. 19 | 3. Navigate to the `lib/` folder within the Flutter project to begin development. 20 | 4. For more information on building for the web, refer to the [Flutter Web documentation](https://docs.flutter.dev/platform-integration/web/building). 21 | 5. To run the project in Chrome, execute the following command: 22 | ```bash 23 | flutter run -d chrome 24 | ``` 25 | 26 | ### Backend Setup 27 | 28 | 1. **Navigate to the `functions/` directory:** 29 | - This folder contains the backend logic for the project. 30 | 31 | 2. **Install dependencies:** 32 | - Run `npm install` to install all required dependencies. 33 | 34 | 3. **Environment Configuration:** 35 | - Copy the `.env.example` file and create a `.env` file in the `functions/` directory. 36 | - Define the `ENCRYPTION_KEY` in the `.env` file. Ensure that this key matches the one used in your Flutter application for encryption. 37 | - Define Database settings. 38 | 39 | 4. **Starting the Server:** 40 | - After configuring the `.env` file, run the server using the command `npm start`. 41 | 42 | ### Encryption Setup 43 | 44 | In the Flutter project, go to `lib/encryption.dart` and ensure that the encryption key matches the one defined in your `.env` file in the Node.js backend. The key can be set like this in Flutter: 45 | 46 | ```dart 47 | static final key = encrypt.Key.fromUtf8("your key"); // Ensure this is the same as in Node.js 48 | ``` 49 | 50 | ### Update Flutter API Endpoint 51 | 52 | In the Flutter project, navigate to `lib/data/constant.dart` and update the backend API endpoint to match your local or hosted server. 53 | 54 | ## Contributing 55 | 56 | - Please open an issue before submitting pull requests. 57 | - Clearly explain the use case, benefits, and goals for any new feature or fix. 58 | - Respect the coding standards and maintain consistency in the codebase. 59 | 60 | We look forward to your contributions! 61 | 62 | Happy coding! 63 | 64 | ## Support 65 | For any kind of support, please reach out to us at: Email: [udayah.in.reach@gmail.com](mailto:udayah.in.reach@gmail.com) 66 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /lib/pages/login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:go_router/go_router.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:udayah/provider/auth.dart'; 5 | import 'package:udayah/styles/fonts.dart'; 6 | import 'package:udayah/styles/styles.dart'; 7 | 8 | class LoginPage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | final authProvider = Provider.of(context); 12 | 13 | return Scaffold( 14 | backgroundColor: Colors.white, 15 | body: Container( 16 | height: MediaQuery.sizeOf(context).height, 17 | width: MediaQuery.sizeOf(context).width, 18 | decoration: Styles.brandingDecoration, 19 | child: Column( 20 | mainAxisAlignment: MainAxisAlignment.center, 21 | children: [ 22 | // Title Text with modern font and spacing 23 | SizedBox(height: 20), 24 | // Subtitle Text with subtle color 25 | Text( 26 | 'Welcome to Udayah', 27 | style: AppTextStyles.heading1, 28 | textAlign: TextAlign.center, 29 | ), 30 | Text( 31 | 'We’re excited to help you take the next step in your career. Happy job hunting!', 32 | style: AppTextStyles.regular, 33 | textAlign: TextAlign.center, 34 | ), 35 | SizedBox(height: 40), 36 | 37 | // Google Sign-In Button with modern design 38 | GestureDetector( 39 | onTap: () { 40 | authProvider.signInWithGoogle(context); 41 | // Handle Google Sign-In 42 | // GoRouter.of(context).go('/dashboard'); 43 | }, 44 | child: Container( 45 | width: 280, 46 | padding: EdgeInsets.symmetric(vertical: 16), 47 | decoration: BoxDecoration( 48 | color: Colors.white, 49 | borderRadius: BorderRadius.circular(20), 50 | border: Border.all(color: Colors.grey.shade300), 51 | 52 | ), 53 | child: Row( 54 | mainAxisAlignment: MainAxisAlignment.center, 55 | children: [ 56 | Image.asset( 57 | "assets/google-icon.png", 58 | height: 24, 59 | width: 23, 60 | ), 61 | SizedBox(width: 12), 62 | Text( 63 | 'Continue with Google', 64 | style: TextStyle( 65 | fontSize: 18, 66 | color: Colors.black87, 67 | fontWeight: FontWeight.w500, 68 | ), 69 | ), 70 | ], 71 | ), 72 | ), 73 | ), 74 | SizedBox(height: 10,), 75 | Text( 76 | 'By continuing, you agree to our Terms and Conditions and Privacy Policy.', 77 | style: AppTextStyles.lightItalic, 78 | textAlign: TextAlign.center, 79 | ), 80 | ], 81 | ), 82 | ), 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /functions/data/email.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "AUTO000001", 4 | "email_address": "test@in.ibm", 5 | "company_name": "NA", 6 | "website": "NA", 7 | "visible": true, 8 | "added_by": "Admin", 9 | "createdAt": "NA", 10 | "updatedAt": "NA" 11 | }, 12 | { 13 | "id": "AUTO000002", 14 | "email_address": "john.doe@example.com", 15 | "company_name": "Example Corp", 16 | "website": "www.example.com", 17 | "visible": true, 18 | "added_by": "Admin", 19 | "createdAt": "2024-01-15T10:00:00Z", 20 | "updatedAt": "2024-01-15T10:00:00Z" 21 | }, 22 | { 23 | "id": "AUTO000003", 24 | "email_address": "jane.smith@example.org", 25 | "company_name": "Smith Industries", 26 | "website": "www.smithindustries.org", 27 | "visible": false, 28 | "added_by": "User1", 29 | "createdAt": "2024-02-20T11:30:00Z", 30 | "updatedAt": "2024-02-20T11:30:00Z" 31 | }, 32 | { 33 | "id": "AUTO000004", 34 | "email_address": "alice.johnson@domain.com", 35 | "company_name": "Tech Innovations", 36 | "website": "www.techinnovations.com", 37 | "visible": true, 38 | "added_by": "User2", 39 | "createdAt": "2024-03-05T09:15:00Z", 40 | "updatedAt": "2024-03-05T09:15:00Z" 41 | }, 42 | { 43 | "id": "AUTO000005", 44 | "email_address": "bob.brown@service.net", 45 | "company_name": "Brown Services", 46 | "website": "www.brownservices.net", 47 | "visible": true, 48 | "added_by": "Admin", 49 | "createdAt": "2024-04-10T14:00:00Z", 50 | "updatedAt": "2024-04-10T14:00:00Z" 51 | }, 52 | { 53 | "id": "AUTO000006", 54 | "email_address": "charlie.white@business.com", 55 | "company_name": "White Enterprises", 56 | "website": "www.whiteenterprises.com", 57 | "visible": false, 58 | "added_by": "User3", 59 | "createdAt": "2024-05-12T16:45:00Z", 60 | "updatedAt": "2024-05-12T16:45:00Z" 61 | }, 62 | { 63 | "id": "AUTO000007", 64 | "email_address": "diana.prince@superhero.com", 65 | "company_name": "Wonder Corp", 66 | "website": "www.wondercorp.com", 67 | "visible": true, 68 | "added_by": "Admin", 69 | "createdAt": "2024-06-01T08:30:00Z", 70 | "updatedAt": "2024-06-01T08:30:00Z" 71 | }, 72 | { 73 | "id": "AUTO000008", 74 | "email_address": "bruce.wayne@batman.com", 75 | "company_name": "Wayne Enterprises", 76 | "website": "www.wayneenterprises.com", 77 | "visible": true, 78 | "added_by": "User4", 79 | "createdAt": "2024-07-07T10:00:00Z", 80 | "updatedAt": "2024-07-07T10:00:00Z" 81 | }, 82 | { 83 | "id": "AUTO000009", 84 | "email_address": "peter.parker@spiderman.org", 85 | "company_name": "Parker Industries", 86 | "website": "www.parkerindustries.org", 87 | "visible": false, 88 | "added_by": "User5", 89 | "createdAt": "2024-08-15T14:30:00Z", 90 | "updatedAt": "2024-08-15T14:30:00Z" 91 | }, 92 | { 93 | "id": "AUTO000010", 94 | "email_address": "clark.kent@dailyplanet.com", 95 | "company_name": "Daily Planet", 96 | "website": "www.dailyplanet.com", 97 | "visible": true, 98 | "added_by": "Admin", 99 | "createdAt": "2024-09-20T12:00:00Z", 100 | "updatedAt": "2024-09-20T12:00:00Z" 101 | } 102 | ] 103 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: udayah 2 | description: Udayah offers AI-powered tools to help job hunters create standout resumes, send personalized cold emails, and optimize applications with an AI ATS system. Take control of your job search with our innovative platform.. 3 | publish_to: 'none' 4 | version: 1.0.0+1 5 | environment: 6 | sdk: '>=3.3.0-279.3.beta <4.0.0' 7 | dependencies: 8 | flutter: 9 | sdk: flutter 10 | cupertino_icons: ^1.0.8 11 | provider: ^6.1.2 12 | go_router: ^14.3.0 13 | file_picker: ^8.1.2 14 | path_provider: ^2.1.4 15 | html_editor_enhanced: ^2.6.0 16 | http: ^1.2.2 17 | url_strategy: ^0.3.0 18 | firebase_auth: ^5.3.1 19 | firebase_core: ^3.6.0 20 | cloud_firestore: ^5.4.4 21 | shared_preferences: ^2.3.2 22 | firebase_storage: ^12.3.2 23 | url_launcher: ^6.3.0 24 | flutter_profile_picture: ^2.0.0 25 | encrypt: ^5.0.1 26 | pointycastle: ^3.4.1 27 | youtube_player_iframe: ^5.0.0 28 | flutter_launcher_icons: ^0.14.1 29 | cached_network_image: 30 | 31 | dev_dependencies: 32 | flutter_test: 33 | sdk: flutter 34 | flutter_lints: ^4.0.0 35 | 36 | flutter_launcher_icons: 37 | android: "launcher_icon" 38 | ios: true 39 | image_path: "assets/favicon.png" 40 | min_sdk_android: 21 # android min sdk min:16, default 21 41 | web: 42 | generate: true 43 | image_path: "assets/favicon.png" 44 | background_color: "#1C1C3A" 45 | theme_color: "#1C1C3A" 46 | macos: 47 | generate: true 48 | image_path: "assets/favicon.png" 49 | 50 | 51 | flutter: 52 | uses-material-design: true 53 | assets: 54 | - assets/card_logos/ 55 | - assets/astranaut.png 56 | - assets/logo.png 57 | - assets/ 58 | 59 | fonts: 60 | - family: Poppins 61 | fonts: 62 | - asset: assets/fonts/Poppins-Regular.ttf 63 | weight: 400 64 | - asset: assets/fonts/Poppins-Bold.ttf 65 | weight: 700 66 | - asset: assets/fonts/Poppins-Light.ttf 67 | weight: 300 68 | - asset: assets/fonts/Poppins-Italic.ttf 69 | style: italic 70 | - asset: assets/fonts/Poppins-BoldItalic.ttf 71 | weight: 700 72 | style: italic 73 | - asset: assets/fonts/Poppins-Black.ttf 74 | weight: 900 75 | - asset: assets/fonts/Poppins-BlackItalic.ttf 76 | weight: 900 77 | style: italic 78 | - asset: assets/fonts/Poppins-ExtraBold.ttf 79 | weight: 800 80 | - asset: assets/fonts/Poppins-ExtraBoldItalic.ttf 81 | weight: 800 82 | style: italic 83 | - asset: assets/fonts/Poppins-ExtraLight.ttf 84 | weight: 200 85 | - asset: assets/fonts/Poppins-ExtraLightItalic.ttf 86 | weight: 200 87 | style: italic 88 | - asset: assets/fonts/Poppins-Medium.ttf 89 | weight: 500 90 | - asset: assets/fonts/Poppins-MediumItalic.ttf 91 | weight: 500 92 | style: italic 93 | - asset: assets/fonts/Poppins-SemiBold.ttf 94 | weight: 600 95 | - asset: assets/fonts/Poppins-SemiBoldItalic.ttf 96 | weight: 600 97 | style: italic 98 | - asset: assets/fonts/Poppins-Thin.ttf 99 | weight: 100 100 | - asset: assets/fonts/Poppins-ThinItalic.ttf 101 | weight: 100 102 | style: italic 103 | -------------------------------------------------------------------------------- /functions/controllers/hrEmailController.js: -------------------------------------------------------------------------------- 1 | const HREmail = require('../models/HrEmail'); 2 | const { validationResult } = require('express-validator'); 3 | const { encrypt } = require('../encryption') 4 | const fs = require('fs'); 5 | const path = require('path'); 6 | ; 7 | 8 | const addHREmail = async (req, res) => { 9 | 10 | const { email_address, company_name, website, added_by } = req.body; 11 | 12 | try { 13 | 14 | const errors = validationResult(req); 15 | if (!errors.isEmpty()) { 16 | return res.status(400).json({ errors: errors.array() }); 17 | } 18 | 19 | // Check for duplicate email 20 | const existingEmail = await HREmail.findOne({ where: { email_address } }); 21 | 22 | if (existingEmail) { 23 | return res.status(409).json({ error: 'Email address already exists' }); 24 | } 25 | 26 | //add email to database 27 | const newHREmail = await HREmail.create({ 28 | email_address, 29 | company_name, 30 | website, 31 | added_by 32 | }); 33 | res.status(201).json({ success: "Thanks for your contribution", data: newHREmail}); 34 | } catch (error) { 35 | console.error('Error adding HR email:', error); 36 | res.status(500).json({ error: 'Failed to add HR email' }); 37 | } 38 | }; 39 | 40 | const fetchCompanies = async (req, res) => { 41 | 42 | try { 43 | 44 | const errors = validationResult(req); 45 | if (!errors.isEmpty()) { 46 | return res.status(400).json({ errors: errors.array() }); 47 | } 48 | 49 | const { company_id } = req.params; 50 | 51 | // Load email.json file 52 | const emailJsonPath = path.join(__dirname,'..', 'data', 'email.json'); 53 | let emailJsonData = []; 54 | 55 | try { 56 | const emailFile = fs.readFileSync(emailJsonPath, 'utf8'); 57 | emailJsonData = JSON.parse(emailFile); 58 | } catch (err) { 59 | console.error('Error reading email.json file:', err); 60 | } 61 | 62 | if (company_id) { 63 | //fetch the company with company_id 64 | const email = await HREmail.findByPk(company_id) 65 | if (!email) { 66 | return res.status(404).json({ message: 'email not found' }); 67 | } 68 | // Encrypt the single email 69 | const encryptedEmail = encrypt(JSON.stringify(email.toJSON())); // Encrypt the email object 70 | return res.status(200).json(encryptedEmail); 71 | } 72 | else { 73 | //fetch all companies from database 74 | const emails = await HREmail.findAll() 75 | const plainEmails = emails.map(email => email.toJSON()); 76 | 77 | //merge two both the emails list 78 | const combinedEmails = [...plainEmails, ...emailJsonData]; 79 | 80 | //encrypt the data 81 | const encryptedEmails = encrypt(JSON.stringify(combinedEmails)) 82 | res.status(200).json(encryptedEmails) 83 | } 84 | } catch (error) { 85 | console.error('Error while fetching companies:', error); 86 | res.status(500).json({ error: 'Failed to get companies data' }); 87 | } 88 | 89 | }; 90 | 91 | // Export the controller functions 92 | module.exports = { 93 | addHREmail, 94 | fetchCompanies, 95 | }; 96 | -------------------------------------------------------------------------------- /lib/widgets/category_box.dart: -------------------------------------------------------------------------------- 1 | import 'package:udayah/responsive.dart'; 2 | import 'package:udayah/styles/fonts.dart'; 3 | import 'package:udayah/styles/styles.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class CategoryBox extends StatelessWidget { 7 | final List children; 8 | final Widget? suffix; 9 | final String title; 10 | final CrossAxisAlignment? crossAxisAlignment; 11 | 12 | const CategoryBox({ 13 | super.key, 14 | this.suffix, 15 | required this.children, 16 | required this.title, 17 | this.crossAxisAlignment, 18 | }); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Container( 23 | decoration: BoxDecoration( 24 | color: Colors.white, 25 | borderRadius: Styles.defaultBorderRadius, 26 | ), 27 | child: Column( 28 | crossAxisAlignment: crossAxisAlignment ?? CrossAxisAlignment.start, 29 | children: [ 30 | // Responsive.isMobile(context) || Responsive.isTablet(context) 31 | // ? Flexible( 32 | // child: Container( 33 | // // padding: EdgeInsets.all(16), 34 | // color: Colors.redAccent, 35 | // child: Row( 36 | // mainAxisAlignment: MainAxisAlignment.center, 37 | // children: [ 38 | // Icon(Icons.warning, color: Colors.white), 39 | // SizedBox(width: 8), 40 | // Text( 41 | // "Please use a desktop for a better experience of \n Udayah. It will not work for tablet as of now.", 42 | // style: AppTextStyles.regular, 43 | // ), 44 | // ], 45 | // ), 46 | // ), 47 | // ) 48 | // : Container(), 49 | Padding( 50 | padding: EdgeInsets.all(Styles.defaultPadding), 51 | child: Row( 52 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 53 | children: [ 54 | Text( 55 | title, 56 | style: Responsive.isMobile(context) 57 | ? AppTextStyles.heading1BlackMobile 58 | : AppTextStyles.heading1Black, 59 | ), 60 | suffix ?? Container(), 61 | // ElevatedButton( 62 | // style: ElevatedButton.styleFrom( 63 | // backgroundColor: 64 | // Styles.brandBackgroundColor, // Set the background color 65 | // ), 66 | // onPressed: () { 67 | // showDialog( 68 | // context: context, 69 | // builder: (BuildContext context) { 70 | // return VideoPopup( 71 | // videoId: 72 | // 'kXHiIxx2atA'); // Replace with your YouTube video ID 73 | // }, 74 | // ); 75 | // }, 76 | // child: Text( 77 | // 'Discover How It Works', 78 | // style: AppTextStyles.regular, 79 | // ), 80 | // ), 81 | ], 82 | ), 83 | ), 84 | ...children, 85 | ], 86 | ), 87 | ); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "shippi" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "shippi" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "shippi.exe" "\0" 98 | VALUE "ProductName", "shippi" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /functions/docs/api.md: -------------------------------------------------------------------------------- 1 | ## Endpoints 2 | 3 | ### [POST] /api/add-hr-emails 4 | 5 | This endpoint allows you to add HR email addresses along with associated company information. 6 | 7 | ### Request Body 8 | 9 | The request body must be in JSON format and include the following fields: 10 | 11 | - **email_address** (string, required): The HR email address to be added. Must be a valid email format. 12 | - **company_name** (string, required): The name of the company associated with the HR email. 13 | - **website** (string, required): The company's website URL. Must be a valid URL. 14 | 15 | **Example Request Body**: 16 | 17 | ```json 18 | { 19 | "email_address": "hr@example.com", 20 | "company_name": "Example Company", 21 | "website": "https://example.com", 22 | "added_by": "user@example.com" 23 | } 24 | ``` 25 | 26 | ## Response (Success) 27 | 28 | - **Status Code**: `201 Created` 29 | - **Body**: 30 | ```json 31 | { 32 | "id": 1, 33 | "email_address": "hr@example.com", 34 | "company_name": "Example Company", 35 | "website": "https://example.com", 36 | "updatedAt": "2024-09-27T12:34:56.789Z", 37 | "createdAt": "2024-09-27T12:34:56.789Z" 38 | } 39 | ``` 40 | ## Response (Error) 41 | 42 | 43 | **Status Code**: `400 Bad Request` for validation errors 44 | 45 | **Example Request Body**: 46 | 47 | 48 | ```json 49 | { 50 | "email_address": "InvalidEmail.com", 51 | "company_name": "Example Company", 52 | "website": "https://example.com", 53 | "added_by": "user@example.com" 54 | } 55 | ``` 56 | 57 | **Response**: 58 | ```json 59 | { 60 | "errors": [ 61 | { 62 | "type": "field", 63 | "value": "InvalidEmail.com", 64 | "msg": "Must be a valid email address", 65 | "path": "email_address", 66 | "location": "body" 67 | } 68 | ] 69 | } 70 | ``` 71 | ## 72 | 73 | **Status Code**: `409 Bad Request` for duplicate emails 74 | 75 | ```json 76 | { 77 | "error": "Email address already exists" 78 | } 79 | ``` 80 | 81 | ### [GET] /api/companies/:company_id? 82 | 83 | 84 | ## Description 85 | 86 | Fetches company information from the database. 87 | The endpoint can return details for a specific company if the `company_id` is provided. If `company_id` is not provided, it returns a list of all companies. 88 | 89 | ## Parameters 90 | - **Optional Route Parameter:** 91 | - `company_id` (integer, optional): The unique identifier of the company. 92 | - **Validation**: Must be a positive integer greater than 0. 93 | - **Example**: 94 | - Valid: `1`, `5`, `100` 95 | - Invalid: `0`, `-1`, `abc` 96 | 97 | ## Request Example 98 | - To fetch all companies: 99 | ``` 100 | GET /api/companies 101 | ``` 102 | 103 | - To fetch company with id 2: 104 | ``` 105 | GET /api/companies/2 106 | ``` 107 | ## Response (Success) 108 | 109 | - **Status Code**: `200 ok` 110 | 111 | ```json 112 | { 113 | "iv": "K3YrDTOwrJaSJ4n0H1rjJg==", 114 | "encryptedData": "d0RZrXdNhdQadzIz9ratZWx/m6PvBxKpgK8M9E2bgnaLu7oKHHU3JpYdOr/dKFCD1apuq6xUUTlDQBTI2CW4RhrQe7GpRU8d8TSSbKfeW7qHhLAwlJKCmOMcBTZ8jMMSqrgFoyYIZvqpDPFTD8VsE2mi8y3sUOlCkuZWS7XXHnRSJseMTp4iHhak+LO0BH91vvec2DxrEKbDM1dvY80IYXfuOzBoar+PyKfli7iJbmVCYG9MObdTVi6peJptL4O7YayrXTWQ/aEcBYim6vVLU1NKBrpnMiorG2DceKTwGAVBnmI0xMk/5ndgIutTskFD" 115 | } 116 | ``` 117 | 118 | ## Response (Error) 119 | 120 | - **Status Code**: `400 Bad Request` 121 | 122 | ```json 123 | { 124 | "errors": [ 125 | { 126 | "type": "field", 127 | "value": "-25", 128 | "msg": "Company ID must be a positive integer", 129 | "path": "company_id", 130 | "location": "params" 131 | } 132 | ] 133 | } 134 | ``` 135 | 136 | - **Status Code**: `404 Not Found` 137 | 138 | ```json 139 | { 140 | "message": "email not found" 141 | } 142 | ``` -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates a win32 window with |title| that is positioned and sized using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size this function will scale the inputted width and height as 35 | // as appropriate for the default monitor. The window is invisible until 36 | // |Show| is called. Returns true if the window was created successfully. 37 | bool Create(const std::wstring& title, const Point& origin, const Size& size); 38 | 39 | // Show the current window. Returns true if the window was successfully shown. 40 | bool Show(); 41 | 42 | // Release OS resources associated with window. 43 | void Destroy(); 44 | 45 | // Inserts |content| into the window tree. 46 | void SetChildContent(HWND content); 47 | 48 | // Returns the backing Window handle to enable clients to set icon and other 49 | // window properties. Returns nullptr if the window has been destroyed. 50 | HWND GetHandle(); 51 | 52 | // If true, closing this window will quit the application. 53 | void SetQuitOnClose(bool quit_on_close); 54 | 55 | // Return a RECT representing the bounds of the current client area. 56 | RECT GetClientArea(); 57 | 58 | protected: 59 | // Processes and route salient window messages for mouse handling, 60 | // size change and DPI. Delegates handling of these to member overloads that 61 | // inheriting classes can handle. 62 | virtual LRESULT MessageHandler(HWND window, 63 | UINT const message, 64 | WPARAM const wparam, 65 | LPARAM const lparam) noexcept; 66 | 67 | // Called when CreateAndShow is called, allowing subclass window-related 68 | // setup. Subclasses should return false if setup fails. 69 | virtual bool OnCreate(); 70 | 71 | // Called when Destroy is called. 72 | virtual void OnDestroy(); 73 | 74 | private: 75 | friend class WindowClassRegistrar; 76 | 77 | // OS callback called by message pump. Handles the WM_NCCREATE message which 78 | // is passed when the non-client area is being created and enables automatic 79 | // non-client DPI scaling so that the non-client area automatically 80 | // responds to changes in DPI. All other messages are handled by 81 | // MessageHandler. 82 | static LRESULT CALLBACK WndProc(HWND const window, 83 | UINT const message, 84 | WPARAM const wparam, 85 | LPARAM const lparam) noexcept; 86 | 87 | // Retrieves a class instance pointer for |window| 88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 89 | 90 | // Update the window frame's theme to match the system theme. 91 | static void UpdateTheme(HWND const window); 92 | 93 | bool quit_on_close_ = false; 94 | 95 | // window handle for top level window. 96 | HWND window_handle_ = nullptr; 97 | 98 | // window handle for hosted content. 99 | HWND child_content_ = nullptr; 100 | }; 101 | 102 | #endif // RUNNER_WIN32_WINDOW_H_ 103 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /lib/pages/upgrade_pro_section.dart: -------------------------------------------------------------------------------- 1 | import 'package:udayah/responsive.dart'; 2 | import 'package:udayah/styles/styles.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class UpgradeProSection extends StatelessWidget { 6 | const UpgradeProSection({Key? key}) : super(key: key); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Container( 11 | decoration: BoxDecoration( 12 | color: Styles.defaultYellowColor, 13 | borderRadius: Styles.defaultBorderRadius, 14 | ), 15 | padding: EdgeInsets.symmetric(horizontal: Styles.defaultPadding), 16 | child: Row( 17 | children: [ 18 | Expanded( 19 | flex: 2, 20 | child: Column( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | FittedBox( 25 | fit: BoxFit.fitWidth, 26 | child: RichText( 27 | text: TextSpan( 28 | style: const TextStyle( 29 | fontWeight: FontWeight.bold, 30 | color: Colors.black, 31 | fontSize: 18, 32 | ), 33 | children: [ 34 | const TextSpan( 35 | text: "Upgrade your account to ", 36 | ), 37 | TextSpan( 38 | text: "PRO+", 39 | style: TextStyle( 40 | color: Styles.defaultRedColor, 41 | ), 42 | ) 43 | ], 44 | ), 45 | ), 46 | ), 47 | Visibility( 48 | visible: !Responsive.isMobile(context), 49 | child: Flexible( 50 | child: Padding( 51 | padding: const EdgeInsets.only(top: 10.0), 52 | child: RichText( 53 | text: TextSpan( 54 | style: const TextStyle( 55 | color: Colors.black, 56 | ), 57 | children: [ 58 | const TextSpan(text: "With a "), 59 | TextSpan( 60 | text: "PRO+ ", 61 | style: TextStyle( 62 | color: Styles.defaultRedColor, 63 | fontWeight: FontWeight.bold, 64 | ), 65 | ), 66 | const TextSpan( 67 | text: 68 | "account you get many additional and convenient features to control your finances.", 69 | ), 70 | ], 71 | ), 72 | ), 73 | ), 74 | ), 75 | ), 76 | ], 77 | ), 78 | ), 79 | Expanded( 80 | child: Padding( 81 | padding: const EdgeInsets.all(8.0), 82 | child: Align( 83 | alignment: Alignment.centerRight, 84 | child: Image.asset("assets/astranaut.png"), 85 | ), 86 | ), 87 | ), 88 | Expanded( 89 | child: Align( 90 | alignment: Alignment.centerRight, 91 | child: Container( 92 | decoration: const BoxDecoration( 93 | color: Colors.white, 94 | shape: BoxShape.circle, 95 | ), 96 | height: 50, 97 | width: 50, 98 | child: IconButton( 99 | icon: const Icon(Icons.chevron_right), 100 | onPressed: () {}, 101 | ), 102 | ), 103 | ), 104 | ), 105 | ], 106 | ), 107 | ); 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # Set fallback configurations for older versions of the flutter tool. 14 | if (NOT DEFINED FLUTTER_TARGET_PLATFORM) 15 | set(FLUTTER_TARGET_PLATFORM "windows-x64") 16 | endif() 17 | 18 | # === Flutter Library === 19 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 20 | 21 | # Published to parent scope for install step. 22 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 23 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 24 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 25 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 26 | 27 | list(APPEND FLUTTER_LIBRARY_HEADERS 28 | "flutter_export.h" 29 | "flutter_windows.h" 30 | "flutter_messenger.h" 31 | "flutter_plugin_registrar.h" 32 | "flutter_texture_registrar.h" 33 | ) 34 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 35 | add_library(flutter INTERFACE) 36 | target_include_directories(flutter INTERFACE 37 | "${EPHEMERAL_DIR}" 38 | ) 39 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 40 | add_dependencies(flutter flutter_assemble) 41 | 42 | # === Wrapper === 43 | list(APPEND CPP_WRAPPER_SOURCES_CORE 44 | "core_implementations.cc" 45 | "standard_codec.cc" 46 | ) 47 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 48 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 49 | "plugin_registrar.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 52 | list(APPEND CPP_WRAPPER_SOURCES_APP 53 | "flutter_engine.cc" 54 | "flutter_view_controller.cc" 55 | ) 56 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 57 | 58 | # Wrapper sources needed for a plugin. 59 | add_library(flutter_wrapper_plugin STATIC 60 | ${CPP_WRAPPER_SOURCES_CORE} 61 | ${CPP_WRAPPER_SOURCES_PLUGIN} 62 | ) 63 | apply_standard_settings(flutter_wrapper_plugin) 64 | set_target_properties(flutter_wrapper_plugin PROPERTIES 65 | POSITION_INDEPENDENT_CODE ON) 66 | set_target_properties(flutter_wrapper_plugin PROPERTIES 67 | CXX_VISIBILITY_PRESET hidden) 68 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 69 | target_include_directories(flutter_wrapper_plugin PUBLIC 70 | "${WRAPPER_ROOT}/include" 71 | ) 72 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 73 | 74 | # Wrapper sources needed for the runner. 75 | add_library(flutter_wrapper_app STATIC 76 | ${CPP_WRAPPER_SOURCES_CORE} 77 | ${CPP_WRAPPER_SOURCES_APP} 78 | ) 79 | apply_standard_settings(flutter_wrapper_app) 80 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 81 | target_include_directories(flutter_wrapper_app PUBLIC 82 | "${WRAPPER_ROOT}/include" 83 | ) 84 | add_dependencies(flutter_wrapper_app flutter_assemble) 85 | 86 | # === Flutter tool backend === 87 | # _phony_ is a non-existent file to force this command to run every time, 88 | # since currently there's no way to get a full input/output list from the 89 | # flutter tool. 90 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 91 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 92 | add_custom_command( 93 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 94 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 95 | ${CPP_WRAPPER_SOURCES_APP} 96 | ${PHONY_OUTPUT} 97 | COMMAND ${CMAKE_COMMAND} -E env 98 | ${FLUTTER_TOOL_ENVIRONMENT} 99 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 100 | ${FLUTTER_TARGET_PLATFORM} $ 101 | VERBATIM 102 | ) 103 | add_custom_target(flutter_assemble DEPENDS 104 | "${FLUTTER_LIBRARY}" 105 | ${FLUTTER_LIBRARY_HEADERS} 106 | ${CPP_WRAPPER_SOURCES_CORE} 107 | ${CPP_WRAPPER_SOURCES_PLUGIN} 108 | ${CPP_WRAPPER_SOURCES_APP} 109 | ) 110 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2024 Udayah.in 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | **AGPL-3.0 License Summary** 9 | 10 | This license is intended to guarantee your freedom to share and change all versions 11 | of a program to make sure it remains free software for all its users. The AGPL 12 | requires that any program that is modified and used to provide a service over a 13 | network must also be made available to the users of that service. 14 | 15 | **Terms and Conditions** 16 | 17 | 0. Definitions. 18 | 19 | This License applies to any program or other work which contains a notice placed 20 | by the copyright holder saying it can be distributed under the terms of this 21 | General Public License. The "Program," below, refers to any such program or work, 22 | and a "work based on the Program" means either the Program or any derivative work 23 | under copyright law: that is to say, a work containing the Program or a portion of 24 | it, either verbatim or with modifications and/or translated into another language. 25 | (Hereinafter, translation is included without limitation in the term "modification.") 26 | Each licensee is addressed as "you." 27 | 28 | "Copyright" also means copyright-like rights such as similar rights relating to 29 | data or database rights. 30 | 31 | "The Source Code" for a work means the preferred form of the work for making 32 | modifications to it. "Object Code" means any non-source form of a work. 33 | 34 | "You" means an individual or legal entity exercising permissions granted by this 35 | License. "License" means this document. 36 | 37 | 1. Source Code. 38 | 39 | The Program must include a copy of this License, and must be distributed along 40 | with the source code of the Program. If the Program is distributed in object code 41 | form, the corresponding source code must be made available under the same terms 42 | as the Program itself. 43 | 44 | 2. Fair Use. 45 | 46 | This License does not grant you permission to use the work for commercial purposes 47 | without proper authorization from the copyright holder. 48 | 49 | 3. Modified Versions. 50 | 51 | You may modify your copy or copies of the Program or any portion of it, thus 52 | forming a work based on the Program, and copy and distribute such modifications 53 | under the terms of this License, provided that you also meet all of these 54 | conditions: 55 | a) You must cause the modified files to carry prominent notices stating that 56 | you changed the files and the date of any change. 57 | b) You must license the entire work, as a whole, under this License to anyone 58 | who receives a copy. This License will therefore apply, along with the copyright, 59 | to the whole of the work, and all its parts. 60 | 61 | 4. Sharing via Network. 62 | 63 | You may also offer the Program as a service over a network. When you do this, you 64 | must offer the users of the service access to the source code of the Program under 65 | the terms of this License. 66 | 67 | 5. No Warranty. 68 | 69 | The Program is distributed without any warranty; without even the implied warranty 70 | of merchantability or fitness for a particular purpose. See the GNU General Public 71 | License for more details. 72 | 73 | 6. Acceptance. 74 | 75 | You must accept this License in order to use the Program. You may not use, copy, 76 | modify, or distribute the Program or any work based on it, except as expressly 77 | provided under this License. 78 | 79 | 7. Disclaimer of Warranty. 80 | 81 | There is no warranty for this software. Use at your own risk. 82 | 83 | 8. Termination. 84 | 85 | If you fail to comply with this License, your rights under this License will 86 | terminate automatically. 87 | 88 | 9. Additional Terms. 89 | 90 | You may not impose any further restrictions on the rights granted by this License. 91 | However, you may have additional agreements with other licensees as long as they 92 | do not contradict the terms of this License. 93 | 94 | 10. Copyleft. 95 | 96 | This License is designed to ensure that all derivative works remain free and open 97 | to the public. 98 | -------------------------------------------------------------------------------- /lib/widgets/contribute_dialog.dart: -------------------------------------------------------------------------------- 1 | // contribute_dialog.dart 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:udayah/models/hr_emails.dart'; 5 | import 'package:udayah/provider/hr_emails.dart'; 6 | import 'package:udayah/styles/fonts.dart'; 7 | import 'package:udayah/styles/styles.dart'; 8 | import 'package:udayah/validators/validator.dart'; 9 | import 'package:udayah/widgets/alerts.dart'; 10 | 11 | class ContributeDialog extends StatefulWidget { 12 | final String? addedBy; // Pass the added_by email 13 | 14 | const ContributeDialog({Key? key, required this.addedBy}) : super(key: key); 15 | 16 | @override 17 | _ContributeDialogState createState() => _ContributeDialogState(); 18 | } 19 | 20 | class _ContributeDialogState extends State { 21 | final _formKey = GlobalKey(); 22 | final TextEditingController _emailController = TextEditingController(); 23 | final TextEditingController _companyController = TextEditingController(); 24 | final TextEditingController _websiteController = TextEditingController(); 25 | 26 | void _submit(BuildContext context) async { 27 | if (_formKey.currentState!.validate()) { 28 | final provider = Provider.of(context, listen: false); 29 | final hrEmail = HrEmail( 30 | emailAddress: _emailController.text, 31 | companyName: _companyController.text, 32 | website: _websiteController.text, 33 | addedBy: widget.addedBy ?? "NA", 34 | ); 35 | 36 | try { 37 | await provider.addHrEmail(hrEmail); 38 | // ShowCustomDialog(context, "Email added successfully!"); 39 | // Show snackbar on success 40 | ScaffoldMessenger.of(context).showSnackBar( 41 | SnackBar( 42 | content: Text( 43 | "Thanks for your contribution !", 44 | style: AppTextStyles.regular, 45 | )), 46 | ); 47 | Navigator.of(context).pop(); 48 | } catch (e) { 49 | // Show snackbar on failure 50 | ShowCustomDialog(context, "Failed to add email: $e"); 51 | } 52 | } 53 | } 54 | 55 | @override 56 | Widget build(BuildContext context) { 57 | return Container( 58 | child: AlertDialog( 59 | backgroundColor: Styles.brandBackgroundColor, 60 | title: Text( 61 | 'Contribute HR Email', 62 | style: AppTextStyles.regular, 63 | ), 64 | content: Form( 65 | key: _formKey, 66 | child: SingleChildScrollView( 67 | child: Column( 68 | mainAxisSize: MainAxisSize.min, 69 | children: [ 70 | TextFormField( 71 | controller: _emailController, 72 | style: AppTextStyles.regular, 73 | decoration: InputDecoration( 74 | labelText: 'HR Email', 75 | labelStyle: AppTextStyles.regular, 76 | ), 77 | validator: Validators.validateEmail, 78 | ), 79 | TextFormField( 80 | controller: _companyController, 81 | style: AppTextStyles.regular, 82 | decoration: InputDecoration( 83 | labelText: 'Company Name', 84 | labelStyle: AppTextStyles.regular), 85 | validator: Validators.validateCompanyName, 86 | ), 87 | TextFormField( 88 | controller: _websiteController, 89 | style: AppTextStyles.regular, 90 | 91 | decoration: InputDecoration( 92 | labelText: 'Website(e.g. www.google.com)', labelStyle: AppTextStyles.regular), 93 | validator: Validators.validateWebsite, 94 | ), 95 | ], 96 | ), 97 | ), 98 | ), 99 | actions: [ 100 | TextButton( 101 | child: Text( 102 | 'Cancel', 103 | style: AppTextStyles.regular, 104 | ), 105 | onPressed: () { 106 | Navigator.of(context).pop(); 107 | }, 108 | ), 109 | TextButton( 110 | child: Text( 111 | 'Submit', 112 | style: AppTextStyles.regular, 113 | ), 114 | onPressed: () => _submit(context), 115 | ), 116 | ], 117 | ), 118 | ); 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.14) 3 | project(shippi LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "shippi") 8 | 9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 10 | # versions of CMake. 11 | cmake_policy(VERSION 3.14...3.25) 12 | 13 | # Define build configuration option. 14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 15 | if(IS_MULTICONFIG) 16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 17 | CACHE STRING "" FORCE) 18 | else() 19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 20 | set(CMAKE_BUILD_TYPE "Debug" CACHE 21 | STRING "Flutter build mode" FORCE) 22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 23 | "Debug" "Profile" "Release") 24 | endif() 25 | endif() 26 | # Define settings for the Profile build mode. 27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 31 | 32 | # Use Unicode for all projects. 33 | add_definitions(-DUNICODE -D_UNICODE) 34 | 35 | # Compilation settings that should be applied to most targets. 36 | # 37 | # Be cautious about adding new options here, as plugins use this function by 38 | # default. In most cases, you should add new options to specific targets instead 39 | # of modifying this function. 40 | function(APPLY_STANDARD_SETTINGS TARGET) 41 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 43 | target_compile_options(${TARGET} PRIVATE /EHsc) 44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 46 | endfunction() 47 | 48 | # Flutter library and tool build rules. 49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 50 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 51 | 52 | # Application build; see runner/CMakeLists.txt. 53 | add_subdirectory("runner") 54 | 55 | 56 | # Generated plugin build rules, which manage building the plugins and adding 57 | # them to the application. 58 | include(flutter/generated_plugins.cmake) 59 | 60 | 61 | # === Installation === 62 | # Support files are copied into place next to the executable, so that it can 63 | # run in place. This is done instead of making a separate bundle (as on Linux) 64 | # so that building and running from within Visual Studio will work. 65 | set(BUILD_BUNDLE_DIR "$") 66 | # Make the "install" step default, as it's required to run. 67 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 68 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 69 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 70 | endif() 71 | 72 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 73 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 74 | 75 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 76 | COMPONENT Runtime) 77 | 78 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 79 | COMPONENT Runtime) 80 | 81 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 82 | COMPONENT Runtime) 83 | 84 | if(PLUGIN_BUNDLED_LIBRARIES) 85 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 86 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 87 | COMPONENT Runtime) 88 | endif() 89 | 90 | # Copy the native assets provided by the build.dart from all packages. 91 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") 92 | install(DIRECTORY "${NATIVE_ASSETS_DIR}" 93 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 94 | COMPONENT Runtime) 95 | 96 | # Fully re-copy the assets directory on each build to avoid having stale files 97 | # from a previous install. 98 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 99 | install(CODE " 100 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 101 | " COMPONENT Runtime) 102 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 103 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 104 | 105 | # Install the AOT library on non-Debug builds only. 106 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 107 | CONFIGURATIONS Profile;Release 108 | COMPONENT Runtime) 109 | -------------------------------------------------------------------------------- /linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen* screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "shippi"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "shippi"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GApplication::startup. 85 | static void my_application_startup(GApplication* application) { 86 | //MyApplication* self = MY_APPLICATION(object); 87 | 88 | // Perform any actions required at application startup. 89 | 90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application); 91 | } 92 | 93 | // Implements GApplication::shutdown. 94 | static void my_application_shutdown(GApplication* application) { 95 | //MyApplication* self = MY_APPLICATION(object); 96 | 97 | // Perform any actions required at application shutdown. 98 | 99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); 100 | } 101 | 102 | // Implements GObject::dispose. 103 | static void my_application_dispose(GObject* object) { 104 | MyApplication* self = MY_APPLICATION(object); 105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 107 | } 108 | 109 | static void my_application_class_init(MyApplicationClass* klass) { 110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup; 113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; 114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 115 | } 116 | 117 | static void my_application_init(MyApplication* self) {} 118 | 119 | MyApplication* my_application_new() { 120 | return MY_APPLICATION(g_object_new(my_application_get_type(), 121 | "application-id", APPLICATION_ID, 122 | "flags", G_APPLICATION_NON_UNIQUE, 123 | nullptr)); 124 | } 125 | -------------------------------------------------------------------------------- /lib/styles/fonts.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | // Define TextStyles for Poppins fonts 4 | class AppTextStyles { 5 | // Headings 6 | static const TextStyle heading1 = TextStyle( 7 | fontFamily: 'Poppins', 8 | fontWeight: FontWeight.bold, 9 | color: Colors.white, 10 | fontSize: 32, 11 | ); 12 | static const TextStyle heading1Black = TextStyle( 13 | fontFamily: 'Poppins', 14 | fontWeight: FontWeight.bold, 15 | color: Colors.black, 16 | fontSize: 32, 17 | ); 18 | static const TextStyle heading1BlackMobile = TextStyle( 19 | fontFamily: 'Poppins', 20 | fontWeight: FontWeight.bold, 21 | color: Colors.black, 22 | fontSize: 26, 23 | ); 24 | static const TextStyle heading2 = TextStyle( 25 | fontFamily: 'Poppins', 26 | fontWeight: FontWeight.bold, 27 | color: Colors.white, 28 | fontSize: 28, 29 | ); 30 | 31 | static const TextStyle heading3 = TextStyle( 32 | fontFamily: 'Poppins', 33 | fontWeight: FontWeight.bold, 34 | color: Colors.white, 35 | fontSize: 24, 36 | ); 37 | 38 | static const TextStyle heading4 = TextStyle( 39 | fontFamily: 'Poppins', 40 | fontWeight: FontWeight.bold, 41 | color: Colors.white, 42 | fontSize: 20, 43 | ); 44 | 45 | static const TextStyle heading5 = TextStyle( 46 | fontFamily: 'Poppins', 47 | fontWeight: FontWeight.bold, 48 | color: Colors.white, 49 | fontSize: 18, 50 | ); 51 | 52 | static const TextStyle heading6 = TextStyle( 53 | fontFamily: 'Poppins', 54 | fontWeight: FontWeight.bold, 55 | color: Colors.white, 56 | fontSize: 16, 57 | ); 58 | 59 | // Regular Styles 60 | static const TextStyle regular = TextStyle( 61 | fontFamily: 'Poppins', 62 | fontWeight: FontWeight.normal, 63 | color: Colors.white, 64 | fontSize: 16, 65 | ); 66 | 67 | // Regular Styles 68 | static const TextStyle regularBlack = TextStyle( 69 | fontFamily: 'Poppins', 70 | fontWeight: FontWeight.normal, 71 | color: Colors.black, 72 | fontSize: 16, 73 | ); 74 | static const TextStyle light = TextStyle( 75 | fontFamily: 'Poppins', 76 | fontWeight: FontWeight.w300, 77 | color: Colors.white, 78 | fontSize: 16, 79 | ); 80 | 81 | static const TextStyle thin = TextStyle( 82 | fontFamily: 'Poppins', 83 | fontWeight: FontWeight.w100, 84 | color: Colors.white, 85 | fontSize: 16, 86 | ); 87 | 88 | static const TextStyle medium = TextStyle( 89 | fontFamily: 'Poppins', 90 | fontWeight: FontWeight.w500, 91 | color: Colors.white, 92 | fontSize: 16, 93 | ); 94 | 95 | static const TextStyle semiBold = TextStyle( 96 | fontFamily: 'Poppins', 97 | fontWeight: FontWeight.w600, 98 | color: Colors.white, 99 | fontSize: 16, 100 | ); 101 | 102 | static const TextStyle bold = TextStyle( 103 | fontFamily: 'Poppins', 104 | fontWeight: FontWeight.bold, 105 | color: Colors.white, 106 | fontSize: 16, 107 | ); 108 | 109 | static const TextStyle extraBold = TextStyle( 110 | fontFamily: 'Poppins', 111 | fontWeight: FontWeight.w800, 112 | color: Colors.white, 113 | fontSize: 16, 114 | ); 115 | 116 | static const TextStyle black = TextStyle( 117 | fontFamily: 'Poppins', 118 | fontWeight: FontWeight.w900, 119 | color: Colors.white, 120 | fontSize: 16, 121 | ); 122 | 123 | // Italic Styles 124 | static const TextStyle italic = TextStyle( 125 | fontFamily: 'Poppins', 126 | fontStyle: FontStyle.italic, 127 | color: Colors.white, 128 | fontWeight: FontWeight.normal, 129 | fontSize: 16, 130 | ); 131 | 132 | static const TextStyle lightItalic = TextStyle( 133 | fontFamily: 'Poppins', 134 | fontStyle: FontStyle.italic, 135 | color: Colors.white, 136 | fontWeight: FontWeight.w300, 137 | fontSize: 16, 138 | ); 139 | 140 | static const TextStyle thinItalic = TextStyle( 141 | fontFamily: 'Poppins', 142 | fontStyle: FontStyle.italic, 143 | color: Colors.white, 144 | fontWeight: FontWeight.w100, 145 | fontSize: 16, 146 | ); 147 | 148 | static const TextStyle mediumItalic = TextStyle( 149 | fontFamily: 'Poppins', 150 | fontStyle: FontStyle.italic, 151 | fontWeight: FontWeight.w500, 152 | color: Colors.white, 153 | fontSize: 16, 154 | ); 155 | 156 | static const TextStyle semiBoldItalic = TextStyle( 157 | fontFamily: 'Poppins', 158 | fontStyle: FontStyle.italic, 159 | color: Colors.white, 160 | fontWeight: FontWeight.w600, 161 | fontSize: 16, 162 | ); 163 | 164 | static const TextStyle boldItalic = TextStyle( 165 | fontFamily: 'Poppins', 166 | fontStyle: FontStyle.italic, 167 | fontWeight: FontWeight.bold, 168 | color: Colors.white, 169 | fontSize: 16, 170 | ); 171 | 172 | static const TextStyle extraBoldItalic = TextStyle( 173 | fontFamily: 'Poppins', 174 | fontStyle: FontStyle.italic, 175 | color: Colors.white, 176 | fontWeight: FontWeight.w800, 177 | fontSize: 16, 178 | ); 179 | 180 | static const TextStyle blackItalic = TextStyle( 181 | fontFamily: 'Poppins', 182 | fontStyle: FontStyle.italic, 183 | color: Colors.white, 184 | fontWeight: FontWeight.w900, 185 | fontSize: 16, 186 | ); 187 | } 188 | --------------------------------------------------------------------------------