├── lib
├── core
│ ├── constants
│ │ ├── app_strings.dart
│ │ ├── app_contants.dart
│ │ ├── app_routes.dart
│ │ ├── theme
│ │ │ ├── dark_theme
│ │ │ │ └── dark_theme.dart
│ │ │ ├── light_theme
│ │ │ │ └── light_theme.dart
│ │ │ └── base_theme
│ │ │ │ └── base_theme.dart
│ │ ├── app_images.dart
│ │ └── app_icons.dart
│ ├── extensions
│ │ ├── sizer.dart
│ │ ├── date.dart
│ │ ├── platform.dart
│ │ ├── space.dart
│ │ └── theme.dart
│ ├── configs
│ │ ├── getX
│ │ │ ├── base_controller.dart
│ │ │ ├── init_controllers.dart
│ │ │ └── page_routes.dart
│ │ └── cache
│ │ │ └── cache.dart
│ └── utils
│ │ ├── error
│ │ └── firebase_error_handler.dart
│ │ └── snack_bar
│ │ └── show_custom_snack_bar.dart
├── modules
│ ├── base_page
│ │ ├── infra
│ │ │ └── datasources
│ │ │ │ └── base_page_controller.dart
│ │ └── presenter
│ │ │ └── base_page.dart
│ ├── notification
│ │ ├── infra
│ │ │ ├── datasources
│ │ │ │ └── notification_screen_controller.dart
│ │ │ └── models
│ │ │ │ └── notification_card.dart
│ │ └── presenter
│ │ │ ├── widgets
│ │ │ ├── title.dart
│ │ │ ├── card_avatar.dart
│ │ │ ├── header.dart
│ │ │ └── info.dart
│ │ │ └── notifications_screen.dart
│ ├── home
│ │ ├── presenter
│ │ │ ├── widgets
│ │ │ │ ├── loading_widget.dart
│ │ │ │ ├── post
│ │ │ │ │ ├── post_image.dart
│ │ │ │ │ ├── post_header.dart
│ │ │ │ │ ├── post_bottom.dart
│ │ │ │ │ └── post.dart
│ │ │ │ ├── home_header.dart
│ │ │ │ ├── tab_bar_widget.dart
│ │ │ │ └── tab_category_model.dart
│ │ │ └── home_screen.dart
│ │ └── infra
│ │ │ └── datasources
│ │ │ └── user_controller.dart
│ ├── category
│ │ └── infra
│ │ │ ├── datasources
│ │ │ └── category_controller.dart
│ │ │ └── models
│ │ │ ├── category_header.dart
│ │ │ └── discover_box_model.dart
│ ├── base
│ │ ├── infra
│ │ │ └── datasources
│ │ │ │ └── base_screen_controller.dart
│ │ └── presenter
│ │ │ └── base_screen.dart
│ ├── boarding
│ │ └── presenter
│ │ │ └── boarding_screen.dart
│ ├── splash
│ │ ├── presenter
│ │ │ ├── widgets
│ │ │ │ ├── splash_text.dart
│ │ │ │ └── splash_square_image.dart
│ │ │ └── splash_screen.dart
│ │ └── infra
│ │ │ ├── models
│ │ │ └── centered_image_design.dart
│ │ │ └── datasources
│ │ │ └── splash_screen_controller.dart
│ └── profile
│ │ └── profile_screen.dart
├── entities
│ ├── notification.dart
│ ├── peer.dart
│ ├── person.dart
│ ├── post.dart
│ └── user.dart
├── models
│ ├── avatar_model.dart
│ ├── settings_icon.dart
│ ├── highlighted_action_text.dart
│ ├── custom_common_button.dart
│ ├── custom_search_box.dart
│ └── custom_input_form_field.dart
└── main.dart
├── linux
├── .gitignore
├── main.cc
├── flutter
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
└── my_application.h
├── 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-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.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
│ ├── 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
│ │ │ └── swiftpm
│ │ │ └── Package.resolved
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
├── GoogleService-Info.plist
└── Podfile
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── send_post_app
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── assets
├── images
│ ├── background.png
│ ├── dummy_photo.png
│ ├── dummy_avatar.png
│ ├── dummy_photo_2.png
│ ├── dummy_photo_3.png
│ ├── dummy_avatar_2.png
│ ├── dummy_post_image.png
│ ├── light_background.png
│ ├── dummy_post_image_2.png
│ ├── header_background.png
│ ├── dummy_designer_photo.png
│ ├── dummy_ui_design_photo.png
│ ├── rectangle_box_cover.png
│ ├── dummy_illustrator_photo.png
│ ├── dummy_making_video_photo.png
│ ├── dummy_photographer_photo.png
│ ├── dummy_photographer_photo_2.png
│ └── dummy_video_creator_photo.png
├── fonts
│ └── Montserrat-Regular.ttf
└── icons
│ ├── ic_arrow_right.svg
│ ├── ic_arrow_left.svg
│ ├── ic_back_arrow.svg
│ ├── ic_send.svg
│ ├── ic_facebook.svg
│ ├── ic_cancel.svg
│ ├── ic_log_out.svg
│ ├── ic_show.svg
│ ├── ic_home.svg
│ ├── ic_facebook_filled.svg
│ ├── ic_delete.svg
│ ├── ic_search.svg
│ ├── ic_edit.svg
│ ├── ic_profile.svg
│ ├── ic_global.svg
│ ├── ic_filter.svg
│ ├── ic_hide.svg
│ ├── ic_gallery.svg
│ ├── ic_send_filled.svg
│ ├── ic_notification.svg
│ ├── ic_heart.svg
│ ├── ic_category_filled.svg
│ ├── ic_add_circle.svg
│ ├── ic_upload.svg
│ ├── ic_profile_filled.svg
│ ├── ic_home_filled.svg
│ ├── ic_camera.svg
│ ├── ic_notification_filled.svg
│ ├── ic_settings.svg
│ ├── ic_chat.svg
│ ├── ic_category.svg
│ └── ic_instagram.svg
├── macos
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ ├── app_icon_1024.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ └── 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
└── Podfile
├── 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
├── .gitignore
└── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ └── generated_plugins.cmake
├── .gitignore
├── pubspec.yaml
├── test
└── widget_test.dart
├── analysis_options.yaml
├── .metadata
└── README.md
/lib/core/constants/app_strings.dart:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/assets/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/background.png
--------------------------------------------------------------------------------
/assets/images/dummy_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_photo.png
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/images/dummy_avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_avatar.png
--------------------------------------------------------------------------------
/assets/images/dummy_photo_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_photo_2.png
--------------------------------------------------------------------------------
/assets/images/dummy_photo_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_photo_3.png
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/assets/images/dummy_avatar_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_avatar_2.png
--------------------------------------------------------------------------------
/assets/images/dummy_post_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_post_image.png
--------------------------------------------------------------------------------
/assets/images/light_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/light_background.png
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/assets/fonts/Montserrat-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/fonts/Montserrat-Regular.ttf
--------------------------------------------------------------------------------
/assets/images/dummy_post_image_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_post_image_2.png
--------------------------------------------------------------------------------
/assets/images/header_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/header_background.png
--------------------------------------------------------------------------------
/assets/images/dummy_designer_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_designer_photo.png
--------------------------------------------------------------------------------
/assets/images/dummy_ui_design_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_ui_design_photo.png
--------------------------------------------------------------------------------
/assets/images/rectangle_box_cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/rectangle_box_cover.png
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/assets/images/dummy_illustrator_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_illustrator_photo.png
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/images/dummy_making_video_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_making_video_photo.png
--------------------------------------------------------------------------------
/assets/images/dummy_photographer_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_photographer_photo.png
--------------------------------------------------------------------------------
/assets/images/dummy_photographer_photo_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_photographer_photo_2.png
--------------------------------------------------------------------------------
/assets/images/dummy_video_creator_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/assets/images/dummy_video_creator_photo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.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 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/lib/modules/base_page/infra/datasources/base_page_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/core/configs/getX/base_controller.dart';
2 |
3 | class BasePageController extends BaseController {}
4 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/batuhanozkandev/send-post-app/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/batuhanozkandev/send-post-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/lib/entities/notification.dart:
--------------------------------------------------------------------------------
1 | class Notification {
2 | final String? title;
3 | final String? avatarUrl;
4 |
5 | Notification(
6 | this.title,
7 | this.avatarUrl,
8 | );
9 | }
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/send_post_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.send_post_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/lib/modules/notification/infra/datasources/notification_screen_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/core/configs/getX/base_controller.dart';
2 |
3 | class NotificationScreenController extends BaseController {}
4 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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 |
10 | void fl_register_plugins(FlPluginRegistry* registry) {
11 | }
12 |
--------------------------------------------------------------------------------
/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.5-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 |
--------------------------------------------------------------------------------
/assets/icons/ic_arrow_right.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/assets/icons/ic_arrow_left.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/core/constants/app_contants.dart:
--------------------------------------------------------------------------------
1 | class AppConstants {
2 | // common field
3 | static const double commonFieldHeight = 10;
4 | static const double commonFieldWidth = 80;
5 |
6 | // search box
7 | static const double commonSearchBoxHeight = 5;
8 | static const double commonSearchBoxWidth = 80;
9 | }
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/icons/ic_back_arrow.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
11 | void RegisterPlugins(flutter::PluginRegistry* registry) {
12 | FirebaseCorePluginCApiRegisterWithRegistrar(
13 | registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
14 | }
15 |
--------------------------------------------------------------------------------
/lib/core/constants/app_routes.dart:
--------------------------------------------------------------------------------
1 | class AppRoutes {
2 | static const String boarding = '/boarding';
3 | static const String logIn = '/logIn';
4 | static const String signUp = '/signUp';
5 | static const String home = '/home';
6 | static const String profile = '/profile';
7 | static const String category = '/category';
8 | static const String base = '/base';
9 | static const String notification = '/notification';
10 | }
11 |
--------------------------------------------------------------------------------
/assets/icons/ic_send.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
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.init()
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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/icons/ic_facebook.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/assets/icons/ic_cancel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/core/extensions/sizer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | extension BuildContextEntension on BuildContext {
4 | // size
5 | double get width => MediaQuery.of(this).size.width;
6 |
7 | double get height => MediaQuery.of(this).size.height;
8 |
9 | Size get size => MediaQuery.of(this).size;
10 |
11 | double heightOfScreen(double value) =>
12 | (MediaQuery.of(this).size.height * value) / 100;
13 |
14 | double widthOfScreen(double value) =>
15 | (MediaQuery.of(this).size.width * value) / 100;
16 | }
17 |
--------------------------------------------------------------------------------
/lib/entities/peer.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/entities/person.dart';
2 |
3 | class Peer extends Person {
4 | final bool? isLikedByMe;
5 | final bool? isFollowedByMe;
6 |
7 | Peer({
8 | super.name,
9 | super.uID,
10 | super.userName,
11 | super.email,
12 | super.followerCount,
13 | super.followingCount,
14 | super.likes,
15 | super.interestedInTopics,
16 | super.posts,
17 | super.avatarUrl,
18 | super.isBanned,
19 | this.isLikedByMe,
20 | this.isFollowedByMe,
21 | });
22 | }
23 |
--------------------------------------------------------------------------------
/lib/modules/home/presenter/widgets/loading_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | class LoadingWidget extends StatelessWidget {
5 | const LoadingWidget({
6 | super.key,
7 | });
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | color: Colors.red,
13 | height: Get.height,
14 | width: Get.width,
15 | child: const Center(
16 | child: CircularProgressIndicator(),
17 | ),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/modules/category/infra/datasources/category_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/configs/getX/base_controller.dart';
3 |
4 | class CategoryController extends BaseController {
5 | TextEditingController searchTextController = TextEditingController();
6 |
7 | @override
8 | void dispose() {
9 | searchTextController.dispose();
10 | super.dispose();
11 | }
12 |
13 | @override
14 | void onInit() {
15 | builderId = 'categoryScreen';
16 | super.onInit();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/assets/icons/ic_log_out.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/core/extensions/date.dart:
--------------------------------------------------------------------------------
1 | extension CalculateShareTimeX on DateTime {
2 | String calculate() {
3 | DateTime now = DateTime.now();
4 | int dayDifference = now.day - day;
5 | int hourDifference = now.hour - hour;
6 | int minuteDifference = now.minute - minute;
7 | if (dayDifference > 0) return '${dayDifference.toString()} days ago';
8 | if (hourDifference > 0) return '${hourDifference.toString()} hours ago';
9 | if (minuteDifference > 0)
10 | return '${minuteDifference.toString()} minutes ago';
11 | return 'null';
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/lib/core/configs/getX/base_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 |
3 | class BaseController extends GetxController {
4 | String? builderId;
5 | String? errorMessage;
6 | bool isLoading = false;
7 | bool isError = false;
8 |
9 | void updateState({
10 | String? builderId,
11 | String? errorMessage = '',
12 | bool isLoading = false,
13 | bool isError = false,
14 | }) {
15 | this.errorMessage = errorMessage;
16 | this.isLoading = isLoading;
17 | this.isError = isError;
18 | update([builderId ?? this.builderId!]);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/modules/notification/presenter/widgets/title.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/extensions/theme.dart';
3 |
4 | class NotificationScreenTitle extends StatelessWidget {
5 | const NotificationScreenTitle({
6 | super.key,
7 | required this.title,
8 | });
9 |
10 | final String title;
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return Text(
15 | title,
16 | style: context.titleLarge?.copyWith(
17 | fontWeight: FontWeight.bold,
18 | ),
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/modules/home/presenter/widgets/post/post_image.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../../../../../core/constants/app_images.dart';
4 |
5 | class PostImage extends StatelessWidget {
6 | const PostImage({
7 | super.key,
8 | this.postImagePath,
9 | });
10 |
11 | final String? postImagePath;
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return SizedBox(
16 | width: double.infinity,
17 | child: Image.asset(
18 | postImagePath ?? AppImages.dummyPostImage,
19 | fit: BoxFit.cover,
20 | ));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lib/modules/notification/presenter/widgets/card_avatar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../../../../core/constants/app_images.dart';
4 | import '../../../../models/avatar_model.dart';
5 |
6 | class NotificationCardAvatar extends StatelessWidget {
7 | const NotificationCardAvatar({
8 | super.key,
9 | this.url,
10 | });
11 |
12 | final String? url;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Column(
17 | children: [
18 | AvatarModel(
19 | url: url ?? AppImages.dummyAvatar2,
20 | ),
21 | ],
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/models/avatar_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../core/constants/app_images.dart';
4 |
5 | class AvatarModel extends StatelessWidget {
6 | const AvatarModel({
7 | super.key,
8 | this.url,
9 | this.radius,
10 | });
11 |
12 | final String? url;
13 | final double? radius;
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return CircleAvatar(
18 | foregroundImage: AssetImage(
19 | //post.owner?.avatarUrl ?? AppImages.dummyAvatar,
20 | url ?? AppImages.dummyAvatar,
21 | ),
22 | radius: radius ?? 20,
23 | );
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/assets/icons/ic_show.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/models/settings_icon.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 | import 'package:send_post_app/core/extensions/sizer.dart';
4 |
5 | import '../core/constants/app_icons.dart';
6 |
7 | class SettingsIcon extends StatelessWidget {
8 | const SettingsIcon({
9 | super.key,
10 | this.onTap,
11 | });
12 |
13 | final void Function()? onTap;
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return GestureDetector(
18 | onTap: onTap ?? () {},
19 | child: SvgPicture.asset(
20 | AppIcons.settings,
21 | height: context.widthOfScreen(7),
22 | ),
23 | );
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/assets/icons/ic_home.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 = send_post_app
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.sendPostApp
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/assets/icons/ic_facebook_filled.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/icons/ic_delete.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/core/extensions/platform.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | extension PlatformExtension on BuildContext {
4 | // platforms
5 | bool get isMobile => MediaQuery.of(this).size.width <= 500.0;
6 |
7 | bool get isTablet =>
8 | MediaQuery.of(this).size.width < 1024.0 &&
9 | MediaQuery.of(this).size.width >= 650.0;
10 |
11 | bool get isSmallTablet =>
12 | MediaQuery.of(this).size.width < 650.0 &&
13 | MediaQuery.of(this).size.width > 500.0;
14 |
15 | bool get isDesktop => MediaQuery.of(this).size.width >= 1024.0;
16 |
17 | bool get isSmall =>
18 | MediaQuery.of(this).size.width < 850.0 &&
19 | MediaQuery.of(this).size.width >= 560.0;
20 | }
21 |
--------------------------------------------------------------------------------
/lib/modules/base/infra/datasources/base_screen_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:send_post_app/core/configs/getX/base_controller.dart';
3 |
4 | class BaseScreenController extends BaseController {
5 | PageController baseScreenPageController = PageController();
6 |
7 | int activePageIndex = 0;
8 |
9 | Future changeScreen(
10 | int index,
11 | ) async {
12 | updateState();
13 | activePageIndex = index;
14 | baseScreenPageController.jumpToPage(
15 | activePageIndex,
16 | );
17 | updateState();
18 | }
19 |
20 | @override
21 | void onInit() {
22 | builderId = 'baseScreen';
23 | super.onInit();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/assets/icons/ic_search.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/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 path_provider_foundation
12 |
13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
14 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
15 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
16 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
17 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
18 | }
19 |
--------------------------------------------------------------------------------
/assets/icons/ic_edit.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/icons/ic_profile.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/modules/notification/presenter/widgets/header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/modules/notification/presenter/widgets/title.dart';
3 |
4 | import '../../../../models/settings_icon.dart';
5 |
6 | class NotificationScreenHeader extends StatelessWidget {
7 | const NotificationScreenHeader({
8 | super.key,
9 | });
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Row(
14 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
15 | crossAxisAlignment: CrossAxisAlignment.end,
16 | children: [
17 | // title
18 | const NotificationScreenTitle(title: 'Activity'),
19 | // settings icons
20 | SettingsIcon(
21 | onTap: () {},
22 | ),
23 | ],
24 | );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/core/constants/theme/dark_theme/dark_theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../base_theme/base_theme.dart';
4 |
5 | class DarkTheme extends BaseTheme {
6 | final darkTheme = ThemeData(
7 | primaryColorLight: BaseTheme.primaryLight,
8 | colorScheme: const ColorScheme(
9 | brightness: Brightness.light,
10 | primary: BaseTheme.primaryLight,
11 | onPrimary: BaseTheme.primaryLight,
12 | secondary: BaseTheme.secondary,
13 | onSecondary: BaseTheme.secondary,
14 | error: BaseTheme.error,
15 | onError: BaseTheme.error,
16 | background: BaseTheme.background,
17 | onBackground: BaseTheme.background,
18 | surface: BaseTheme.primaryLight,
19 | onSurface: BaseTheme.primaryLight));
20 | }
21 |
--------------------------------------------------------------------------------
/assets/icons/ic_global.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/icons/ic_filter.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/boarding/presenter/boarding_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../../base_page/presenter/base_page.dart';
4 |
5 | class BoardingScreen extends StatelessWidget {
6 | const BoardingScreen({Key? key}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return BasePage(
11 | background: Image.asset(
12 | 'assets/images/background.png',
13 | fit: BoxFit.cover,
14 | ),
15 | child: Column(
16 | mainAxisAlignment: MainAxisAlignment.center,
17 | children: const [
18 | Center(
19 | child: Text(
20 | 'Send Photo App',
21 | style: TextStyle(color: Colors.white),
22 | ),
23 | )
24 | ],
25 | ));
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/entities/person.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/entities/post.dart';
2 |
3 | class Person {
4 | final String? token;
5 | final String? uID;
6 | final String? name;
7 | final String? userName;
8 | final String? email;
9 | final String? avatarUrl;
10 | final int? followerCount;
11 | final int? followingCount;
12 | final int? likes;
13 | final List? interestedInTopics;
14 | final List? posts;
15 | final bool? isBanned;
16 |
17 | Person({
18 | this.token = '',
19 | this.name = '',
20 | this.uID = '',
21 | this.userName = '',
22 | this.email = '',
23 | this.followerCount = 0,
24 | this.followingCount = 0,
25 | this.likes = 0,
26 | this.interestedInTopics = const [],
27 | this.posts = const [],
28 | this.avatarUrl = '',
29 | this.isBanned = false,
30 | });
31 | }
32 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | )
7 |
8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
9 | )
10 |
11 | set(PLUGIN_BUNDLED_LIBRARIES)
12 |
13 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
18 | endforeach(plugin)
19 |
20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23 | endforeach(ffi_plugin)
24 |
--------------------------------------------------------------------------------
/lib/models/highlighted_action_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/extensions/theme.dart';
3 |
4 | class HighlightedActionText extends StatelessWidget {
5 | final String text;
6 | final void Function()? onTap;
7 | final double? fontSize;
8 |
9 | const HighlightedActionText({
10 | super.key,
11 | required this.text,
12 | this.onTap,
13 | this.fontSize = 16.0,
14 | });
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return InkWell(
19 | onTap: onTap ?? () {},
20 | child: Text(
21 | text,
22 | style: context.bodyMedium?.copyWith(
23 | color: context.primaryColorDark,
24 | fontWeight: FontWeight.bold,
25 | letterSpacing: 2,
26 | fontSize: fontSize,
27 | ),
28 | ),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/assets/icons/ic_hide.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/home/presenter/widgets/home_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 |
4 | import '../../../../core/constants/app_icons.dart';
5 | import '../../../../models/custom_search_box.dart';
6 | import '../../infra/datasources/user_controller.dart';
7 |
8 | class HomeHeader extends StatelessWidget {
9 | const HomeHeader({
10 | super.key,
11 | required this.controller,
12 | });
13 |
14 | final UserController controller;
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Row(
19 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
20 | children: [
21 | CommonSearchBox(
22 | controller: controller.searchBoxController,
23 | hint: 'Search',
24 | ),
25 | SvgPicture.asset(AppIcons.send),
26 | ],
27 | );
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | firebase_core
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}/windows 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}/windows plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/.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 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
--------------------------------------------------------------------------------
/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 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/assets/icons/ic_gallery.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/core/utils/error/firebase_error_handler.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/core/utils/snack_bar/show_custom_snack_bar.dart';
2 |
3 | class FirebaseErrorHandler {
4 | static void handleAuthError(String? error) {
5 | switch (error) {
6 | case 'user-not-found':
7 | showCustomSnackBar(message: 'User not found!', isError: true);
8 | break;
9 | case 'wrong-password':
10 | showCustomSnackBar(message: 'Wrong password!', isError: true);
11 | break;
12 | case 'weak-password':
13 | showCustomSnackBar(message: 'Password is weak!', isError: true);
14 | break;
15 | case 'email-already-in-use':
16 | showCustomSnackBar(
17 | message: 'This email is already in use!', isError: true);
18 | break;
19 | default:
20 | showCustomSnackBar(
21 | message: 'Email or password is not true!', isError: true);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: send_post_app
2 | description: Send Post App
3 |
4 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
5 |
6 | version: 1.0.0+1
7 |
8 | environment:
9 | sdk: '>=2.19.6 <3.0.0'
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 |
15 | cupertino_icons: ^1.0.2
16 | flutter_svg: ^2.0.5
17 | get: ^4.6.5
18 | hive: ^2.2.3
19 | hive_generator: ^2.0.0
20 | hive_flutter: ^1.1.0
21 | cloud_firestore: ^4.8.4
22 | firebase_auth: ^4.7.2
23 | firebase_core: ^2.15.0
24 | form_builder_validators: ^8.6.1
25 |
26 | dev_dependencies:
27 | flutter_test:
28 | sdk: flutter
29 | flutter_lints: ^2.0.0
30 | flutter:
31 | uses-material-design: true
32 |
33 | assets:
34 | - assets/animations/
35 | - assets/fonts/
36 | - assets/icons/
37 | - assets/images/
38 | - assets/statics/
39 |
40 | fonts:
41 | - family: Montserrat
42 | fonts:
43 | - asset: assets/fonts/Montserrat-Regular.ttf
44 |
--------------------------------------------------------------------------------
/assets/icons/ic_send_filled.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/icons/ic_notification.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/icons/ic_heart.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/category/infra/models/category_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/extensions/theme.dart';
3 |
4 | import '../../../../models/highlighted_action_text.dart';
5 |
6 | class CategoryHeader extends StatelessWidget {
7 | const CategoryHeader({
8 | super.key,
9 | required this.title,
10 | required this.seeMore,
11 | });
12 |
13 | final String title;
14 | final void Function() seeMore;
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Row(
19 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
20 | crossAxisAlignment: CrossAxisAlignment.end,
21 | children: [
22 | Text(
23 | title,
24 | style: context.titleMedium?.copyWith(
25 | fontWeight: FontWeight.bold,
26 | ),
27 | ),
28 | HighlightedActionText(
29 | text: 'View More',
30 | fontSize: 12.0,
31 | onTap: seeMore,
32 | ),
33 | ],
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/modules/splash/presenter/widgets/splash_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:send_post_app/core/extensions/theme.dart';
4 | import 'package:send_post_app/modules/splash/infra/datasources/splash_screen_controller.dart';
5 |
6 | class SplashText extends GetWidget {
7 | const SplashText({
8 | super.key,
9 | });
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return GetBuilder(
14 | id: 'splashScreen',
15 | builder: (controller) {
16 | return AnimatedOpacity(
17 | duration: 1000.milliseconds,
18 | opacity: controller.isScreenLoaded ? 1.0 : 0.0,
19 | child: Text(
20 | controller.title,
21 | style: context.titleMedium?.copyWith(
22 | color: context.secondary,
23 | fontWeight: FontWeight.bold,
24 | ),
25 | ),
26 | );
27 | });
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/assets/icons/ic_category_filled.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "send_post_app",
3 | "short_name": "send_post_app",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "Send Post App",
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 | }
36 |
--------------------------------------------------------------------------------
/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/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/assets/icons/ic_add_circle.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/splash/infra/models/centered_image_design.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/extensions/sizer.dart';
3 |
4 | import '../../../../core/constants/app_images.dart';
5 | import '../../presenter/widgets/splash_square_image.dart';
6 |
7 | class CenteredImagesDesign extends StatelessWidget {
8 | const CenteredImagesDesign({
9 | super.key,
10 | });
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return SizedBox(
15 | width: context.widthOfScreen(50.0),
16 | child: GridView(
17 | shrinkWrap: true,
18 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
19 | crossAxisSpacing: 2.0,
20 | mainAxisSpacing: 2.0,
21 | crossAxisCount: 2,
22 | ),
23 | children: const [
24 | SplashSquareImage(image: AppImages.dummyPhoto),
25 | SplashSquareImage(image: AppImages.dummyPhoto2),
26 | SplashSquareImage(image: AppImages.dummyPhoto3),
27 | SplashSquareImage(image: AppImages.dummyPhoto),
28 | ],
29 | ),
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/entities/post.dart:
--------------------------------------------------------------------------------
1 | import 'package:send_post_app/entities/person.dart';
2 |
3 | class Post {
4 | final int? id;
5 | final int? ownerId;
6 | final String? type;
7 | final String? title;
8 | final String? body;
9 | final List? images;
10 | final Person? owner;
11 | final int? seenCount;
12 | final int? likeCount;
13 | final int? commentCount;
14 | final bool? isLikedByMe;
15 | final bool? isCommentedByMe;
16 | final bool? isSeenByMe;
17 | final List? commentedByPeers;
18 | final List? likedByPeers;
19 | final DateTime? shareTime;
20 | final bool? isPopular;
21 | final bool? isTrending;
22 | final bool? isFollowed;
23 |
24 | Post({
25 | this.title,
26 | this.ownerId,
27 | this.type,
28 | this.body,
29 | this.images,
30 | this.seenCount,
31 | this.likeCount,
32 | this.commentCount,
33 | this.isLikedByMe,
34 | this.isCommentedByMe,
35 | this.commentedByPeers,
36 | this.likedByPeers,
37 | this.id,
38 | this.shareTime,
39 | this.isSeenByMe,
40 | this.owner,
41 | this.isPopular,
42 | this.isTrending,
43 | this.isFollowed,
44 | });
45 | }
46 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:send_post_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/lib/core/utils/snack_bar/show_custom_snack_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | void showCustomSnackBar({
5 | String? title = '',
6 | String? message = '',
7 | bool? isError = false,
8 | Duration? duration,
9 | }) {
10 | final context = Get.context;
11 | Get.showSnackbar(
12 | GetSnackBar(
13 | title: title,
14 | duration: duration ?? 3.seconds,
15 | backgroundColor: Colors.transparent,
16 | padding: EdgeInsets.zero,
17 | messageText: Container(
18 | padding: const EdgeInsets.symmetric(horizontal: 40),
19 | height: (context?.size?.height ?? 0) / 16.0,
20 | decoration: BoxDecoration(
21 | color: (isError ?? false)
22 | ? ThemeData.light().colorScheme.error
23 | : ThemeData.light().primaryColorLight,
24 | ),
25 | child: Align(
26 | alignment: Alignment.centerLeft,
27 | child: Text(
28 | message!,
29 | style: const TextStyle(
30 | fontSize: 16,
31 | color: Colors.white,
32 | ),
33 | ),
34 | ),
35 | ),
36 | ),
37 | );
38 | }
39 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/core/configs/getX/init_controllers.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:send_post_app/core/configs/getX/base_controller.dart';
3 | import 'package:send_post_app/modules/auth/auth_controller.dart';
4 | import 'package:send_post_app/modules/base_page/infra/datasources/base_page_controller.dart';
5 | import 'package:send_post_app/modules/category/infra/datasources/category_controller.dart';
6 | import 'package:send_post_app/modules/home/infra/datasources/user_controller.dart';
7 | import 'package:send_post_app/modules/splash/infra/datasources/splash_screen_controller.dart';
8 |
9 | import '../../../modules/base/infra/datasources/base_screen_controller.dart';
10 |
11 | class ControllerInitialiser {
12 | ControllerInitialiser._();
13 |
14 | static void init() {
15 | Get.lazyPut(() => BaseScreenController(), fenix: true);
16 | Get.lazyPut(() => BasePageController(), fenix: true);
17 | Get.lazyPut(() => BaseController(), fenix: true);
18 | Get.lazyPut(() => SplashScreenController(), fenix: true);
19 | Get.lazyPut(() => AuthController(), fenix: true);
20 | Get.lazyPut(() => UserController(), fenix: true);
21 | Get.lazyPut(() => CategoryController(), fenix: true);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_core/firebase_core.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:get/get.dart';
4 | import 'package:send_post_app/core/configs/getX/init_controllers.dart';
5 | import 'package:send_post_app/core/constants/theme/dark_theme/dark_theme.dart';
6 | import 'package:send_post_app/core/constants/theme/light_theme/light_theme.dart';
7 |
8 | import 'core/configs/cache/cache.dart';
9 | import 'core/configs/getX/page_routes.dart';
10 | import 'modules/splash/presenter/splash_screen.dart';
11 |
12 | void main() async {
13 | Cache.init();
14 | ControllerInitialiser.init();
15 | WidgetsFlutterBinding.ensureInitialized();
16 | await Firebase.initializeApp();
17 |
18 | runApp(const MyApp());
19 | }
20 |
21 | class MyApp extends StatelessWidget {
22 | const MyApp({super.key});
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return GetMaterialApp(
27 | debugShowCheckedModeBanner: false,
28 | getPages: pages,
29 | title: 'Send Photo App',
30 | theme: LightTheme().lightTheme,
31 | darkTheme: DarkTheme().darkTheme,
32 | home: const Scaffold(
33 | body: SplashScreen(),
34 | ),
35 | );
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/lib/modules/home/presenter/widgets/tab_bar_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/modules/home/presenter/widgets/tab_category_model.dart';
3 |
4 | import '../../infra/datasources/user_controller.dart';
5 |
6 | class TabBarWidget extends StatelessWidget {
7 | const TabBarWidget({
8 | super.key,
9 | required this.controller,
10 | });
11 |
12 | final UserController controller;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return TabBar(
17 | padding: EdgeInsets.zero,
18 | controller: controller.tabController,
19 | indicatorColor: Colors.transparent,
20 | onTap: (index) => controller.selectedTabIndex.value = index,
21 | tabs: [
22 | TabCategory(
23 | tabController: controller.tabController,
24 | text: 'Popular',
25 | index: 0,
26 | ),
27 | TabCategory(
28 | tabController: controller.tabController,
29 | text: 'Trending',
30 | index: 1,
31 | ),
32 | TabCategory(
33 | tabController: controller.tabController,
34 | text: 'Following',
35 | index: 2,
36 | ),
37 | ],
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/assets/icons/ic_upload.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/notification/presenter/widgets/info.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/extensions/space.dart';
3 | import 'package:send_post_app/core/extensions/theme.dart';
4 |
5 | class NotificationCardInfo extends StatelessWidget {
6 | const NotificationCardInfo({
7 | super.key,
8 | this.userName,
9 | this.action,
10 | this.timeAgo,
11 | });
12 |
13 | final String? userName;
14 | final String? action;
15 | final String? timeAgo;
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Column(
20 | crossAxisAlignment: CrossAxisAlignment.start,
21 | children: [
22 | Text(
23 | userName ?? '',
24 | style: context.bodyMedium?.copyWith(
25 | fontWeight: FontWeight.bold,
26 | ),
27 | ),
28 | context.yyySmall,
29 | // Action
30 | Text(
31 | action ?? '',
32 | style: context.labelMedium?.copyWith(),
33 | ),
34 | context.yyySmall,
35 |
36 | Text(
37 | timeAgo ?? '',
38 | style: context.labelMedium?.copyWith(
39 | color: context.secondary,
40 | ),
41 | ),
42 | ],
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/assets/icons/ic_profile_filled.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/modules/profile/profile_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/constants/app_images.dart';
3 | import 'package:send_post_app/core/extensions/sizer.dart';
4 |
5 | import '../base_page/presenter/base_page.dart';
6 |
7 | class ProfileScreen extends StatelessWidget {
8 | const ProfileScreen({Key? key}) : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return BasePage(
13 | child: Stack(
14 | children: [
15 | Positioned(
16 | top: -100,
17 | left: 0,
18 | right: 0,
19 | child: Container(
20 | height: context.heightOfScreen(40),
21 | width: context.widthOfScreen(150),
22 | decoration: const BoxDecoration(
23 | shape: BoxShape.circle,
24 | ),
25 | child: ClipRRect(
26 | borderRadius: const BorderRadius.only(
27 | bottomRight: Radius.circular(100),
28 | bottomLeft: Radius.circular(100),
29 | ),
30 | child: Image.asset(
31 | AppImages.background,
32 | fit: BoxFit.cover,
33 | ),
34 | ),
35 | ),
36 | )
37 | ],
38 | ));
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/core/constants/theme/light_theme/light_theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:send_post_app/core/constants/theme/base_theme/base_theme.dart';
3 |
4 | class LightTheme extends BaseTheme {
5 | final lightTheme = ThemeData(
6 | fontFamily: 'Montserrat',
7 | primaryColorLight: BaseTheme.primaryLight,
8 | primaryColorDark: BaseTheme.primaryDark,
9 | colorScheme: const ColorScheme(
10 | brightness: Brightness.light,
11 | primary: BaseTheme.primaryLight,
12 | onPrimary: BaseTheme.primaryLight,
13 | secondary: BaseTheme.secondary,
14 | onSecondary: BaseTheme.secondary,
15 | error: BaseTheme.error,
16 | onError: BaseTheme.error,
17 | background: BaseTheme.background,
18 | onBackground: BaseTheme.background,
19 | surface: BaseTheme.primaryLight,
20 | onSurface: BaseTheme.primaryLight),
21 | textTheme: const TextTheme(
22 | titleSmall: BaseTheme.titleSmall,
23 | titleMedium: BaseTheme.titleMedium,
24 | titleLarge: BaseTheme.titleLarge,
25 | bodySmall: BaseTheme.bodySmall,
26 | bodyMedium: BaseTheme.bodyMedium,
27 | bodyLarge: BaseTheme.bodyLarge,
28 | labelSmall: BaseTheme.labelSmall,
29 | labelMedium: BaseTheme.labelMedium,
30 | labelLarge: BaseTheme.labelLarge,
31 | ),
32 | );
33 | }
34 |
--------------------------------------------------------------------------------
/ios/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 808447881417-9bmtkvnb0lr2t6q921bic6483djgvi8a.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.808447881417-9bmtkvnb0lr2t6q921bic6483djgvi8a
9 | ANDROID_CLIENT_ID
10 | 808447881417-1lg7kmvka41fj99ta43s6cr0msmtvsq1.apps.googleusercontent.com
11 | API_KEY
12 | AIzaSyA9IhoDj3JXGw9HpoHjGFRT602T15L-qjw
13 | GCM_SENDER_ID
14 | 808447881417
15 | PLIST_VERSION
16 | 1
17 | BUNDLE_ID
18 | com.sendPostApp
19 | PROJECT_ID
20 | send-post-app
21 | STORAGE_BUCKET
22 | send-post-app.appspot.com
23 | IS_ADS_ENABLED
24 |
25 | IS_ANALYTICS_ENABLED
26 |
27 | IS_APPINVITE_ENABLED
28 |
29 | IS_GCM_ENABLED
30 |
31 | IS_SIGNIN_ENABLED
32 |
33 | GOOGLE_APP_ID
34 | 1:808447881417:ios:22f2c608a8ecbcabea1d18
35 |
36 |
--------------------------------------------------------------------------------
/lib/modules/splash/presenter/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:send_post_app/core/constants/app_images.dart';
4 | import 'package:send_post_app/core/extensions/space.dart';
5 | import 'package:send_post_app/modules/splash/infra/datasources/splash_screen_controller.dart';
6 | import 'package:send_post_app/modules/splash/presenter/widgets/splash_text.dart';
7 |
8 | import '../../base_page/presenter/base_page.dart';
9 | import '../infra/models/centered_image_design.dart';
10 |
11 | class SplashScreen extends GetWidget {
12 | const SplashScreen({Key? key}) : super(key: key);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | controller.forwardSplashAnimation();
17 | controller.redirect();
18 | return BasePage(
19 | background: Image.asset(
20 | AppImages.lightBackground,
21 | fit: BoxFit.cover,
22 | ),
23 | child: Center(
24 | child: Column(
25 | mainAxisAlignment: MainAxisAlignment.center,
26 | children: [
27 | // splash text
28 | const SplashText(),
29 | // space
30 | context.ySmall,
31 | // 4 centered boxes design
32 | const CenteredImagesDesign(),
33 | ],
34 | ),
35 | ),
36 | );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/ios/Runner/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 808447881417-9bmtkvnb0lr2t6q921bic6483djgvi8a.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.808447881417-9bmtkvnb0lr2t6q921bic6483djgvi8a
9 | ANDROID_CLIENT_ID
10 | 808447881417-1lg7kmvka41fj99ta43s6cr0msmtvsq1.apps.googleusercontent.com
11 | API_KEY
12 | AIzaSyA9IhoDj3JXGw9HpoHjGFRT602T15L-qjw
13 | GCM_SENDER_ID
14 | 808447881417
15 | PLIST_VERSION
16 | 1
17 | BUNDLE_ID
18 | com.sendPostApp
19 | PROJECT_ID
20 | send-post-app
21 | STORAGE_BUCKET
22 | send-post-app.appspot.com
23 | IS_ADS_ENABLED
24 |
25 | IS_ANALYTICS_ENABLED
26 |
27 | IS_APPINVITE_ENABLED
28 |
29 | IS_GCM_ENABLED
30 |
31 | IS_SIGNIN_ENABLED
32 |
33 | GOOGLE_APP_ID
34 | 1:808447881417:ios:22f2c608a8ecbcabea1d18
35 |
36 |
--------------------------------------------------------------------------------
/lib/core/constants/app_images.dart:
--------------------------------------------------------------------------------
1 | class AppImages {
2 | static const main = "assets/images";
3 | static const String background = '$main/background.png';
4 | static const String lightBackground = '$main/light_background.png';
5 | static const String headerBackground = '$main/header_background.png';
6 | static const String rectangleBoxCover = '$main/rectangle_box_cover.png';
7 | static const String dummyAvatar = '$main/dummy_avatar.png';
8 | static const String dummyAvatar2 = '$main/dummy_avatar_2.png';
9 | static const String dummyDesigner = '$main/dummy_designer_photo.png';
10 | static const String dummyIllustrator = '$main/dummy_illustrator_photo.png';
11 | static const String dummyMakingVideo = '$main/dummy_making_video_photo.png';
12 | static const String dummyPhoto = '$main/dummy_photo.png';
13 | static const String dummyPhoto2 = '$main/dummy_photo_2.png';
14 | static const String dummyPhoto3 = '$main/dummy_photo_3.png';
15 | static const String dummyPhotographer = '$main/dummy_photographer_photo.png';
16 | static const String dummyPhotographer2 =
17 | '$main/dummy_photographer_photo_2.png';
18 | static const String dummyPostImage = '$main/dummy_post_image.png';
19 | static const String dummyPostImage2 = '$main/dummy_post_image_2.png';
20 | static const String dummyUiDesign = '$main/dummy_ui_design_photo.png';
21 | static const String dummyVideoCreator = '$main/dummy_video_creator_photo.png';
22 | }
23 |
--------------------------------------------------------------------------------
/lib/modules/home/presenter/widgets/post/post_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:send_post_app/core/extensions/date.dart';
4 | import 'package:send_post_app/core/extensions/space.dart';
5 | import 'package:send_post_app/core/extensions/theme.dart';
6 |
7 | import '../../../../../entities/post.dart';
8 | import '../../../../../models/avatar_model.dart';
9 |
10 | class PostHeader extends StatelessWidget {
11 | const PostHeader({
12 | super.key,
13 | required this.post,
14 | });
15 |
16 | final Post post;
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return Row(
21 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
22 | children: [
23 | // Avatar of post
24 | Row(
25 | children: [
26 | AvatarModel(url: post.owner?.avatarUrl),
27 | context.xSmall,
28 | Text(
29 | post.owner?.userName ?? 'Anonymous User',
30 | style: context.textTheme.titleSmall?.copyWith(
31 | fontWeight: FontWeight.bold,
32 | ),
33 | ),
34 | ],
35 | ),
36 | // time text
37 | Text(
38 | post.shareTime?.calculate() ?? '',
39 | style: context.labelMedium?.copyWith(
40 | color: Colors.grey,
41 | ),
42 | )
43 | ],
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/core/extensions/space.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | extension SpaceExtendion on BuildContext {
4 | // Space | Width
5 | SizedBox get xxSmall => SizedBox(
6 | width: MediaQuery.of(this).size.width * 0.02,
7 | );
8 |
9 | SizedBox get xSmall => SizedBox(
10 | width: MediaQuery.of(this).size.width * 0.04,
11 | );
12 |
13 | SizedBox get xMedium => SizedBox(
14 | width: MediaQuery.of(this).size.width * 0.08,
15 | );
16 |
17 | SizedBox get xLarge => SizedBox(
18 | width: MediaQuery.of(this).size.width * 0.12,
19 | );
20 |
21 | SizedBox get xHuge => SizedBox(
22 | width: MediaQuery.of(this).size.width * 0.16,
23 | );
24 |
25 | // Space | Height
26 | SizedBox get yyySmall => SizedBox(
27 | height: MediaQuery.of(this).size.height * 0.01,
28 | );
29 |
30 | SizedBox get yySmall => SizedBox(
31 | height: MediaQuery.of(this).size.height * 0.02,
32 | );
33 |
34 | SizedBox get ySmall => SizedBox(
35 | height: MediaQuery.of(this).size.height * 0.04,
36 | );
37 |
38 | SizedBox get yMedium => SizedBox(
39 | height: MediaQuery.of(this).size.height * 0.08,
40 | );
41 |
42 | SizedBox get yLarge => SizedBox(
43 | height: MediaQuery.of(this).size.height * 0.12,
44 | );
45 |
46 | SizedBox get yHuge => SizedBox(
47 | height: MediaQuery.of(this).size.height * 0.16,
48 | );
49 | }
50 |
--------------------------------------------------------------------------------
/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"send_post_app", 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 |
--------------------------------------------------------------------------------
/assets/icons/ic_home_filled.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 | end
35 |
36 | post_install do |installer|
37 | installer.pods_project.targets.each do |target|
38 | flutter_additional_macos_build_settings(target)
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/lib/entities/user.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:send_post_app/entities/notification.dart';
3 | import 'package:send_post_app/entities/person.dart';
4 |
5 | class User extends Person {
6 | final List? notifications;
7 |
8 | User({
9 | super.name,
10 | super.uID,
11 | super.userName,
12 | super.email,
13 | super.followerCount,
14 | super.followingCount,
15 | super.likes,
16 | super.interestedInTopics,
17 | super.posts,
18 | super.avatarUrl,
19 | super.isBanned,
20 | this.notifications,
21 | });
22 |
23 | factory User.fromFirestore(
24 | DocumentSnapshot