├── 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
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
└── Podfile
├── .vscode
└── settings.json
├── assets
└── images
│ ├── logo.jpg
│ ├── back_icon.jpg
│ ├── close_icon.jpg
│ ├── menu_icon.jpg
│ ├── more_icon.jpg
│ ├── plus_icon.png
│ ├── reply_icon.jpg
│ ├── camera_icon.jpg
│ ├── like_on_icon.jpg
│ ├── add_friend_icon.jpg
│ ├── default_image.png
│ ├── direct_msg_icon.jpg
│ ├── down_arrow_icon.jpg
│ ├── like_off_icon.jpg
│ ├── book_mark_on_icon.jpg
│ ├── grid_view_on_icon.jpg
│ ├── image_select_icon.jpg
│ ├── upload_next_icon.jpg
│ ├── book_mark_off_icon.jpg
│ ├── grid_view_off_icon.jpg
│ ├── my_tag_image_on_icon.jpg
│ ├── upload_complete_icon.jpg
│ ├── bottom_nav_upload_icon.jpg
│ ├── my_tag_image_off_icon.jpg
│ ├── mypage_bottom_sheet_01.jpg
│ ├── mypage_bottom_sheet_02.jpg
│ ├── mypage_bottom_sheet_03.jpg
│ ├── mypage_bottom_sheet_04.jpg
│ ├── mypage_bottom_sheet_05.jpg
│ ├── bottom_nav_active_on_icon.jpg
│ ├── bottom_nav_home_off_icon.jpg
│ ├── bottom_nav_home_on_icon.jpg
│ ├── bottom_nav_search_on_icon.jpg
│ ├── bottom_nav_active_off_icon.jpg
│ ├── bottom_nav_search_off_icon.jpg
│ ├── mypage_bottom_sheet_setting_01.jpg
│ ├── mypage_bottom_sheet_setting_02.jpg
│ ├── mypage_bottom_sheet_setting_03.jpg
│ ├── mypage_bottom_sheet_setting_04.jpg
│ ├── mypage_bottom_sheet_setting_05.jpg
│ ├── mypage_bottom_sheet_setting_06.jpg
│ └── mypage_bottom_sheet_setting_07.jpg
├── 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
│ │ │ │ │ └── instaclone
│ │ │ │ │ └── flutter_clone_instagram
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── lib
├── src
│ ├── utils
│ │ └── data_util.dart
│ ├── controller
│ │ ├── home_controller.dart
│ │ ├── mypage_controller.dart
│ │ ├── auth_controller.dart
│ │ ├── bottom_nav_controller.dart
│ │ └── upload_controller.dart
│ ├── repository
│ │ ├── post_repository.dart
│ │ └── user_repository.dart
│ ├── binding
│ │ └── init_bindings.dart
│ ├── models
│ │ ├── instagram_user.dart
│ │ └── post.dart
│ ├── pages
│ │ ├── login.dart
│ │ ├── active_history.dart
│ │ ├── home.dart
│ │ ├── search
│ │ │ └── search_focus.dart
│ │ ├── search.dart
│ │ ├── signup_page.dart
│ │ ├── upload
│ │ │ └── upload_description.dart
│ │ ├── upload.dart
│ │ └── mypage.dart
│ ├── root.dart
│ ├── components
│ │ ├── avatar_widget.dart
│ │ ├── message_popup.dart
│ │ ├── user_card.dart
│ │ ├── image_data.dart
│ │ └── post_widget.dart
│ └── app.dart
├── main.dart
└── firebase_options.dart
├── .metadata
├── README.md
├── .gitignore
├── test
└── widget_test.dart
├── analysis_options.yaml
├── pubspec.yaml
└── pubspec.lock
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "java.configuration.updateBuildConfiguration": "interactive"
3 | }
4 |
--------------------------------------------------------------------------------
/assets/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/logo.jpg
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/assets/images/back_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/back_icon.jpg
--------------------------------------------------------------------------------
/assets/images/close_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/close_icon.jpg
--------------------------------------------------------------------------------
/assets/images/menu_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/menu_icon.jpg
--------------------------------------------------------------------------------
/assets/images/more_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/more_icon.jpg
--------------------------------------------------------------------------------
/assets/images/plus_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/plus_icon.png
--------------------------------------------------------------------------------
/assets/images/reply_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/reply_icon.jpg
--------------------------------------------------------------------------------
/assets/images/camera_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/camera_icon.jpg
--------------------------------------------------------------------------------
/assets/images/like_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/like_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/add_friend_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/add_friend_icon.jpg
--------------------------------------------------------------------------------
/assets/images/default_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/default_image.png
--------------------------------------------------------------------------------
/assets/images/direct_msg_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/direct_msg_icon.jpg
--------------------------------------------------------------------------------
/assets/images/down_arrow_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/down_arrow_icon.jpg
--------------------------------------------------------------------------------
/assets/images/like_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/like_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/book_mark_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/book_mark_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/grid_view_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/grid_view_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/image_select_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/image_select_icon.jpg
--------------------------------------------------------------------------------
/assets/images/upload_next_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/upload_next_icon.jpg
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/images/book_mark_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/book_mark_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/grid_view_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/grid_view_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/my_tag_image_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/my_tag_image_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/upload_complete_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/upload_complete_icon.jpg
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/images/bottom_nav_upload_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_upload_icon.jpg
--------------------------------------------------------------------------------
/assets/images/my_tag_image_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/my_tag_image_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_01.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_01.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_02.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_03.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_04.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_04.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_05.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_05.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_active_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_active_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_home_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_home_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_home_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_home_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_search_on_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_search_on_icon.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_active_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_active_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/bottom_nav_search_off_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/bottom_nav_search_off_icon.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_01.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_01.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_02.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_03.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_04.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_04.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_05.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_05.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_06.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_06.jpg
--------------------------------------------------------------------------------
/assets/images/mypage_bottom_sheet_setting_07.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/assets/images/mypage_bottom_sheet_setting_07.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/lib/src/utils/data_util.dart:
--------------------------------------------------------------------------------
1 | import 'package:uuid/uuid.dart';
2 |
3 | class DataUtil {
4 | static String makeFilePath() {
5 | return '${Uuid().v4()}.jpg';
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudar-life/flutter_instagram_clone_p/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/sudar-life/flutter_instagram_clone_p/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/instaclone/flutter_clone_instagram/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.instaclone.flutter_clone_instagram
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/src/controller/home_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clone_instagram/src/models/post.dart';
2 | import 'package:flutter_clone_instagram/src/repository/post_repository.dart';
3 | import 'package:get/get.dart';
4 |
5 | class HomeController extends GetxController {
6 | RxList postList = [].obs;
7 | @override
8 | void onInit() {
9 | super.onInit();
10 | _loadFeedList();
11 | }
12 |
13 | void _loadFeedList() async {
14 | var feedList = await PostRepository.loadFeedList();
15 | postList.addAll(feedList);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter_clone_instagram
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/lib/src/repository/post_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:flutter_clone_instagram/src/models/post.dart';
3 |
4 | class PostRepository {
5 | static Future updatePost(Post postData) async {
6 | await FirebaseFirestore.instance.collection('posts').add(postData.toMap());
7 | }
8 |
9 | static Future> loadFeedList() async {
10 | var document = FirebaseFirestore.instance
11 | .collection('posts')
12 | .orderBy('createdAt', descending: true)
13 | .limit(10);
14 | var data = await document.get();
15 | return data.docs.map((e) => Post.fromJson(e.id, e.data())).toList();
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/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.8.21'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.2.2'
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 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/lib/src/repository/user_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
3 |
4 | class UserRepository {
5 | static Future loginUserByUid(String uid) async {
6 | var data = await FirebaseFirestore.instance
7 | .collection('users')
8 | .where('uid', isEqualTo: uid)
9 | .get();
10 |
11 | if (data.size == 0) {
12 | return null;
13 | } else {
14 | return IUser.fromJson(data.docs.first.data());
15 | ;
16 | }
17 | }
18 |
19 | static Future signup(IUser user) async {
20 | try {
21 | await FirebaseFirestore.instance.collection('users').add(user.toMap());
22 | return true;
23 | } catch (e) {
24 | return false;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/src/binding/init_bindings.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
2 | import 'package:flutter_clone_instagram/src/controller/bottom_nav_controller.dart';
3 | import 'package:flutter_clone_instagram/src/controller/home_controller.dart';
4 | import 'package:flutter_clone_instagram/src/controller/mypage_controller.dart';
5 | import 'package:flutter_clone_instagram/src/controller/upload_controller.dart';
6 | import 'package:get/get.dart';
7 |
8 | class InitBinding extends Bindings {
9 | @override
10 | void dependencies() {
11 | Get.put(BottomNavController(), permanent: true);
12 | Get.put(AuthController(), permanent: true);
13 | }
14 |
15 | static additionalBinding() {
16 | Get.put(MypageController(), permanent: true);
17 | Get.put(HomeController(), permanent: true);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/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 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/lib/src/controller/mypage_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
3 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
4 | import 'package:get/get.dart';
5 |
6 | class MypageController extends GetxController with GetTickerProviderStateMixin {
7 | late TabController tabController;
8 | Rx targetUser = IUser().obs;
9 |
10 | @override
11 | void onInit() {
12 | super.onInit();
13 | tabController = TabController(length: 2, vsync: this);
14 | _loadData();
15 | }
16 |
17 | void setTargetUser() {
18 | var uid = Get.parameters['targetUid'];
19 | if (uid == null) {
20 | targetUser(AuthController.to.user.value);
21 | } else {
22 | //TODO 상대 uid 로 users collection 조회
23 | }
24 | }
25 |
26 | void _loadData() {
27 | setTargetUser();
28 |
29 | // 포스트 리스트 로드
30 | // 사용자 정보 로드
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 that Flutter provides. 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:flutter_clone_instagram/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/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_core/firebase_core.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_clone_instagram/firebase_options.dart';
4 | import 'package:flutter_clone_instagram/src/app.dart';
5 | import 'package:flutter_clone_instagram/src/binding/init_bindings.dart';
6 | import 'package:flutter_clone_instagram/src/root.dart';
7 | import 'package:get/get.dart';
8 |
9 | void main() async {
10 | WidgetsFlutterBinding.ensureInitialized();
11 | await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
12 | runApp(const MyApp());
13 | }
14 |
15 | class MyApp extends StatelessWidget {
16 | const MyApp({Key? key}) : super(key: key);
17 |
18 | // This widget is the root of your application.
19 | @override
20 | Widget build(BuildContext context) {
21 | return GetMaterialApp(
22 | title: 'Flutter Demo',
23 | theme: ThemeData(
24 | primarySwatch: Colors.blue,
25 | appBarTheme: const AppBarTheme(
26 | backgroundColor: Colors.white,
27 | titleTextStyle: TextStyle(color: Colors.black),
28 | ),
29 | ),
30 | initialBinding: InitBinding(),
31 | home: const Root(),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/src/models/instagram_user.dart:
--------------------------------------------------------------------------------
1 | class IUser {
2 | String? uid;
3 | String? nickname;
4 | String? thumbnail;
5 | String? description;
6 | IUser({
7 | this.uid,
8 | this.nickname,
9 | this.thumbnail,
10 | this.description,
11 | });
12 |
13 | factory IUser.fromJson(Map json) {
14 | return IUser(
15 | uid: json['uid'] == null ? '' : json['uid'] as String,
16 | nickname: json['nickname'] == null ? '' : json['nickname'] as String,
17 | thumbnail: json['thumbnail'] == null ? '' : json['thumbnail'] as String,
18 | description:
19 | json['description'] == null ? '' : json['description'] as String,
20 | );
21 | }
22 |
23 | Map toMap() {
24 | return {
25 | 'uid': uid,
26 | 'nickname': nickname,
27 | 'thumbnail': thumbnail,
28 | 'description': description,
29 | };
30 | }
31 |
32 | IUser copyWith({
33 | String? uid,
34 | String? nickname,
35 | String? thumbnail,
36 | String? description,
37 | }) {
38 | return IUser(
39 | uid: uid ?? this.uid,
40 | nickname: nickname ?? this.nickname,
41 | thumbnail: thumbnail ?? this.thumbnail,
42 | description: description ?? this.description,
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/src/pages/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:google_sign_in/google_sign_in.dart';
4 |
5 | class Login extends StatelessWidget {
6 | const Login({Key? key}) : super(key: key);
7 |
8 | Future signInWithGoogle() async {
9 | // Trigger the authentication flow
10 | final GoogleSignInAccount? googleUser = await GoogleSignIn().signIn();
11 |
12 | // Obtain the auth details from the request
13 | final GoogleSignInAuthentication? googleAuth =
14 | await googleUser?.authentication;
15 |
16 | // Create a new credential
17 | final credential = GoogleAuthProvider.credential(
18 | accessToken: googleAuth?.accessToken,
19 | idToken: googleAuth?.idToken,
20 | );
21 |
22 | // Once signed in, return the UserCredential
23 | return await FirebaseAuth.instance.signInWithCredential(credential);
24 | }
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Scaffold(
29 | appBar: AppBar(
30 | elevation: 0,
31 | centerTitle: true,
32 | title: const Text(
33 | '로그인',
34 | style: TextStyle(color: Colors.black),
35 | ),
36 | ),
37 | body: Center(
38 | child: ElevatedButton(
39 | onPressed: signInWithGoogle,
40 | child: const Text('구글 로그인'),
41 | ),
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/src/root.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_clone_instagram/src/app.dart';
4 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
5 | import 'package:flutter_clone_instagram/src/controller/mypage_controller.dart';
6 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
7 | import 'package:flutter_clone_instagram/src/pages/login.dart';
8 | import 'package:flutter_clone_instagram/src/pages/mypage.dart';
9 | import 'package:flutter_clone_instagram/src/pages/signup_page.dart';
10 | import 'package:get/get.dart';
11 |
12 | class Root extends GetView {
13 | const Root({Key? key}) : super(key: key);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return StreamBuilder(
18 | stream: FirebaseAuth.instance.authStateChanges(),
19 | builder: (BuildContext _, AsyncSnapshot user) {
20 | if (user.hasData) {
21 | return FutureBuilder(
22 | future: controller.loginUser(user.data!.uid),
23 | builder: (context, snapshot) {
24 | if (snapshot.hasData) {
25 | return const App();
26 | } else {
27 | Get.put(MypageController());
28 | return App();
29 | // return Obx(
30 | // () => controller.user.value.uid != null
31 | // ? const App()
32 | // : SignupPage(uid: user.data!.uid),
33 | // );
34 | }
35 | },
36 | );
37 | } else {
38 | return const Login();
39 | }
40 | },
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Clone Instagram
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_clone_instagram
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/lib/firebase_options.dart:
--------------------------------------------------------------------------------
1 | // File generated by FlutterFire CLI.
2 | // ignore_for_file: lines_longer_than_80_chars
3 | import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
4 | import 'package:flutter/foundation.dart'
5 | show defaultTargetPlatform, kIsWeb, TargetPlatform;
6 |
7 | /// Default [FirebaseOptions] for use with your Firebase apps.
8 | ///
9 | /// Example:
10 | /// ```dart
11 | /// import 'firebase_options.dart';
12 | /// // ...
13 | /// await Firebase.initializeApp(
14 | /// options: DefaultFirebaseOptions.currentPlatform,
15 | /// );
16 | /// ```
17 | class DefaultFirebaseOptions {
18 | static FirebaseOptions get currentPlatform {
19 | if (kIsWeb) {
20 | throw UnsupportedError(
21 | 'DefaultFirebaseOptions have not been configured for web - '
22 | 'you can reconfigure this by running the FlutterFire CLI again.',
23 | );
24 | }
25 | // ignore: missing_enum_constant_in_switch
26 | switch (defaultTargetPlatform) {
27 | case TargetPlatform.android:
28 | return android;
29 | case TargetPlatform.iOS:
30 | return ios;
31 | case TargetPlatform.macOS:
32 | throw UnsupportedError(
33 | 'DefaultFirebaseOptions have not been configured for macos - '
34 | 'you can reconfigure this by running the FlutterFire CLI again.',
35 | );
36 | default:
37 | }
38 |
39 | throw UnsupportedError(
40 | 'DefaultFirebaseOptions are not supported for this platform.',
41 | );
42 | }
43 |
44 | static const FirebaseOptions android = FirebaseOptions(
45 | apiKey: 'AIzaSyBACVvWZpycqjaxClkwxDbWdvbAxDqfBhY',
46 | appId: '1:1059322137775:android:ac8c70c0232f54ba55d85a',
47 | messagingSenderId: '',
48 | projectId: 'instagram-clone-app002',
49 | storageBucket: 'instagram-clone-app002.appspot.com',
50 | );
51 |
52 | static const FirebaseOptions ios = FirebaseOptions(
53 | apiKey: '',
54 | appId: '',
55 | messagingSenderId: '',
56 | projectId: '',
57 | storageBucket: '',
58 | iosClientId: '',
59 | iosBundleId: '',
60 | );
61 | }
62 |
--------------------------------------------------------------------------------
/lib/src/controller/auth_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:firebase_storage/firebase_storage.dart';
4 | import 'package:flutter_clone_instagram/src/binding/init_bindings.dart';
5 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
6 | import 'package:flutter_clone_instagram/src/repository/user_repository.dart';
7 | import 'package:get/get.dart';
8 | import 'package:image_picker/image_picker.dart';
9 |
10 | class AuthController extends GetxController {
11 | static AuthController get to => Get.find();
12 |
13 | Rx user = IUser().obs;
14 |
15 | Future loginUser(String uid) async {
16 | var userData = await UserRepository.loginUserByUid(uid);
17 | if (userData != null) {
18 | user(userData);
19 | InitBinding.additionalBinding();
20 | }
21 | return userData;
22 | }
23 |
24 | void signup(IUser signupUser, XFile? thumbnail) async {
25 | if (thumbnail == null) {
26 | _submitSignup(signupUser);
27 | } else {
28 | var task = uploadXFile(thumbnail,
29 | '${signupUser.uid}/profile.${thumbnail.path.split('.').last}');
30 | task.snapshotEvents.listen((event) async {
31 | print(event.bytesTransferred);
32 | if (event.bytesTransferred == event.totalBytes &&
33 | event.state == TaskState.success) {
34 | var downloadUrl = await event.ref.getDownloadURL();
35 | var updatedUserData = signupUser.copyWith(thumbnail: downloadUrl);
36 | _submitSignup(updatedUserData);
37 | }
38 | });
39 | }
40 | }
41 |
42 | UploadTask uploadXFile(XFile file, String filename) {
43 | var f = File(file.path);
44 | var ref = FirebaseStorage.instance.ref().child('users').child(filename);
45 | final metadata = SettableMetadata(
46 | contentType: 'image/jpeg',
47 | customMetadata: {'picked-file-path': file.path});
48 | return ref.putFile(f, metadata);
49 | }
50 |
51 | void _submitSignup(IUser signupUser) async {
52 | var result = await UserRepository.signup(signupUser);
53 | if (result) {
54 | loginUser(signupUser.uid!);
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 |
31 | compileOptions {
32 | sourceCompatibility JavaVersion.VERSION_1_8
33 | targetCompatibility JavaVersion.VERSION_1_8
34 | }
35 |
36 | kotlinOptions {
37 | jvmTarget = '1.8'
38 | }
39 |
40 | sourceSets {
41 | main.java.srcDirs += 'src/main/kotlin'
42 | }
43 |
44 | defaultConfig {
45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46 | applicationId "com.instaclone.flutter_clone_instagram"
47 | minSdkVersion 19
48 | multiDexEnabled true
49 | targetSdkVersion flutter.targetSdkVersion
50 | versionCode flutterVersionCode.toInteger()
51 | versionName flutterVersionName
52 | }
53 |
54 | buildTypes {
55 | release {
56 | // TODO: Add your own signing config for the release build.
57 | // Signing with the debug keys for now, so `flutter run --release` works.
58 | signingConfig signingConfigs.debug
59 | }
60 | }
61 | }
62 |
63 | flutter {
64 | source '../..'
65 | }
66 |
67 | dependencies {
68 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
69 | }
70 |
--------------------------------------------------------------------------------
/lib/src/controller/bottom_nav_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clone_instagram/src/components/message_popup.dart';
5 | import 'package:flutter_clone_instagram/src/controller/upload_controller.dart';
6 | import 'package:flutter_clone_instagram/src/pages/upload.dart';
7 | import 'package:get/get.dart';
8 |
9 | enum PageName { HOME, SEARCH, UPLOAD, ACTIVITY, MYPAGE }
10 |
11 | class BottomNavController extends GetxController {
12 | static BottomNavController get to => Get.find();
13 | RxInt pageIndex = 0.obs;
14 | GlobalKey searchPageNaviationKey =
15 | GlobalKey();
16 | List bottomHistory = [0];
17 |
18 | void changeBottomNav(int value, {bool hasGesture = true}) {
19 | var page = PageName.values[value];
20 | switch (page) {
21 | case PageName.UPLOAD:
22 | Get.to(() => Upload(), binding: BindingsBuilder(() {
23 | Get.put(UploadController());
24 | }));
25 | break;
26 | case PageName.HOME:
27 | case PageName.SEARCH:
28 | case PageName.ACTIVITY:
29 | case PageName.MYPAGE:
30 | _changePage(value, hasGesture: hasGesture);
31 | break;
32 | }
33 | }
34 |
35 | void _changePage(int value, {bool hasGesture = true}) {
36 | pageIndex(value);
37 | if (!hasGesture) return;
38 | if (bottomHistory.last != value) {
39 | bottomHistory.add(value);
40 | }
41 | }
42 |
43 | Future willPopAction() async {
44 | if (bottomHistory.length == 1) {
45 | showDialog(
46 | context: Get.context!,
47 | builder: (context) => MessagePopup(
48 | message: '종료하시겠습니까?',
49 | okCallback: () {
50 | exit(0);
51 | },
52 | cancelCallback: Get.back,
53 | title: '시스템',
54 | ),
55 | );
56 | return true;
57 | } else {
58 | var page = PageName.values[bottomHistory.last];
59 | if (page == PageName.SEARCH) {
60 | var value = await searchPageNaviationKey.currentState!.maybePop();
61 | if (value) return false;
62 | }
63 |
64 | bottomHistory.removeLast();
65 | var index = bottomHistory.last;
66 | changeBottomNav(index, hasGesture: false);
67 | return false;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/lib/src/components/avatar_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:cached_network_image/cached_network_image.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | enum AvatarType { TYPE1, TYPE2, TYPE3 }
5 |
6 | class AvatarWidget extends StatelessWidget {
7 | bool? hasStory;
8 | String thumbPath;
9 | String? nickname;
10 | AvatarType type;
11 | double? size;
12 |
13 | AvatarWidget({
14 | Key? key,
15 | required this.type,
16 | required this.thumbPath,
17 | this.hasStory,
18 | this.nickname,
19 | this.size = 65,
20 | }) : super(key: key);
21 |
22 | Widget type1Widget() {
23 | return Container(
24 | margin: const EdgeInsets.symmetric(horizontal: 5),
25 | padding: const EdgeInsets.all(2),
26 | decoration: const BoxDecoration(
27 | gradient: LinearGradient(
28 | begin: Alignment.topRight,
29 | end: Alignment.bottomLeft,
30 | colors: [
31 | Colors.purple,
32 | Colors.orange,
33 | ],
34 | ),
35 | shape: BoxShape.circle,
36 | ),
37 | child: type2Widget(),
38 | );
39 | }
40 |
41 | Widget type2Widget() {
42 | return Container(
43 | padding: const EdgeInsets.all(2),
44 | decoration: const BoxDecoration(
45 | shape: BoxShape.circle,
46 | color: Colors.white,
47 | ),
48 | child: ClipRRect(
49 | borderRadius: BorderRadius.circular(size!),
50 | child: SizedBox(
51 | width: size,
52 | height: size,
53 | child: CachedNetworkImage(
54 | imageUrl: thumbPath,
55 | fit: BoxFit.cover,
56 | ),
57 | ),
58 | ),
59 | );
60 | }
61 |
62 | Widget type3Widget() {
63 | return Row(
64 | children: [
65 | type1Widget(),
66 | Text(
67 | nickname ?? '',
68 | style: const TextStyle(
69 | fontWeight: FontWeight.bold,
70 | fontSize: 16,
71 | ),
72 | ),
73 | ],
74 | );
75 | }
76 |
77 | @override
78 | Widget build(BuildContext context) {
79 | switch (type) {
80 | case AvatarType.TYPE1:
81 | return type1Widget();
82 | case AvatarType.TYPE2:
83 | return type2Widget();
84 | case AvatarType.TYPE3:
85 | return type3Widget();
86 | }
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/lib/src/components/message_popup.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | class MessagePopup extends StatelessWidget {
5 | final String? title;
6 | final String? message;
7 | final Function()? okCallback;
8 | final Function()? cancelCallback;
9 | const MessagePopup({
10 | Key? key,
11 | required this.title,
12 | required this.message,
13 | required this.okCallback,
14 | this.cancelCallback,
15 | }) : super(key: key);
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Material(
20 | color: Colors.transparent,
21 | child: Column(
22 | mainAxisAlignment: MainAxisAlignment.center,
23 | children: [
24 | ClipRRect(
25 | borderRadius: BorderRadius.circular(6),
26 | child: Container(
27 | color: Colors.white,
28 | padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 10),
29 | width: Get.width * 0.7,
30 | child: Column(
31 | children: [
32 | Text(
33 | title!,
34 | style: const TextStyle(
35 | fontWeight: FontWeight.bold,
36 | fontSize: 17,
37 | color: Colors.black,
38 | ),
39 | ),
40 | const SizedBox(height: 7),
41 | Text(
42 | message!,
43 | style: const TextStyle(
44 | fontSize: 14,
45 | color: Colors.black,
46 | ),
47 | ),
48 | const SizedBox(height: 15),
49 | Row(
50 | mainAxisAlignment: MainAxisAlignment.center,
51 | children: [
52 | ElevatedButton(onPressed: okCallback, child: Text('확인')),
53 | const SizedBox(width: 10),
54 | ElevatedButton(
55 | onPressed: cancelCallback,
56 | child: Text('취소'),
57 | style: ElevatedButton.styleFrom(
58 | primary: Colors.grey,
59 | ),
60 | )
61 | ],
62 | ),
63 | ],
64 | ),
65 | ),
66 | ),
67 | ],
68 | ),
69 | );
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/lib/src/components/user_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/avatar_widget.dart';
3 |
4 | class UserCard extends StatelessWidget {
5 | final String userId;
6 | final String description;
7 | const UserCard({
8 | Key? key,
9 | required this.userId,
10 | required this.description,
11 | }) : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Container(
16 | margin: const EdgeInsets.symmetric(horizontal: 3),
17 | width: 150,
18 | height: 220,
19 | decoration: BoxDecoration(
20 | borderRadius: BorderRadius.circular(5),
21 | border: Border.all(
22 | color: Colors.black12,
23 | ),
24 | ),
25 | child: Stack(
26 | children: [
27 | Positioned(
28 | left: 15,
29 | right: 15,
30 | top: 0,
31 | bottom: 0,
32 | child: Column(
33 | children: [
34 | const SizedBox(height: 10),
35 | AvatarWidget(
36 | type: AvatarType.TYPE2,
37 | thumbPath:
38 | 'https://thumbs.dreamstime.com/b/photo-portrait-cheerful-cool-swag-trend-trendy-guy-leaving-his-feedback-social-media-network-using-smart-phone-photo-145377495.jpg',
39 | size: 80,
40 | ),
41 | const SizedBox(height: 10),
42 | Text(
43 | userId,
44 | style: const TextStyle(
45 | fontWeight: FontWeight.bold,
46 | fontSize: 13,
47 | ),
48 | ),
49 | Text(
50 | description,
51 | style: const TextStyle(
52 | fontSize: 13,
53 | ),
54 | textAlign: TextAlign.center,
55 | ),
56 | ElevatedButton(onPressed: () {}, child: const Text('Follow'))
57 | ],
58 | ),
59 | ),
60 | Positioned(
61 | right: 5,
62 | top: 5,
63 | child: GestureDetector(
64 | onTap: () {},
65 | child: const Icon(
66 | Icons.close,
67 | size: 14,
68 | color: Colors.grey,
69 | ),
70 | ),
71 | ),
72 | ],
73 | ),
74 | );
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/src/models/post.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
2 |
3 | class Post {
4 | final String? id;
5 | final String? thumbnail;
6 | final String? description;
7 | final int? likeCount;
8 | final IUser? userInfo;
9 | final String? uid;
10 | final DateTime? createdAt;
11 | final DateTime? updatedAt;
12 | final DateTime? deletedAt;
13 |
14 | Post({
15 | this.id,
16 | this.thumbnail,
17 | this.description,
18 | this.likeCount,
19 | this.userInfo,
20 | this.uid,
21 | this.createdAt,
22 | this.updatedAt,
23 | this.deletedAt,
24 | });
25 |
26 | factory Post.init(IUser userInfo) {
27 | var time = DateTime.now();
28 | return Post(
29 | thumbnail: '',
30 | userInfo: userInfo,
31 | uid: userInfo.uid,
32 | description: '',
33 | createdAt: time,
34 | updatedAt: time,
35 | );
36 | }
37 |
38 | factory Post.fromJson(String docId, Map json) {
39 | return Post(
40 | id: json['id'] == null ? '' : json['id'] as String,
41 | thumbnail: json['thumbnail'] == null ? '' : json['thumbnail'] as String,
42 | description:
43 | json['description'] == null ? '' : json['description'] as String,
44 | likeCount: json['likeCount'] == null ? 0 : json['likeCount'] as int,
45 | userInfo:
46 | json['userInfo'] == null ? null : IUser.fromJson(json['userInfo']),
47 | uid: json['uid'] == null ? '' : json['uid'] as String,
48 | createdAt: json['createdAt'] == null
49 | ? DateTime.now()
50 | : json['createdAt'].toDate(),
51 | updatedAt: json['updatedAt'] == null
52 | ? DateTime.now()
53 | : json['updatedAt'].toDate(),
54 | deletedAt: json['deletedAt'] == null ? null : json['deletedAt'].toDate(),
55 | );
56 | }
57 |
58 | Post copyWith({
59 | String? id,
60 | String? thumbnail,
61 | String? description,
62 | int? likeCount,
63 | IUser? userInfo,
64 | String? uid,
65 | DateTime? createdAt,
66 | DateTime? updatedAt,
67 | DateTime? deletedAt,
68 | }) {
69 | return Post(
70 | id: id ?? this.id,
71 | thumbnail: thumbnail ?? this.thumbnail,
72 | description: description ?? this.description,
73 | likeCount: likeCount ?? this.likeCount,
74 | userInfo: userInfo ?? this.userInfo,
75 | uid: uid ?? this.uid,
76 | createdAt: createdAt ?? this.createdAt,
77 | updatedAt: updatedAt ?? this.updatedAt,
78 | deletedAt: deletedAt ?? this.deletedAt,
79 | );
80 | }
81 |
82 | Map toMap() {
83 | return {
84 | 'id': id,
85 | 'thumbnail': thumbnail,
86 | 'description': description,
87 | 'likeCount': likeCount,
88 | 'userInfo': userInfo!.toMap(),
89 | 'uid': uid,
90 | 'createdAt': createdAt,
91 | 'updatedAt': updatedAt,
92 | 'deletedAt': deletedAt,
93 | };
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/lib/src/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
3 | import 'package:flutter_clone_instagram/src/controller/bottom_nav_controller.dart';
4 | import 'package:flutter_clone_instagram/src/pages/active_history.dart';
5 | import 'package:flutter_clone_instagram/src/pages/home.dart';
6 | import 'package:flutter_clone_instagram/src/pages/mypage.dart';
7 | import 'package:flutter_clone_instagram/src/pages/search.dart';
8 | import 'package:get/get.dart';
9 |
10 | class App extends GetView {
11 | const App({Key? key}) : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return WillPopScope(
16 | child: Obx(
17 | () => Scaffold(
18 | body: IndexedStack(
19 | index: controller.pageIndex.value,
20 | children: [
21 | const Home(),
22 | Navigator(
23 | key: controller.searchPageNaviationKey,
24 | onGenerateRoute: (routeSetting) {
25 | return MaterialPageRoute(
26 | builder: (context) => const Search(),
27 | );
28 | },
29 | ),
30 | Container(),
31 | const ActiveHistory(),
32 | const MyPage(),
33 | ],
34 | ),
35 | bottomNavigationBar: BottomNavigationBar(
36 | type: BottomNavigationBarType.fixed,
37 | showSelectedLabels: false,
38 | showUnselectedLabels: false,
39 | currentIndex: controller.pageIndex.value,
40 | elevation: 0,
41 | onTap: controller.changeBottomNav,
42 | items: [
43 | BottomNavigationBarItem(
44 | icon: ImageData(IconsPath.homeOff),
45 | activeIcon: ImageData(IconsPath.homeOn),
46 | label: 'home',
47 | ),
48 | BottomNavigationBarItem(
49 | icon: ImageData(IconsPath.searchOff),
50 | activeIcon: ImageData(IconsPath.searchOn),
51 | label: 'home',
52 | ),
53 | BottomNavigationBarItem(
54 | icon: ImageData(IconsPath.uploadIcon),
55 | label: 'home',
56 | ),
57 | BottomNavigationBarItem(
58 | icon: ImageData(IconsPath.activeOff),
59 | activeIcon: ImageData(IconsPath.activeOn),
60 | label: 'home',
61 | ),
62 | BottomNavigationBarItem(
63 | icon: Container(
64 | width: 30,
65 | height: 30,
66 | decoration: const BoxDecoration(
67 | shape: BoxShape.circle,
68 | color: Colors.grey,
69 | ),
70 | ),
71 | label: 'home',
72 | ),
73 | ],
74 | ),
75 | ),
76 | ),
77 | onWillPop: controller.willPopAction,
78 | );
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/lib/src/pages/active_history.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/avatar_widget.dart';
3 |
4 | class ActiveHistory extends StatelessWidget {
5 | const ActiveHistory({Key? key}) : super(key: key);
6 |
7 | Widget _activeitemOne() {
8 | return Padding(
9 | padding: const EdgeInsets.symmetric(vertical: 10),
10 | child: Row(
11 | children: [
12 | AvatarWidget(
13 | type: AvatarType.TYPE2,
14 | size: 40,
15 | thumbPath:
16 | 'https://thumbs.dreamstime.com/b/photo-portrait-cheerful-cool-swag-trend-trendy-guy-leaving-his-feedback-social-media-network-using-smart-phone-photo-145377495.jpg',
17 | ),
18 | const SizedBox(width: 10),
19 | const Expanded(
20 | child: Text.rich(
21 | TextSpan(
22 | text: '개남님',
23 | style: TextStyle(
24 | fontWeight: FontWeight.bold,
25 | ),
26 | children: [
27 | TextSpan(
28 | text: '님이 회원님의 게시물을 좋아합니다.',
29 | style: TextStyle(
30 | fontWeight: FontWeight.normal,
31 | ),
32 | ),
33 | TextSpan(
34 | text: ' 5 일전',
35 | style: TextStyle(
36 | fontWeight: FontWeight.normal,
37 | fontSize: 13,
38 | color: Colors.black54,
39 | ),
40 | ),
41 | ]),
42 | ),
43 | )
44 | ],
45 | ),
46 | );
47 | }
48 |
49 | Widget _newRecentlyActiveView(String title) {
50 | return Padding(
51 | padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10),
52 | child: Column(
53 | crossAxisAlignment: CrossAxisAlignment.stretch,
54 | children: [
55 | Text(
56 | title,
57 | style: const TextStyle(
58 | fontSize: 16,
59 | ),
60 | ),
61 | const SizedBox(height: 15),
62 | _activeitemOne(),
63 | _activeitemOne(),
64 | _activeitemOne(),
65 | _activeitemOne(),
66 | _activeitemOne(),
67 | ],
68 | ),
69 | );
70 | }
71 |
72 | @override
73 | Widget build(BuildContext context) {
74 | return Scaffold(
75 | backgroundColor: Colors.white,
76 | appBar: AppBar(
77 | elevation: 0,
78 | centerTitle: true,
79 | title: const Text(
80 | '활동',
81 | style: TextStyle(
82 | fontSize: 22,
83 | fontWeight: FontWeight.bold,
84 | color: Colors.black,
85 | ),
86 | ),
87 | ),
88 | body: SingleChildScrollView(
89 | child: Column(
90 | children: [
91 | _newRecentlyActiveView('오늘'),
92 | _newRecentlyActiveView('이번주'),
93 | _newRecentlyActiveView('이번달'),
94 | ],
95 | ),
96 | ),
97 | );
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/lib/src/pages/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/avatar_widget.dart';
3 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
4 | import 'package:flutter_clone_instagram/src/components/post_widget.dart';
5 | import 'package:flutter_clone_instagram/src/controller/home_controller.dart';
6 | import 'package:get/get.dart';
7 |
8 | class Home extends GetView {
9 | const Home({Key? key}) : super(key: key);
10 |
11 | Widget _myStory() {
12 | return Stack(
13 | children: [
14 | AvatarWidget(
15 | type: AvatarType.TYPE2,
16 | thumbPath:
17 | 'https://assets-global.website-files.com/6005fac27a49a9cd477afb63/6057684e5923ad2ae43c8150_bavassano_homepage_before.jpg',
18 | size: 70,
19 | ),
20 | Positioned(
21 | right: 5,
22 | bottom: 0,
23 | child: Container(
24 | width: 25,
25 | height: 25,
26 | decoration: BoxDecoration(
27 | shape: BoxShape.circle,
28 | color: Colors.blue,
29 | border: Border.all(color: Colors.white, width: 2),
30 | ),
31 | child: const Center(
32 | child: Text(
33 | '+',
34 | style: TextStyle(
35 | fontSize: 20,
36 | color: Colors.white,
37 | height: 1.1,
38 | ),
39 | ),
40 | ),
41 | ),
42 | )
43 | ],
44 | );
45 | }
46 |
47 | Widget _storyBoardList() {
48 | return SingleChildScrollView(
49 | scrollDirection: Axis.horizontal,
50 | child: Row(children: [
51 | const SizedBox(width: 20),
52 | _myStory(),
53 | const SizedBox(width: 5),
54 | ...List.generate(
55 | 100,
56 | (index) => AvatarWidget(
57 | type: AvatarType.TYPE1,
58 | thumbPath:
59 | 'https://images.ctfassets.net/hrltx12pl8hq/3j5RylRv1ZdswxcBaMi0y7/b84fa97296bd2350db6ea194c0dce7db/Music_Icon.jpg',
60 | ),
61 | ),
62 | ]),
63 | );
64 | }
65 |
66 | Widget _postList() {
67 | return Obx(() => Column(
68 | children: List.generate(controller.postList.length,
69 | (index) => PostWidget(post: controller.postList[index])).toList(),
70 | ));
71 | }
72 |
73 | @override
74 | Widget build(BuildContext context) {
75 | return Scaffold(
76 | appBar: AppBar(
77 | elevation: 0,
78 | title: ImageData(IconsPath.logo, width: 270),
79 | actions: [
80 | GestureDetector(
81 | onTap: () {},
82 | child: Padding(
83 | padding: const EdgeInsets.all(15.0),
84 | child: ImageData(
85 | IconsPath.directMessage,
86 | width: 50,
87 | ),
88 | ),
89 | )
90 | ],
91 | ),
92 | body: ListView(
93 | children: [
94 | _storyBoardList(),
95 | _postList(),
96 | ],
97 | ),
98 | );
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/lib/src/pages/search/search_focus.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
3 | import 'package:flutter_clone_instagram/src/controller/bottom_nav_controller.dart';
4 | import 'package:get/get.dart';
5 |
6 | class SearchFocus extends StatefulWidget {
7 | SearchFocus({Key? key}) : super(key: key);
8 |
9 | @override
10 | State createState() => _SearchFocusState();
11 | }
12 |
13 | class _SearchFocusState extends State
14 | with TickerProviderStateMixin {
15 | late TabController tabController;
16 |
17 | @override
18 | void initState() {
19 | super.initState();
20 | tabController = TabController(length: 5, vsync: this);
21 | }
22 |
23 | Widget _tabMenuOne(String menu) {
24 | return Padding(
25 | padding: EdgeInsets.symmetric(vertical: 15.0),
26 | child: Text(
27 | menu,
28 | style: TextStyle(fontSize: 15, color: Colors.black),
29 | ),
30 | );
31 | }
32 |
33 | PreferredSizeWidget _tabMenu() {
34 | return PreferredSize(
35 | child: Container(
36 | height: AppBar().preferredSize.height,
37 | width: Size.infinite.width,
38 | decoration: const BoxDecoration(
39 | border: Border(bottom: BorderSide(color: Color(0xffe4e4e4)))),
40 | child: TabBar(
41 | controller: tabController,
42 | indicatorColor: Colors.black,
43 | tabs: [
44 | _tabMenuOne('인기'),
45 | _tabMenuOne('계정'),
46 | _tabMenuOne('오디오'),
47 | _tabMenuOne('태그'),
48 | _tabMenuOne('장소'),
49 | ],
50 | ),
51 | ),
52 | preferredSize: Size.fromHeight(AppBar().preferredSize.height),
53 | );
54 | }
55 |
56 | Widget _body() {
57 | return TabBarView(
58 | controller: tabController,
59 | children: const [
60 | Center(child: Text('인기페이지')),
61 | Center(child: Text('계정페이지')),
62 | Center(child: Text('오디오페이지')),
63 | Center(child: Text('태그페이지')),
64 | Center(child: Text('장소페이지')),
65 | ],
66 | );
67 | }
68 |
69 | @override
70 | Widget build(BuildContext context) {
71 | return Scaffold(
72 | appBar: AppBar(
73 | elevation: 0,
74 | leading: GestureDetector(
75 | onTap: BottomNavController.to.willPopAction,
76 | child: Padding(
77 | padding: const EdgeInsets.all(15.0),
78 | child: ImageData(
79 | IconsPath.backBtnIcon,
80 | ),
81 | ),
82 | ),
83 | titleSpacing: 0,
84 | title: Container(
85 | margin: const EdgeInsets.only(right: 15),
86 | decoration: BoxDecoration(
87 | borderRadius: BorderRadius.circular(6),
88 | color: const Color(0xffefefef),
89 | ),
90 | child: const TextField(
91 | decoration: InputDecoration(
92 | border: InputBorder.none,
93 | hintText: '검색',
94 | contentPadding: EdgeInsets.only(left: 15, top: 7, bottom: 7),
95 | isDense: true,
96 | ),
97 | ),
98 | ),
99 | bottom: _tabMenu(),
100 | ),
101 | body: _body(),
102 | );
103 | }
104 | }
105 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/lib/src/pages/search.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:cached_network_image/cached_network_image.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_clone_instagram/src/pages/search/search_focus.dart';
6 | import 'package:get/get.dart';
7 | import 'package:quiver/iterables.dart';
8 |
9 | class Search extends StatefulWidget {
10 | const Search({Key? key}) : super(key: key);
11 |
12 | @override
13 | State createState() => _SearchState();
14 | }
15 |
16 | class _SearchState extends State {
17 | List> groupBox = [[], [], []];
18 | List groupIndex = [0, 0, 0];
19 |
20 | @override
21 | void initState() {
22 | super.initState();
23 | for (var i = 0; i < 100; i++) {
24 | var gi = groupIndex.indexOf(min(groupIndex)!);
25 | var size = 1;
26 | if (gi != 1) {
27 | size = Random().nextInt(100) % 2 == 0 ? 1 : 2;
28 | }
29 | groupBox[gi].add(size);
30 | groupIndex[gi] += size;
31 | }
32 | }
33 |
34 | Widget _appbar() {
35 | return Row(
36 | children: [
37 | Expanded(
38 | child: GestureDetector(
39 | onTap: () {
40 | Navigator.push(context,
41 | MaterialPageRoute(builder: (context) => SearchFocus()));
42 | },
43 | child: Container(
44 | padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 10),
45 | margin: const EdgeInsets.only(left: 15),
46 | decoration: BoxDecoration(
47 | borderRadius: BorderRadius.circular(6),
48 | color: const Color(0xffefefef),
49 | ),
50 | child: Row(
51 | children: const [
52 | Icon(Icons.search),
53 | Text(
54 | '검색',
55 | style: TextStyle(
56 | fontSize: 15,
57 | color: Color(0xff838383),
58 | ),
59 | )
60 | ],
61 | ),
62 | ),
63 | ),
64 | ),
65 | const Padding(
66 | padding: EdgeInsets.all(15.0),
67 | child: Icon(Icons.location_pin),
68 | ),
69 | ],
70 | );
71 | }
72 |
73 | Widget _body() {
74 | return SingleChildScrollView(
75 | child: Row(
76 | crossAxisAlignment: CrossAxisAlignment.start,
77 | children: List.generate(
78 | groupBox.length,
79 | (index) => Expanded(
80 | child: Column(
81 | children: List.generate(
82 | groupBox[index].length,
83 | (jndex) => Container(
84 | height: Get.width * 0.33 * groupBox[index][jndex],
85 | decoration: BoxDecoration(
86 | border: Border.all(color: Colors.white),
87 | color: Colors.primaries[
88 | Random().nextInt(Colors.primaries.length)]),
89 | child: CachedNetworkImage(
90 | imageUrl:
91 | 'https://assets-global.website-files.com/6005fac27a49a9cd477afb63/6057684e5923ad2ae43c8150_bavassano_homepage_before.jpg',
92 | fit: BoxFit.cover,
93 | ),
94 | ),
95 | ).toList(),
96 | ),
97 | ),
98 | ).toList(),
99 | ),
100 | );
101 | }
102 |
103 | @override
104 | Widget build(BuildContext context) {
105 | return Scaffold(
106 | body: SafeArea(
107 | child: Column(
108 | children: [
109 | _appbar(),
110 | Expanded(child: _body()),
111 | ],
112 | ),
113 | ),
114 | );
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/lib/src/components/image_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | class ImageData extends StatelessWidget {
5 | String icon;
6 | final double? width;
7 | ImageData(
8 | this.icon, {
9 | Key? key,
10 | this.width = 55,
11 | }) : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Image.asset(
16 | icon,
17 | width: width! / Get.mediaQuery.devicePixelRatio,
18 | );
19 | }
20 | }
21 |
22 | class IconsPath {
23 | static String get homeOff => 'assets/images/bottom_nav_home_off_icon.jpg';
24 | static String get homeOn => 'assets/images/bottom_nav_home_on_icon.jpg';
25 | static String get searchOff => 'assets/images/bottom_nav_search_off_icon.jpg';
26 | static String get searchOn => 'assets/images/bottom_nav_search_on_icon.jpg';
27 | static String get uploadIcon => 'assets/images/bottom_nav_upload_icon.jpg';
28 | static String get activeOff => 'assets/images/bottom_nav_active_off_icon.jpg';
29 | static String get activeOn => 'assets/images/bottom_nav_active_on_icon.jpg';
30 | static String get logo => 'assets/images/logo.jpg';
31 | static String get directMessage => 'assets/images/direct_msg_icon.jpg';
32 | static String get plusIcon => 'assets/images/plus_icon.png';
33 | static String get postMoreIcon => 'assets/images/more_icon.jpg';
34 | static String get likeOffIcon => 'assets/images/like_off_icon.jpg';
35 | static String get likeOnIcon => 'assets/images/like_on_icon.jpg';
36 | static String get replyIcon => 'assets/images/reply_icon.jpg';
37 | static String get bookMarkOffIcon => 'assets/images/book_mark_off_icon.jpg';
38 | static String get bookMarkOnIcon => 'assets/images/book_mark_on_icon.jpg';
39 | static String get backBtnIcon => 'assets/images/back_icon.jpg';
40 | static String get menuIcon => 'assets/images/menu_icon.jpg';
41 | static String get addFriend => 'assets/images/add_friend_icon.jpg';
42 | static String get gridViewOff => 'assets/images/grid_view_off_icon.jpg';
43 | static String get gridViewOn => 'assets/images/grid_view_on_icon.jpg';
44 | static String get myTagImageOff => 'assets/images/my_tag_image_off_icon.jpg';
45 | static String get myTagImageOn => 'assets/images/my_tag_image_on_icon.jpg';
46 | static String get nextImage => 'assets/images/upload_next_icon.jpg';
47 | static String get closeImage => 'assets/images/close_icon.jpg';
48 | static String get imageSelectIcon => 'assets/images/image_select_icon.jpg';
49 | static String get cameraIcon => 'assets/images/camera_icon.jpg';
50 | static String get uploadComplete => 'assets/images/upload_complete_icon.jpg';
51 | static String get mypageBottomSheet01 =>
52 | 'assets/images/mypage_bottom_sheet_01.jpg';
53 | static String get mypageBottomSheet02 =>
54 | 'assets/images/mypage_bottom_sheet_02.jpg';
55 | static String get mypageBottomSheet03 =>
56 | 'assets/images/mypage_bottom_sheet_03.jpg';
57 | static String get mypageBottomSheet04 =>
58 | 'assets/images/mypage_bottom_sheet_04.jpg';
59 | static String get mypageBottomSheet05 =>
60 | 'assets/images/mypage_bottom_sheet_05.jpg';
61 | static String get mypageBottomSheetSetting01 =>
62 | 'assets/images/mypage_bottom_sheet_setting_01.jpg';
63 | static String get mypageBottomSheetSetting02 =>
64 | 'assets/images/mypage_bottom_sheet_setting_02.jpg';
65 | static String get mypageBottomSheetSetting03 =>
66 | 'assets/images/mypage_bottom_sheet_setting_03.jpg';
67 | static String get mypageBottomSheetSetting04 =>
68 | 'assets/images/mypage_bottom_sheet_setting_04.jpg';
69 | static String get mypageBottomSheetSetting05 =>
70 | 'assets/images/mypage_bottom_sheet_setting_05.jpg';
71 | static String get mypageBottomSheetSetting06 =>
72 | 'assets/images/mypage_bottom_sheet_setting_06.jpg';
73 | static String get mypageBottomSheetSetting07 =>
74 | 'assets/images/mypage_bottom_sheet_setting_07.jpg';
75 | }
76 |
--------------------------------------------------------------------------------
/lib/src/pages/signup_page.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
5 | import 'package:flutter_clone_instagram/src/models/instagram_user.dart';
6 | import 'package:image_picker/image_picker.dart';
7 |
8 | class SignupPage extends StatefulWidget {
9 | final String uid;
10 | const SignupPage({Key? key, required this.uid}) : super(key: key);
11 |
12 | @override
13 | State createState() => _SignupPageState();
14 | }
15 |
16 | class _SignupPageState extends State {
17 | TextEditingController nicknameController = TextEditingController();
18 | TextEditingController descriptionController = TextEditingController();
19 | final ImagePicker _picker = ImagePicker();
20 | XFile? thumbnailXFild;
21 |
22 | void update() => setState(() {});
23 |
24 | Widget _avatar() {
25 | return Column(
26 | children: [
27 | ClipRRect(
28 | borderRadius: BorderRadius.circular(100),
29 | child: SizedBox(
30 | width: 100,
31 | height: 100,
32 | child: thumbnailXFild != null
33 | ? Image.file(
34 | File(thumbnailXFild!.path),
35 | fit: BoxFit.cover,
36 | )
37 | : Image.asset('assets/images/default_image.png',
38 | fit: BoxFit.cover),
39 | ),
40 | ),
41 | const SizedBox(height: 15),
42 | ElevatedButton(
43 | onPressed: () async {
44 | thumbnailXFild =
45 | await _picker.pickImage(source: ImageSource.gallery);
46 | update();
47 | },
48 | child: Text('이미지 변경'),
49 | )
50 | ],
51 | );
52 | }
53 |
54 | Widget _nickname() {
55 | return Padding(
56 | padding: const EdgeInsets.symmetric(horizontal: 50.0),
57 | child: TextField(
58 | controller: nicknameController,
59 | decoration: const InputDecoration(
60 | contentPadding: EdgeInsets.all(10),
61 | hintText: '닉네임',
62 | ),
63 | ),
64 | );
65 | }
66 |
67 | Widget _description() {
68 | return Padding(
69 | padding: const EdgeInsets.symmetric(horizontal: 50.0),
70 | child: TextField(
71 | controller: descriptionController,
72 | decoration: const InputDecoration(
73 | contentPadding: EdgeInsets.all(10),
74 | hintText: '설명',
75 | ),
76 | ),
77 | );
78 | }
79 |
80 | @override
81 | Widget build(BuildContext context) {
82 | return Scaffold(
83 | backgroundColor: Colors.white,
84 | appBar: AppBar(
85 | elevation: 0,
86 | centerTitle: true,
87 | title: const Text(
88 | '회원가입',
89 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
90 | ),
91 | ),
92 | body: SingleChildScrollView(
93 | child: Column(
94 | crossAxisAlignment: CrossAxisAlignment.stretch,
95 | children: [
96 | const SizedBox(height: 30),
97 | _avatar(),
98 | const SizedBox(height: 30),
99 | _nickname(),
100 | const SizedBox(height: 30),
101 | _description(),
102 | ],
103 | ),
104 | ),
105 | bottomNavigationBar: Container(
106 | padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 50),
107 | child: ElevatedButton(
108 | onPressed: () {
109 | var signupUser = IUser(
110 | uid: widget.uid,
111 | nickname: nicknameController.text,
112 | description: descriptionController.text,
113 | );
114 | AuthController.to.signup(signupUser, thumbnailXFild);
115 | },
116 | child: const Text('회원가입'),
117 | ),
118 | ),
119 | );
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_clone_instagram
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=3.0.0 <4.0.0"
22 |
23 | # Dependencies specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | flutter:
31 | sdk: flutter
32 |
33 | # The following adds the Cupertino Icons font to your application.
34 | # Use with the CupertinoIcons class for iOS style icons.
35 | cupertino_icons: ^1.0.2
36 | get: ^4.6.1
37 | cached_network_image: ^3.2.0
38 | expandable_text: ^2.2.0
39 | quiver: ^3.0.1+1
40 | photo_manager: ^2.7.1
41 |
42 | firebase_core: ^2.15.0
43 | firebase_auth: ^4.7.1
44 | google_sign_in: ^6.1.0
45 | image_picker: ^0.8.4+11
46 | cloud_firestore: ^4.3.2
47 | firebase_storage: ^11.0.11
48 | photofilters: ^3.0.1
49 | uuid: ^3.0.6
50 | timeago: ^3.2.2
51 |
52 | dev_dependencies:
53 | flutter_test:
54 | sdk: flutter
55 |
56 | # The "flutter_lints" package below contains a set of recommended lints to
57 | # encourage good coding practices. The lint set provided by the package is
58 | # activated in the `analysis_options.yaml` file located at the root of your
59 | # package. See that file for information about deactivating specific lint
60 | # rules and activating additional ones.
61 | flutter_lints: ^1.0.0
62 |
63 | # For information on the generic Dart part of this file, see the
64 | # following page: https://dart.dev/tools/pub/pubspec
65 |
66 | # The following section is specific to Flutter.
67 | flutter:
68 | # The following line ensures that the Material Icons font is
69 | # included with your application, so that you can use the icons in
70 | # the material Icons class.
71 | uses-material-design: true
72 |
73 | # To add assets to your application, add an assets section, like this:
74 | assets:
75 | - assets/images/
76 |
77 | # An image asset can refer to one or more resolution-specific "variants", see
78 | # https://flutter.dev/assets-and-images/#resolution-aware.
79 |
80 | # For details regarding adding assets from package dependencies, see
81 | # https://flutter.dev/assets-and-images/#from-packages
82 |
83 | # To add custom fonts to your application, add a fonts section here,
84 | # in this "flutter" section. Each entry in this list should have a
85 | # "family" key with the font family name, and a "fonts" key with a
86 | # list giving the asset and other descriptors for the font. For
87 | # example:
88 | # fonts:
89 | # - family: Schyler
90 | # fonts:
91 | # - asset: fonts/Schyler-Regular.ttf
92 | # - asset: fonts/Schyler-Italic.ttf
93 | # style: italic
94 | # - family: Trajan Pro
95 | # fonts:
96 | # - asset: fonts/TrajanPro.ttf
97 | # - asset: fonts/TrajanPro_Bold.ttf
98 | # weight: 700
99 | #
100 | # For details regarding fonts from package dependencies,
101 | # see https://flutter.dev/custom-fonts/#from-packages
102 |
--------------------------------------------------------------------------------
/lib/src/components/post_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:cached_network_image/cached_network_image.dart';
2 | import 'package:expandable_text/expandable_text.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clone_instagram/src/components/avatar_widget.dart';
5 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
6 | import 'package:flutter_clone_instagram/src/models/post.dart';
7 | import 'package:timeago/timeago.dart' as timeago;
8 |
9 | class PostWidget extends StatelessWidget {
10 | final Post post;
11 | const PostWidget({Key? key, required this.post}) : super(key: key);
12 |
13 | Widget _header() {
14 | return Padding(
15 | padding: const EdgeInsets.symmetric(horizontal: 15.0),
16 | child: Row(
17 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
18 | children: [
19 | AvatarWidget(
20 | type: AvatarType.TYPE3,
21 | nickname: post.userInfo!.nickname,
22 | size: 40,
23 | thumbPath: post.userInfo!.thumbnail!),
24 | GestureDetector(
25 | onTap: () {},
26 | child: Padding(
27 | padding: const EdgeInsets.all(8.0),
28 | child: ImageData(
29 | IconsPath.postMoreIcon,
30 | width: 30,
31 | ),
32 | ),
33 | )
34 | ],
35 | ),
36 | );
37 | }
38 |
39 | Widget _image() {
40 | return CachedNetworkImage(imageUrl: post.thumbnail!);
41 | }
42 |
43 | Widget _infoCount() {
44 | return Padding(
45 | padding: const EdgeInsets.symmetric(horizontal: 15.0),
46 | child: Row(
47 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
48 | children: [
49 | Row(
50 | children: [
51 | ImageData(
52 | IconsPath.likeOffIcon,
53 | width: 65,
54 | ),
55 | const SizedBox(width: 15),
56 | ImageData(
57 | IconsPath.replyIcon,
58 | width: 60,
59 | ),
60 | const SizedBox(width: 15),
61 | ImageData(
62 | IconsPath.directMessage,
63 | width: 55,
64 | ),
65 | ],
66 | ),
67 | ImageData(
68 | IconsPath.bookMarkOffIcon,
69 | width: 50,
70 | ),
71 | ],
72 | ),
73 | );
74 | }
75 |
76 | Widget _infoDescription() {
77 | return Padding(
78 | padding: const EdgeInsets.symmetric(horizontal: 15.0),
79 | child: Column(
80 | crossAxisAlignment: CrossAxisAlignment.stretch,
81 | children: [
82 | Text(
83 | '좋아요 ${post.likeCount ?? 0}개',
84 | style: const TextStyle(fontWeight: FontWeight.bold),
85 | ),
86 | ExpandableText(
87 | post.description ?? '',
88 | prefixText: post.userInfo!.nickname,
89 | onPrefixTap: () {
90 | print('개발하는남자 페이지 이동');
91 | },
92 | prefixStyle: const TextStyle(fontWeight: FontWeight.bold),
93 | expandText: '더보기',
94 | collapseText: '접기',
95 | maxLines: 3,
96 | expandOnTextTap: true,
97 | collapseOnTextTap: true,
98 | linkColor: Colors.grey,
99 | )
100 | ],
101 | ),
102 | );
103 | }
104 |
105 | Widget _replyTextBtn() {
106 | return GestureDetector(
107 | onTap: () {},
108 | child: const Padding(
109 | padding: EdgeInsets.symmetric(horizontal: 15.0),
110 | child: Text(
111 | '댓글 199개 모두 보기',
112 | style: TextStyle(color: Colors.grey, fontSize: 13),
113 | ),
114 | ),
115 | );
116 | }
117 |
118 | Widget _dateAgo() {
119 | return Padding(
120 | padding: const EdgeInsets.symmetric(horizontal: 15.0),
121 | child: Text(
122 | timeago.format(post.createdAt!),
123 | style: const TextStyle(color: Colors.grey, fontSize: 11),
124 | ),
125 | );
126 | }
127 |
128 | @override
129 | Widget build(BuildContext context) {
130 | return Container(
131 | margin: const EdgeInsets.only(top: 20),
132 | child: Column(
133 | crossAxisAlignment: CrossAxisAlignment.stretch,
134 | children: [
135 | _header(),
136 | const SizedBox(height: 15),
137 | _image(),
138 | const SizedBox(height: 15),
139 | _infoCount(),
140 | const SizedBox(height: 5),
141 | _infoDescription(),
142 | const SizedBox(height: 5),
143 | _replyTextBtn(),
144 | const SizedBox(height: 5),
145 | _dateAgo(),
146 | ],
147 | ),
148 | );
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/lib/src/pages/upload/upload_description.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
3 | import 'package:flutter_clone_instagram/src/controller/upload_controller.dart';
4 | import 'package:get/get.dart';
5 |
6 | class UploadDescription extends GetView {
7 | const UploadDescription({Key? key}) : super(key: key);
8 |
9 | Widget _description() {
10 | return Padding(
11 | padding: const EdgeInsets.all(15.0),
12 | child: Row(
13 | children: [
14 | SizedBox(
15 | width: 60,
16 | height: 60,
17 | child: Image.file(
18 | controller.filteredImage!,
19 | fit: BoxFit.cover,
20 | ),
21 | ),
22 | Expanded(
23 | child: TextField(
24 | controller: controller.textEditingController,
25 | maxLines: null,
26 | decoration: const InputDecoration(
27 | border: InputBorder.none,
28 | focusedBorder: InputBorder.none,
29 | enabledBorder: InputBorder.none,
30 | errorBorder: InputBorder.none,
31 | disabledBorder: InputBorder.none,
32 | contentPadding: EdgeInsets.only(left: 15),
33 | hintText: '문구 입력...',
34 | ),
35 | ),
36 | ),
37 | ],
38 | ),
39 | );
40 | }
41 |
42 | Widget infoOnt(String title) {
43 | return Padding(
44 | padding: const EdgeInsets.symmetric(vertical: 7, horizontal: 15),
45 | child: Text(
46 | title,
47 | style: const TextStyle(fontSize: 17),
48 | ),
49 | );
50 | }
51 |
52 | Widget get line => const Divider(color: Colors.grey);
53 |
54 | Widget snsInfo() {
55 | return Padding(
56 | padding: EdgeInsets.symmetric(horizontal: 15),
57 | child: Column(
58 | children: [
59 | Row(
60 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
61 | children: [
62 | const Text(
63 | 'Facebook',
64 | style: TextStyle(fontSize: 17),
65 | ),
66 | Switch(value: false, onChanged: (bool value) {})
67 | ],
68 | ),
69 | Row(
70 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
71 | children: [
72 | const Text(
73 | 'Twitter',
74 | style: TextStyle(fontSize: 17),
75 | ),
76 | Switch(value: true, onChanged: (bool value) {})
77 | ],
78 | ),
79 | Row(
80 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
81 | children: [
82 | const Text(
83 | 'Tumblr',
84 | style: TextStyle(fontSize: 17),
85 | ),
86 | Switch(value: false, onChanged: (bool value) {})
87 | ],
88 | )
89 | ],
90 | ),
91 | );
92 | }
93 |
94 | @override
95 | Widget build(BuildContext context) {
96 | return Scaffold(
97 | backgroundColor: Colors.white,
98 | appBar: AppBar(
99 | elevation: 0,
100 | leading: GestureDetector(
101 | onTap: Get.back,
102 | child: Padding(
103 | padding: const EdgeInsets.all(15.0),
104 | child: ImageData(
105 | IconsPath.backBtnIcon,
106 | width: 50,
107 | ),
108 | ),
109 | ),
110 | title: const Text(
111 | '새 게시물',
112 | style: TextStyle(
113 | fontWeight: FontWeight.bold,
114 | fontSize: 20,
115 | ),
116 | ),
117 | actions: [
118 | GestureDetector(
119 | onTap: controller.uplaodPost,
120 | child: Padding(
121 | padding: EdgeInsets.all(15),
122 | child: ImageData(
123 | IconsPath.uploadComplete,
124 | width: 50,
125 | ),
126 | ),
127 | )
128 | ],
129 | ),
130 | body: Stack(
131 | children: [
132 | Positioned(
133 | left: 0,
134 | right: 0,
135 | bottom: 0,
136 | top: 0,
137 | child: GestureDetector(
138 | onTap: controller.unfocusKeyboard,
139 | child: SingleChildScrollView(
140 | child: Column(
141 | crossAxisAlignment: CrossAxisAlignment.stretch,
142 | children: [
143 | _description(),
144 | line,
145 | infoOnt('사람 태그하기'),
146 | line,
147 | infoOnt('위치 추가'),
148 | line,
149 | infoOnt('다른 미디어에도 게시'),
150 | snsInfo(),
151 | ],
152 | ),
153 | ),
154 | ),
155 | ),
156 | ],
157 | ),
158 | );
159 | }
160 | }
161 |
--------------------------------------------------------------------------------
/lib/src/controller/upload_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:firebase_storage/firebase_storage.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_clone_instagram/src/components/message_popup.dart';
6 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
7 | import 'package:flutter_clone_instagram/src/models/post.dart';
8 | import 'package:flutter_clone_instagram/src/pages/upload/upload_description.dart';
9 | import 'package:flutter_clone_instagram/src/repository/post_repository.dart';
10 | import 'package:flutter_clone_instagram/src/utils/data_util.dart';
11 | import 'package:get/get.dart';
12 | import 'package:image_picker/image_picker.dart';
13 | import 'package:photo_manager/photo_manager.dart';
14 | import 'package:path/path.dart';
15 | import 'package:image/image.dart' as imageLib;
16 | import 'package:photofilters/filters/preset_filters.dart';
17 | import 'package:photofilters/widgets/photo_filter.dart';
18 |
19 | class UploadController extends GetxController {
20 | var albums = [];
21 | RxList imageList = [].obs;
22 | RxString headerTitle = ''.obs;
23 | TextEditingController textEditingController = TextEditingController();
24 | Rx selectedImage = AssetEntity(
25 | id: '0',
26 | typeInt: 0,
27 | width: 0,
28 | height: 0,
29 | ).obs;
30 | File? filteredImage;
31 | Post? post;
32 |
33 | @override
34 | void onInit() {
35 | super.onInit();
36 | post = Post.init(AuthController.to.user.value);
37 | _loadPhotos();
38 | }
39 |
40 | void _loadPhotos() async {
41 | var result = await PhotoManager.requestPermissionExtend();
42 | if (result.isAuth) {
43 | albums = await PhotoManager.getAssetPathList(
44 | type: RequestType.image,
45 | filterOption: FilterOptionGroup(
46 | imageOption: const FilterOption(
47 | sizeConstraint: SizeConstraint(minHeight: 100, minWidth: 100),
48 | ),
49 | orders: [
50 | const OrderOption(type: OrderOptionType.createDate, asc: false),
51 | ],
52 | ),
53 | );
54 | _loadData();
55 | } else {
56 | // message 권한 요청
57 | }
58 | }
59 |
60 | void _loadData() async {
61 | changeAlbum(albums.first);
62 |
63 | // update();
64 | }
65 |
66 | Future _pagingPhotos(AssetPathEntity album) async {
67 | imageList.clear();
68 | var photos = await album.getAssetListPaged(page: 0, size: 30);
69 | imageList.addAll(photos);
70 | changeSelectedImage(imageList.first);
71 | }
72 |
73 | changeSelectedImage(AssetEntity image) {
74 | selectedImage(image);
75 | }
76 |
77 | void changeAlbum(AssetPathEntity album) async {
78 | headerTitle(album.name);
79 | await _pagingPhotos(album);
80 | }
81 |
82 | void gotoImageFilter() async {
83 | var file = await selectedImage.value.file;
84 | var fileName = basename(file!.path);
85 | var image = imageLib.decodeImage(file.readAsBytesSync());
86 | image = imageLib.copyResize(image!, width: 1000);
87 | var imagefile = await Navigator.push(
88 | Get.context!,
89 | MaterialPageRoute(
90 | builder: (context) => PhotoFilterSelector(
91 | title: const Text('Photo Filter Example'),
92 | image: image!,
93 | filters: presetFiltersList,
94 | filename: fileName,
95 | loader: const Center(child: CircularProgressIndicator()),
96 | fit: BoxFit.contain,
97 | ),
98 | ),
99 | );
100 | if (imagefile != null && imagefile.containsKey('image_filtered')) {
101 | filteredImage = imagefile['image_filtered'];
102 | Get.to(() => const UploadDescription());
103 | }
104 | }
105 |
106 | void unfocusKeyboard() {
107 | FocusManager.instance.primaryFocus?.unfocus();
108 | }
109 |
110 | void uplaodPost() {
111 | unfocusKeyboard();
112 | var filename = DataUtil.makeFilePath();
113 | var task = uploadFile(
114 | filteredImage!, '/${AuthController.to.user.value.uid}/$filename');
115 | if (task != null) {
116 | task.snapshotEvents.listen(
117 | (event) async {
118 | if (event.bytesTransferred == event.totalBytes &&
119 | event.state == TaskState.success) {
120 | var downloadUrl = await event.ref.getDownloadURL();
121 | var updatedPost = post!.copyWith(
122 | thumbnail: downloadUrl,
123 | description: textEditingController.text,
124 | );
125 | _submitPost(updatedPost);
126 | }
127 | },
128 | );
129 | }
130 | }
131 |
132 | UploadTask uploadFile(File file, String filename) {
133 | var ref = FirebaseStorage.instance.ref().child('instagram').child(filename);
134 | final metadata = SettableMetadata(
135 | contentType: 'image/jpeg',
136 | customMetadata: {'picked-file-path': file.path});
137 | return ref.putFile(file, metadata);
138 | }
139 |
140 | void _submitPost(Post postData) async {
141 | await PostRepository.updatePost(postData);
142 | showDialog(
143 | context: Get.context!,
144 | builder: (context) => MessagePopup(
145 | title: '포스트',
146 | message: '포스팅이 완료 되었습니다.',
147 | okCallback: () {
148 | Get.until((route) => Get.currentRoute == '/');
149 | },
150 | ),
151 | );
152 | }
153 | }
154 |
--------------------------------------------------------------------------------
/lib/src/pages/upload.dart:
--------------------------------------------------------------------------------
1 | import 'dart:typed_data';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
5 | import 'package:flutter_clone_instagram/src/controller/upload_controller.dart';
6 | import 'package:get/get.dart';
7 | import 'package:photo_manager/photo_manager.dart';
8 |
9 | class Upload extends GetView {
10 | Upload({Key? key}) : super(key: key);
11 |
12 | Widget _imagePreview() {
13 | var width = Get.width;
14 | return Obx(
15 | () => Container(
16 | width: width,
17 | height: width,
18 | color: Colors.grey,
19 | child: _photoWidget(
20 | controller.selectedImage.value,
21 | width.toInt(),
22 | builder: (data) {
23 | return Image.memory(
24 | data,
25 | fit: BoxFit.cover,
26 | );
27 | },
28 | ),
29 | ),
30 | );
31 | }
32 |
33 | Widget _header() {
34 | return Padding(
35 | padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 5),
36 | child: Row(
37 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
38 | children: [
39 | GestureDetector(
40 | onTap: () {
41 | showModalBottomSheet(
42 | context: Get.context!,
43 | shape: const RoundedRectangleBorder(
44 | borderRadius: BorderRadius.only(
45 | topLeft: Radius.circular(20),
46 | topRight: Radius.circular(20)),
47 | ),
48 | isScrollControlled:
49 | controller.albums.length > 10 ? true : false,
50 | constraints: BoxConstraints(
51 | maxHeight: MediaQuery.of(Get.context!).size.height -
52 | MediaQuery.of(Get.context!).padding.top,
53 | ),
54 | builder: (_) => Container(
55 | height: controller.albums.length > 10
56 | ? Size.infinite.height
57 | : controller.albums.length * 60,
58 | child: Column(
59 | crossAxisAlignment: CrossAxisAlignment.stretch,
60 | children: [
61 | Center(
62 | child: Container(
63 | margin: const EdgeInsets.only(top: 7),
64 | decoration: BoxDecoration(
65 | borderRadius: BorderRadius.circular(10),
66 | color: Colors.black54,
67 | ),
68 | width: 40,
69 | height: 4,
70 | ),
71 | ),
72 | Expanded(
73 | child: SingleChildScrollView(
74 | child: Column(
75 | crossAxisAlignment: CrossAxisAlignment.stretch,
76 | children: List.generate(
77 | controller.albums.length,
78 | (index) => GestureDetector(
79 | onTap: () {
80 | controller
81 | .changeAlbum(controller.albums[index]);
82 | Get.back();
83 | },
84 | child: Container(
85 | padding: const EdgeInsets.symmetric(
86 | vertical: 15, horizontal: 20),
87 | child: Text(controller.albums[index].name),
88 | ),
89 | ),
90 | ),
91 | ),
92 | ),
93 | )
94 | ]),
95 | ),
96 | );
97 | },
98 | child: Padding(
99 | padding: const EdgeInsets.all(5.0),
100 | child: Row(
101 | children: [
102 | Obx(
103 | () => Text(
104 | controller.headerTitle.value,
105 | style: const TextStyle(
106 | color: Colors.black,
107 | fontSize: 18,
108 | ),
109 | ),
110 | ),
111 | const Icon(Icons.arrow_drop_down),
112 | ],
113 | ),
114 | ),
115 | ),
116 | Row(
117 | children: [
118 | Container(
119 | padding:
120 | const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
121 | decoration: BoxDecoration(
122 | color: const Color(0xff808080),
123 | borderRadius: BorderRadius.circular(30)),
124 | child: Row(
125 | children: [
126 | ImageData(IconsPath.imageSelectIcon),
127 | const SizedBox(width: 7),
128 | const Text(
129 | '여러 항목 선택',
130 | style: TextStyle(color: Colors.white, fontSize: 14),
131 | ),
132 | ],
133 | ),
134 | ),
135 | const SizedBox(width: 5),
136 | Container(
137 | padding: const EdgeInsets.all(6),
138 | decoration: const BoxDecoration(
139 | shape: BoxShape.circle,
140 | color: Color(0xff808080),
141 | ),
142 | child: ImageData(IconsPath.cameraIcon),
143 | )
144 | ],
145 | ),
146 | ],
147 | ),
148 | );
149 | }
150 |
151 | Widget _imageSelectList() {
152 | return Obx(
153 | () => GridView.builder(
154 | physics: const NeverScrollableScrollPhysics(),
155 | shrinkWrap: true,
156 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
157 | crossAxisCount: 4,
158 | childAspectRatio: 1,
159 | mainAxisSpacing: 1,
160 | crossAxisSpacing: 1,
161 | ),
162 | itemCount: controller.imageList.length,
163 | itemBuilder: (BuildContext context, int index) {
164 | return _photoWidget(controller.imageList[index], 200,
165 | builder: (data) {
166 | return GestureDetector(
167 | onTap: () {
168 | controller.changeSelectedImage(controller.imageList[index]);
169 | },
170 | child: Obx(
171 | () => Opacity(
172 | opacity: controller.imageList[index] ==
173 | controller.selectedImage.value
174 | ? 0.3
175 | : 1,
176 | child: Image.memory(
177 | data,
178 | fit: BoxFit.cover,
179 | ),
180 | ),
181 | ));
182 | });
183 | },
184 | ),
185 | );
186 | }
187 |
188 | Widget _photoWidget(AssetEntity asset, int size,
189 | {required Widget Function(Uint8List) builder}) {
190 | return FutureBuilder(
191 | future: asset.thumbnailDataWithSize(ThumbnailSize(size, size)),
192 | builder: (_, AsyncSnapshot snapshot) {
193 | if (snapshot.hasData) {
194 | return builder(snapshot.data!);
195 | } else {
196 | return Container();
197 | }
198 | },
199 | );
200 | }
201 |
202 | @override
203 | Widget build(BuildContext context) {
204 | return Scaffold(
205 | backgroundColor: Colors.white,
206 | appBar: AppBar(
207 | backgroundColor: Colors.white,
208 | elevation: 0,
209 | leading: GestureDetector(
210 | onTap: Get.back,
211 | child: Padding(
212 | padding: const EdgeInsets.all(15.0),
213 | child: ImageData(IconsPath.closeImage),
214 | ),
215 | ),
216 | title: const Text(
217 | 'New Post',
218 | style: TextStyle(
219 | fontWeight: FontWeight.bold,
220 | fontSize: 20,
221 | color: Colors.black,
222 | ),
223 | ),
224 | actions: [
225 | GestureDetector(
226 | onTap: controller.gotoImageFilter,
227 | child: Padding(
228 | padding: const EdgeInsets.all(15.0),
229 | child: ImageData(IconsPath.nextImage, width: 50),
230 | ),
231 | ),
232 | ],
233 | ),
234 | body: SingleChildScrollView(
235 | child: Column(
236 | children: [
237 | _imagePreview(),
238 | _header(),
239 | _imageSelectList(),
240 | ],
241 | ),
242 | ),
243 | );
244 | }
245 | }
246 |
--------------------------------------------------------------------------------
/lib/src/pages/mypage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clone_instagram/src/components/avatar_widget.dart';
3 | import 'package:flutter_clone_instagram/src/components/image_data.dart';
4 | import 'package:flutter_clone_instagram/src/components/user_card.dart';
5 | import 'package:flutter_clone_instagram/src/controller/auth_controller.dart';
6 | import 'package:flutter_clone_instagram/src/controller/mypage_controller.dart';
7 | import 'package:get/get.dart';
8 |
9 | class MyPage extends GetView {
10 | const MyPage({Key? key}) : super(key: key);
11 |
12 | Widget _statisticsOne(String title, int value) {
13 | return Column(
14 | children: [
15 | Text(
16 | value.toString(),
17 | style: const TextStyle(
18 | fontSize: 20,
19 | color: Colors.black,
20 | fontWeight: FontWeight.bold,
21 | ),
22 | ),
23 | Text(
24 | title,
25 | style: const TextStyle(fontSize: 15, color: Colors.black),
26 | ),
27 | ],
28 | );
29 | }
30 |
31 | Widget _information() {
32 | return Padding(
33 | padding: const EdgeInsets.symmetric(horizontal: 15),
34 | child: Column(
35 | crossAxisAlignment: CrossAxisAlignment.stretch,
36 | children: [
37 | Row(
38 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
39 | children: [
40 | // AvatarWidget(
41 | // type: AvatarType.TYPE3,
42 | // thumbPath: controller.targetUser.value.thumbnail!,
43 | // size: 80,
44 | // ),
45 | const SizedBox(width: 10),
46 | Expanded(
47 | child: Row(
48 | mainAxisAlignment: MainAxisAlignment.spaceAround,
49 | children: [
50 | Expanded(child: _statisticsOne('Post', 15)),
51 | Expanded(child: _statisticsOne('Followers', 11)),
52 | Expanded(child: _statisticsOne('Following', 3)),
53 | ],
54 | ),
55 | )
56 | ],
57 | ),
58 | const SizedBox(height: 10),
59 | Text(
60 | 'controller.targetUser.value.description!',
61 | style: const TextStyle(
62 | fontSize: 13,
63 | color: Colors.black,
64 | ),
65 | )
66 | ],
67 | ),
68 | );
69 | }
70 |
71 | Widget _menu() {
72 | return Padding(
73 | padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 25),
74 | child: Row(
75 | children: [
76 | Expanded(
77 | child: Container(
78 | padding: const EdgeInsets.symmetric(vertical: 7),
79 | decoration: BoxDecoration(
80 | borderRadius: BorderRadius.circular(3),
81 | border: Border.all(
82 | color: const Color(0xffdedede),
83 | ),
84 | ),
85 | child: const Text(
86 | 'Edit profile',
87 | style: TextStyle(
88 | color: Colors.black,
89 | fontSize: 14,
90 | fontWeight: FontWeight.bold,
91 | ),
92 | textAlign: TextAlign.center,
93 | ),
94 | ),
95 | ),
96 | const SizedBox(width: 8),
97 | Container(
98 | padding: const EdgeInsets.all(4),
99 | decoration: BoxDecoration(
100 | borderRadius: BorderRadius.circular(3),
101 | border: Border.all(
102 | color: const Color(0xffdedede),
103 | ),
104 | color: const Color(0xffefefef),
105 | ),
106 | child: ImageData(IconsPath.addFriend),
107 | )
108 | ],
109 | ),
110 | );
111 | }
112 |
113 | Widget _discoverPeople() {
114 | return Column(
115 | children: [
116 | Padding(
117 | padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
118 | child: Row(
119 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
120 | children: const [
121 | Text(
122 | 'Discover People',
123 | style: TextStyle(
124 | fontWeight: FontWeight.bold,
125 | fontSize: 15,
126 | color: Colors.black,
127 | ),
128 | ),
129 | Text(
130 | 'See All',
131 | style: TextStyle(
132 | fontSize: 15,
133 | color: Colors.blue,
134 | fontWeight: FontWeight.w500,
135 | ),
136 | )
137 | ],
138 | ),
139 | ),
140 | SingleChildScrollView(
141 | scrollDirection: Axis.horizontal,
142 | padding: const EdgeInsets.symmetric(horizontal: 12),
143 | child: Row(
144 | children: List.generate(
145 | 10,
146 | (index) => UserCard(
147 | userId: '개남$index',
148 | description: '개남e$index님이 팔로우합니다.',
149 | ),
150 | ).toList(),
151 | ),
152 | ),
153 | ],
154 | );
155 | }
156 |
157 | Widget _tabMenu() {
158 | return SliverToBoxAdapter(
159 | child: TabBar(
160 | controller: controller.tabController,
161 | indicatorColor: Colors.black,
162 | indicatorWeight: 1,
163 | tabs: [
164 | Container(
165 | padding: const EdgeInsets.symmetric(vertical: 10),
166 | child: ImageData(IconsPath.gridViewOn),
167 | ),
168 | Container(
169 | padding: const EdgeInsets.symmetric(vertical: 10),
170 | child: ImageData(IconsPath.myTagImageOff),
171 | ),
172 | ],
173 | ),
174 | );
175 | }
176 |
177 | Widget _tabView() {
178 | return TabBarView(controller: controller.tabController, children: [
179 | GridView.builder(
180 | physics: const NeverScrollableScrollPhysics(),
181 | shrinkWrap: true,
182 | itemCount: 100,
183 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
184 | crossAxisCount: 3,
185 | childAspectRatio: 1,
186 | mainAxisSpacing: 1,
187 | crossAxisSpacing: 1,
188 | ),
189 | itemBuilder: (BuildContext context, int index) {
190 | return Container(
191 | color: Colors.grey,
192 | );
193 | },
194 | ),
195 | GridView.builder(
196 | physics: const NeverScrollableScrollPhysics(),
197 | shrinkWrap: true,
198 | itemCount: 100,
199 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
200 | crossAxisCount: 3,
201 | childAspectRatio: 1,
202 | mainAxisSpacing: 1,
203 | crossAxisSpacing: 1,
204 | ),
205 | itemBuilder: (BuildContext context, int index) {
206 | return Container(
207 | color: Colors.grey,
208 | );
209 | },
210 | ),
211 | ]);
212 | }
213 |
214 | @override
215 | Widget build(BuildContext context) {
216 | return Scaffold(
217 | appBar: AppBar(),
218 | body: NestedScrollView(
219 | headerSliverBuilder: (context, value) {
220 | return [
221 | SliverToBoxAdapter(
222 | child: Column(
223 | children: [
224 | _information(),
225 | _menu(),
226 | _discoverPeople(),
227 | const SizedBox(height: 20),
228 | ],
229 | )),
230 | _tabMenu(),
231 | ];
232 | },
233 | body: Container(
234 | child: TabBarView(
235 | controller: controller.tabController,
236 | children: [
237 | // / Each content from each tab will have a dynamic height
238 | GridView.builder(
239 | physics: const NeverScrollableScrollPhysics(),
240 | shrinkWrap: true,
241 | itemCount: 100,
242 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
243 | crossAxisCount: 3,
244 | childAspectRatio: 1,
245 | mainAxisSpacing: 1,
246 | crossAxisSpacing: 1,
247 | ),
248 | itemBuilder: (BuildContext context, int index) {
249 | return Container(
250 | color: Colors.grey,
251 | );
252 | },
253 | ),
254 | // Container(),
255 | Container()
256 | ],
257 | ),
258 | ),
259 | ),
260 | );
261 | // return Scaffold(
262 | // backgroundColor: Colors.white,
263 | // appBar: AppBar(
264 | // elevation: 0,
265 | // title: Text(
266 | // 'controller.targetUser.value.nickname!',
267 | // style: const TextStyle(
268 | // fontWeight: FontWeight.bold,
269 | // fontSize: 20,
270 | // color: Colors.black,
271 | // ),
272 | // ),
273 | // actions: [
274 | // GestureDetector(
275 | // onTap: () {},
276 | // child: ImageData(
277 | // IconsPath.uploadIcon,
278 | // width: 50,
279 | // ),
280 | // ),
281 | // GestureDetector(
282 | // onTap: () {},
283 | // child: Padding(
284 | // padding: const EdgeInsets.all(15.0),
285 | // child: ImageData(
286 | // IconsPath.menuIcon,
287 | // width: 50,
288 | // ),
289 | // ),
290 | // ),
291 | // ],
292 | // ),
293 | // body: NestedScrollView(
294 | // headerSliverBuilder: (context, value) {
295 | // return [
296 | // _information(),
297 | // _menu(),
298 | // _discoverPeople(),
299 | // const SizedBox(height: 20),
300 | // _tabMenu(),
301 | // ];
302 | // },
303 | // body: _tabView(),
304 | // ),
305 | // );
306 | }
307 | }
308 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1300;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = (
294 | "$(inherited)",
295 | "@executable_path/Frameworks",
296 | );
297 | PRODUCT_BUNDLE_IDENTIFIER = com.instaclone.flutterCloneInstagram;
298 | PRODUCT_NAME = "$(TARGET_NAME)";
299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
300 | SWIFT_VERSION = 5.0;
301 | VERSIONING_SYSTEM = "apple-generic";
302 | };
303 | name = Profile;
304 | };
305 | 97C147031CF9000F007C117D /* Debug */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = dwarf;
336 | ENABLE_STRICT_OBJC_MSGSEND = YES;
337 | ENABLE_TESTABILITY = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_DYNAMIC_NO_PIC = NO;
340 | GCC_NO_COMMON_BLOCKS = YES;
341 | GCC_OPTIMIZATION_LEVEL = 0;
342 | GCC_PREPROCESSOR_DEFINITIONS = (
343 | "DEBUG=1",
344 | "$(inherited)",
345 | );
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
353 | MTL_ENABLE_DEBUG_INFO = YES;
354 | ONLY_ACTIVE_ARCH = YES;
355 | SDKROOT = iphoneos;
356 | TARGETED_DEVICE_FAMILY = "1,2";
357 | };
358 | name = Debug;
359 | };
360 | 97C147041CF9000F007C117D /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ALWAYS_SEARCH_USER_PATHS = NO;
364 | CLANG_ANALYZER_NONNULL = YES;
365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
366 | CLANG_CXX_LIBRARY = "libc++";
367 | CLANG_ENABLE_MODULES = YES;
368 | CLANG_ENABLE_OBJC_ARC = YES;
369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_COMMA = YES;
372 | CLANG_WARN_CONSTANT_CONVERSION = YES;
373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
375 | CLANG_WARN_EMPTY_BODY = YES;
376 | CLANG_WARN_ENUM_CONVERSION = YES;
377 | CLANG_WARN_INFINITE_RECURSION = YES;
378 | CLANG_WARN_INT_CONVERSION = YES;
379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
384 | CLANG_WARN_STRICT_PROTOTYPES = YES;
385 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
386 | CLANG_WARN_UNREACHABLE_CODE = YES;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = NO;
390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
391 | ENABLE_NS_ASSERTIONS = NO;
392 | ENABLE_STRICT_OBJC_MSGSEND = YES;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_NO_COMMON_BLOCKS = YES;
395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
397 | GCC_WARN_UNDECLARED_SELECTOR = YES;
398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
399 | GCC_WARN_UNUSED_FUNCTION = YES;
400 | GCC_WARN_UNUSED_VARIABLE = YES;
401 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
402 | MTL_ENABLE_DEBUG_INFO = NO;
403 | SDKROOT = iphoneos;
404 | SUPPORTED_PLATFORMS = iphoneos;
405 | SWIFT_COMPILATION_MODE = wholemodule;
406 | SWIFT_OPTIMIZATION_LEVEL = "-O";
407 | TARGETED_DEVICE_FAMILY = "1,2";
408 | VALIDATE_PRODUCT = YES;
409 | };
410 | name = Release;
411 | };
412 | 97C147061CF9000F007C117D /* Debug */ = {
413 | isa = XCBuildConfiguration;
414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
415 | buildSettings = {
416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
417 | CLANG_ENABLE_MODULES = YES;
418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
419 | ENABLE_BITCODE = NO;
420 | INFOPLIST_FILE = Runner/Info.plist;
421 | LD_RUNPATH_SEARCH_PATHS = (
422 | "$(inherited)",
423 | "@executable_path/Frameworks",
424 | );
425 | PRODUCT_BUNDLE_IDENTIFIER = com.instaclone.flutterCloneInstagram;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
429 | SWIFT_VERSION = 5.0;
430 | VERSIONING_SYSTEM = "apple-generic";
431 | };
432 | name = Debug;
433 | };
434 | 97C147071CF9000F007C117D /* Release */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CLANG_ENABLE_MODULES = YES;
440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
441 | ENABLE_BITCODE = NO;
442 | INFOPLIST_FILE = Runner/Info.plist;
443 | LD_RUNPATH_SEARCH_PATHS = (
444 | "$(inherited)",
445 | "@executable_path/Frameworks",
446 | );
447 | PRODUCT_BUNDLE_IDENTIFIER = com.instaclone.flutterCloneInstagram;
448 | PRODUCT_NAME = "$(TARGET_NAME)";
449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
450 | SWIFT_VERSION = 5.0;
451 | VERSIONING_SYSTEM = "apple-generic";
452 | };
453 | name = Release;
454 | };
455 | /* End XCBuildConfiguration section */
456 |
457 | /* Begin XCConfigurationList section */
458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147031CF9000F007C117D /* Debug */,
462 | 97C147041CF9000F007C117D /* Release */,
463 | 249021D3217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
469 | isa = XCConfigurationList;
470 | buildConfigurations = (
471 | 97C147061CF9000F007C117D /* Debug */,
472 | 97C147071CF9000F007C117D /* Release */,
473 | 249021D4217E4FDB00AE95B9 /* Profile */,
474 | );
475 | defaultConfigurationIsVisible = 0;
476 | defaultConfigurationName = Release;
477 | };
478 | /* End XCConfigurationList section */
479 | };
480 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
481 | }
482 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _flutterfire_internals:
5 | dependency: transitive
6 | description:
7 | name: _flutterfire_internals
8 | sha256: "1a5e13736d59235ce0139621b4bbe29bc89839e202409081bc667eb3cd20674c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "1.3.5"
12 | archive:
13 | dependency: transitive
14 | description:
15 | name: archive
16 | sha256: "0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "3.3.7"
20 | async:
21 | dependency: transitive
22 | description:
23 | name: async
24 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.11.0"
28 | boolean_selector:
29 | dependency: transitive
30 | description:
31 | name: boolean_selector
32 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "2.1.1"
36 | cached_network_image:
37 | dependency: "direct main"
38 | description:
39 | name: cached_network_image
40 | sha256: fd3d0dc1d451f9a252b32d95d3f0c3c487bc41a75eba2e6097cb0b9c71491b15
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "3.2.3"
44 | cached_network_image_platform_interface:
45 | dependency: transitive
46 | description:
47 | name: cached_network_image_platform_interface
48 | sha256: bb2b8403b4ccdc60ef5f25c70dead1f3d32d24b9d6117cfc087f496b178594a7
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "2.0.0"
52 | cached_network_image_web:
53 | dependency: transitive
54 | description:
55 | name: cached_network_image_web
56 | sha256: b8eb814ebfcb4dea049680f8c1ffb2df399e4d03bf7a352c775e26fa06e02fa0
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.0.2"
60 | characters:
61 | dependency: transitive
62 | description:
63 | name: characters
64 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.3.0"
68 | clock:
69 | dependency: transitive
70 | description:
71 | name: clock
72 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "1.1.1"
76 | cloud_firestore:
77 | dependency: "direct main"
78 | description:
79 | name: cloud_firestore
80 | sha256: "21cffe06a212015950010ecb9adbf1eb9acaf294f2bd159bde7980aee37c997b"
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "4.9.0"
84 | cloud_firestore_platform_interface:
85 | dependency: transitive
86 | description:
87 | name: cloud_firestore_platform_interface
88 | sha256: "5749b81aea93afdce220e02d34369162010d210011054ac494b2c38c4e9ebeb7"
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "5.16.0"
92 | cloud_firestore_web:
93 | dependency: transitive
94 | description:
95 | name: cloud_firestore_web
96 | sha256: fef99ad0599e983092adb1bb01f14a596dba601a7a8efaaffd7b2721d64e2c51
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "3.7.0"
100 | collection:
101 | dependency: transitive
102 | description:
103 | name: collection
104 | sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "1.17.1"
108 | convert:
109 | dependency: transitive
110 | description:
111 | name: convert
112 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "3.1.1"
116 | cross_file:
117 | dependency: transitive
118 | description:
119 | name: cross_file
120 | sha256: "0b0036e8cccbfbe0555fd83c1d31a6f30b77a96b598b35a5d36dd41f718695e9"
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "0.3.3+4"
124 | crypto:
125 | dependency: transitive
126 | description:
127 | name: crypto
128 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
129 | url: "https://pub.dev"
130 | source: hosted
131 | version: "3.0.3"
132 | cupertino_icons:
133 | dependency: "direct main"
134 | description:
135 | name: cupertino_icons
136 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
137 | url: "https://pub.dev"
138 | source: hosted
139 | version: "1.0.5"
140 | expandable_text:
141 | dependency: "direct main"
142 | description:
143 | name: expandable_text
144 | sha256: "7d03ea48af6987b20ece232678b744862aa3250d4a71e2aaf1e4af90015d76b1"
145 | url: "https://pub.dev"
146 | source: hosted
147 | version: "2.3.0"
148 | fake_async:
149 | dependency: transitive
150 | description:
151 | name: fake_async
152 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
153 | url: "https://pub.dev"
154 | source: hosted
155 | version: "1.3.1"
156 | ffi:
157 | dependency: transitive
158 | description:
159 | name: ffi
160 | sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
161 | url: "https://pub.dev"
162 | source: hosted
163 | version: "2.1.0"
164 | file:
165 | dependency: transitive
166 | description:
167 | name: file
168 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
169 | url: "https://pub.dev"
170 | source: hosted
171 | version: "7.0.0"
172 | file_selector_linux:
173 | dependency: transitive
174 | description:
175 | name: file_selector_linux
176 | sha256: "770eb1ab057b5ae4326d1c24cc57710758b9a46026349d021d6311bd27580046"
177 | url: "https://pub.dev"
178 | source: hosted
179 | version: "0.9.2"
180 | file_selector_macos:
181 | dependency: transitive
182 | description:
183 | name: file_selector_macos
184 | sha256: "4ada532862917bf16e3adb3891fe3a5917a58bae03293e497082203a80909412"
185 | url: "https://pub.dev"
186 | source: hosted
187 | version: "0.9.3+1"
188 | file_selector_platform_interface:
189 | dependency: transitive
190 | description:
191 | name: file_selector_platform_interface
192 | sha256: "412705a646a0ae90f33f37acfae6a0f7cbc02222d6cd34e479421c3e74d3853c"
193 | url: "https://pub.dev"
194 | source: hosted
195 | version: "2.6.0"
196 | file_selector_windows:
197 | dependency: transitive
198 | description:
199 | name: file_selector_windows
200 | sha256: "1372760c6b389842b77156203308940558a2817360154084368608413835fc26"
201 | url: "https://pub.dev"
202 | source: hosted
203 | version: "0.9.3"
204 | firebase_auth:
205 | dependency: "direct main"
206 | description:
207 | name: firebase_auth
208 | sha256: "02d9cdf1305f0c22cde492802598a13a1975ec8aa05bf608be799f939352cbe8"
209 | url: "https://pub.dev"
210 | source: hosted
211 | version: "4.8.0"
212 | firebase_auth_platform_interface:
213 | dependency: transitive
214 | description:
215 | name: firebase_auth_platform_interface
216 | sha256: "19f8d0762544b72471b85bb56469448c3dc9f98b8b8574f744873ec18e04e18c"
217 | url: "https://pub.dev"
218 | source: hosted
219 | version: "6.17.0"
220 | firebase_auth_web:
221 | dependency: transitive
222 | description:
223 | name: firebase_auth_web
224 | sha256: ae01b306ae03856c1f0682796ea87bacaab72da44e4b728271c806db99620712
225 | url: "https://pub.dev"
226 | source: hosted
227 | version: "5.7.0"
228 | firebase_core:
229 | dependency: "direct main"
230 | description:
231 | name: firebase_core
232 | sha256: c78132175edda4bc532a71e01a32964e4b4fcf53de7853a422d96dac3725f389
233 | url: "https://pub.dev"
234 | source: hosted
235 | version: "2.15.1"
236 | firebase_core_platform_interface:
237 | dependency: transitive
238 | description:
239 | name: firebase_core_platform_interface
240 | sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2
241 | url: "https://pub.dev"
242 | source: hosted
243 | version: "4.8.0"
244 | firebase_core_web:
245 | dependency: transitive
246 | description:
247 | name: firebase_core_web
248 | sha256: "4cf4d2161530332ddc3c562f19823fb897ff37a9a774090d28df99f47370e973"
249 | url: "https://pub.dev"
250 | source: hosted
251 | version: "2.7.0"
252 | firebase_storage:
253 | dependency: "direct main"
254 | description:
255 | name: firebase_storage
256 | sha256: "11423ac63c1ec566069c80b1d01bc3c9e12a8f106bbc4ba77fa150afb88488a3"
257 | url: "https://pub.dev"
258 | source: hosted
259 | version: "11.2.6"
260 | firebase_storage_platform_interface:
261 | dependency: transitive
262 | description:
263 | name: firebase_storage_platform_interface
264 | sha256: "2a8ee7b8a06ee5201f9a116db6972ba0020e3a314a5065acdcb616f4d6c99771"
265 | url: "https://pub.dev"
266 | source: hosted
267 | version: "4.4.5"
268 | firebase_storage_web:
269 | dependency: transitive
270 | description:
271 | name: firebase_storage_web
272 | sha256: bd110daa180dc9c89abb490c8a330571e103291b348358d320f5b20a61cd46fc
273 | url: "https://pub.dev"
274 | source: hosted
275 | version: "3.6.6"
276 | flutter:
277 | dependency: "direct main"
278 | description: flutter
279 | source: sdk
280 | version: "0.0.0"
281 | flutter_blurhash:
282 | dependency: transitive
283 | description:
284 | name: flutter_blurhash
285 | sha256: "05001537bd3fac7644fa6558b09ec8c0a3f2eba78c0765f88912882b1331a5c6"
286 | url: "https://pub.dev"
287 | source: hosted
288 | version: "0.7.0"
289 | flutter_cache_manager:
290 | dependency: transitive
291 | description:
292 | name: flutter_cache_manager
293 | sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba"
294 | url: "https://pub.dev"
295 | source: hosted
296 | version: "3.3.1"
297 | flutter_lints:
298 | dependency: "direct dev"
299 | description:
300 | name: flutter_lints
301 | sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493
302 | url: "https://pub.dev"
303 | source: hosted
304 | version: "1.0.4"
305 | flutter_plugin_android_lifecycle:
306 | dependency: transitive
307 | description:
308 | name: flutter_plugin_android_lifecycle
309 | sha256: "950e77c2bbe1692bc0874fc7fb491b96a4dc340457f4ea1641443d0a6c1ea360"
310 | url: "https://pub.dev"
311 | source: hosted
312 | version: "2.0.15"
313 | flutter_test:
314 | dependency: "direct dev"
315 | description: flutter
316 | source: sdk
317 | version: "0.0.0"
318 | flutter_web_plugins:
319 | dependency: transitive
320 | description: flutter
321 | source: sdk
322 | version: "0.0.0"
323 | get:
324 | dependency: "direct main"
325 | description:
326 | name: get
327 | sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a"
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "4.6.5"
331 | google_identity_services_web:
332 | dependency: transitive
333 | description:
334 | name: google_identity_services_web
335 | sha256: "7940fdc3b1035db4d65d387c1bdd6f9574deaa6777411569c05ecc25672efacd"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "0.2.1"
339 | google_sign_in:
340 | dependency: "direct main"
341 | description:
342 | name: google_sign_in
343 | sha256: aab6fdc41374014494f9e9026b9859e7309639d50a0bf4a2a412467a5ae4abc6
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "6.1.4"
347 | google_sign_in_android:
348 | dependency: transitive
349 | description:
350 | name: google_sign_in_android
351 | sha256: "8d60a787b29cb7d2bcf29230865f4a91f17323c6ac5b6b9027a6418e48d9ffc3"
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "6.1.18"
355 | google_sign_in_ios:
356 | dependency: transitive
357 | description:
358 | name: google_sign_in_ios
359 | sha256: "6ec0e13a4c5c646471b9f6a25ceb3ae76d339889d4c0f79b729bf0714215a63e"
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "5.6.2"
363 | google_sign_in_platform_interface:
364 | dependency: transitive
365 | description:
366 | name: google_sign_in_platform_interface
367 | sha256: e69553c0fc6a76216e9d06a8c3767e291ad9be42171f879aab7ab708569d4393
368 | url: "https://pub.dev"
369 | source: hosted
370 | version: "2.4.1"
371 | google_sign_in_web:
372 | dependency: transitive
373 | description:
374 | name: google_sign_in_web
375 | sha256: c4ef88c4033797908b8533e97216f51442909162bafc03dd42e8d1a057561c52
376 | url: "https://pub.dev"
377 | source: hosted
378 | version: "0.12.0+3"
379 | http:
380 | dependency: transitive
381 | description:
382 | name: http
383 | sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
384 | url: "https://pub.dev"
385 | source: hosted
386 | version: "0.13.6"
387 | http_parser:
388 | dependency: transitive
389 | description:
390 | name: http_parser
391 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
392 | url: "https://pub.dev"
393 | source: hosted
394 | version: "4.0.2"
395 | image:
396 | dependency: transitive
397 | description:
398 | name: image
399 | sha256: "8e9d133755c3e84c73288363e6343157c383a0c6c56fc51afcc5d4d7180306d6"
400 | url: "https://pub.dev"
401 | source: hosted
402 | version: "3.3.0"
403 | image_picker:
404 | dependency: "direct main"
405 | description:
406 | name: image_picker
407 | sha256: b6951e25b795d053a6ba03af5f710069c99349de9341af95155d52665cb4607c
408 | url: "https://pub.dev"
409 | source: hosted
410 | version: "0.8.9"
411 | image_picker_android:
412 | dependency: transitive
413 | description:
414 | name: image_picker_android
415 | sha256: "8179b54039b50eee561676232304f487602e2950ffb3e8995ed9034d6505ca34"
416 | url: "https://pub.dev"
417 | source: hosted
418 | version: "0.8.7+4"
419 | image_picker_for_web:
420 | dependency: transitive
421 | description:
422 | name: image_picker_for_web
423 | sha256: "869fe8a64771b7afbc99fc433a5f7be2fea4d1cb3d7c11a48b6b579eb9c797f0"
424 | url: "https://pub.dev"
425 | source: hosted
426 | version: "2.2.0"
427 | image_picker_ios:
428 | dependency: transitive
429 | description:
430 | name: image_picker_ios
431 | sha256: bee3b7c7e6266a37fb1bfdc275bc60427029d447205d44933aac130fbb9d3330
432 | url: "https://pub.dev"
433 | source: hosted
434 | version: "0.8.8+1"
435 | image_picker_linux:
436 | dependency: transitive
437 | description:
438 | name: image_picker_linux
439 | sha256: "02cbc21fe1706b97942b575966e5fbbeaac535e76deef70d3a242e4afb857831"
440 | url: "https://pub.dev"
441 | source: hosted
442 | version: "0.2.1"
443 | image_picker_macos:
444 | dependency: transitive
445 | description:
446 | name: image_picker_macos
447 | sha256: cee2aa86c56780c13af2c77b5f2f72973464db204569e1ba2dd744459a065af4
448 | url: "https://pub.dev"
449 | source: hosted
450 | version: "0.2.1"
451 | image_picker_platform_interface:
452 | dependency: transitive
453 | description:
454 | name: image_picker_platform_interface
455 | sha256: c1134543ae2187e85299996d21c526b2f403854994026d575ae4cf30d7bb2a32
456 | url: "https://pub.dev"
457 | source: hosted
458 | version: "2.9.0"
459 | image_picker_windows:
460 | dependency: transitive
461 | description:
462 | name: image_picker_windows
463 | sha256: c3066601ea42113922232c7b7b3330a2d86f029f685bba99d82c30e799914952
464 | url: "https://pub.dev"
465 | source: hosted
466 | version: "0.2.1"
467 | intl:
468 | dependency: transitive
469 | description:
470 | name: intl
471 | sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91"
472 | url: "https://pub.dev"
473 | source: hosted
474 | version: "0.17.0"
475 | js:
476 | dependency: transitive
477 | description:
478 | name: js
479 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
480 | url: "https://pub.dev"
481 | source: hosted
482 | version: "0.6.7"
483 | lints:
484 | dependency: transitive
485 | description:
486 | name: lints
487 | sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c
488 | url: "https://pub.dev"
489 | source: hosted
490 | version: "1.0.1"
491 | matcher:
492 | dependency: transitive
493 | description:
494 | name: matcher
495 | sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
496 | url: "https://pub.dev"
497 | source: hosted
498 | version: "0.12.15"
499 | material_color_utilities:
500 | dependency: transitive
501 | description:
502 | name: material_color_utilities
503 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
504 | url: "https://pub.dev"
505 | source: hosted
506 | version: "0.2.0"
507 | meta:
508 | dependency: transitive
509 | description:
510 | name: meta
511 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
512 | url: "https://pub.dev"
513 | source: hosted
514 | version: "1.9.1"
515 | mime:
516 | dependency: transitive
517 | description:
518 | name: mime
519 | sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
520 | url: "https://pub.dev"
521 | source: hosted
522 | version: "1.0.4"
523 | octo_image:
524 | dependency: transitive
525 | description:
526 | name: octo_image
527 | sha256: "107f3ed1330006a3bea63615e81cf637433f5135a52466c7caa0e7152bca9143"
528 | url: "https://pub.dev"
529 | source: hosted
530 | version: "1.0.2"
531 | path:
532 | dependency: transitive
533 | description:
534 | name: path
535 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
536 | url: "https://pub.dev"
537 | source: hosted
538 | version: "1.8.3"
539 | path_provider:
540 | dependency: transitive
541 | description:
542 | name: path_provider
543 | sha256: "909b84830485dbcd0308edf6f7368bc8fd76afa26a270420f34cabea2a6467a0"
544 | url: "https://pub.dev"
545 | source: hosted
546 | version: "2.1.0"
547 | path_provider_android:
548 | dependency: transitive
549 | description:
550 | name: path_provider_android
551 | sha256: "5d44fc3314d969b84816b569070d7ace0f1dea04bd94a83f74c4829615d22ad8"
552 | url: "https://pub.dev"
553 | source: hosted
554 | version: "2.1.0"
555 | path_provider_foundation:
556 | dependency: transitive
557 | description:
558 | name: path_provider_foundation
559 | sha256: "1b744d3d774e5a879bb76d6cd1ecee2ba2c6960c03b1020cd35212f6aa267ac5"
560 | url: "https://pub.dev"
561 | source: hosted
562 | version: "2.3.0"
563 | path_provider_linux:
564 | dependency: transitive
565 | description:
566 | name: path_provider_linux
567 | sha256: ba2b77f0c52a33db09fc8caf85b12df691bf28d983e84cf87ff6d693cfa007b3
568 | url: "https://pub.dev"
569 | source: hosted
570 | version: "2.2.0"
571 | path_provider_platform_interface:
572 | dependency: transitive
573 | description:
574 | name: path_provider_platform_interface
575 | sha256: bced5679c7df11190e1ddc35f3222c858f328fff85c3942e46e7f5589bf9eb84
576 | url: "https://pub.dev"
577 | source: hosted
578 | version: "2.1.0"
579 | path_provider_windows:
580 | dependency: transitive
581 | description:
582 | name: path_provider_windows
583 | sha256: ee0e0d164516b90ae1f970bdf29f726f1aa730d7cfc449ecc74c495378b705da
584 | url: "https://pub.dev"
585 | source: hosted
586 | version: "2.2.0"
587 | petitparser:
588 | dependency: transitive
589 | description:
590 | name: petitparser
591 | sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750
592 | url: "https://pub.dev"
593 | source: hosted
594 | version: "5.4.0"
595 | photo_manager:
596 | dependency: "direct main"
597 | description:
598 | name: photo_manager
599 | sha256: b2d81bd197323697d1b335e2e04cea2f67e11624ced77cfd02917a10afaeba73
600 | url: "https://pub.dev"
601 | source: hosted
602 | version: "2.7.1"
603 | photofilters:
604 | dependency: "direct main"
605 | description:
606 | name: photofilters
607 | sha256: "757197a7b54b4db36eed3fbdf0afcc8cc3b9058b1242c8f6675426aca1b56d39"
608 | url: "https://pub.dev"
609 | source: hosted
610 | version: "3.0.1"
611 | platform:
612 | dependency: transitive
613 | description:
614 | name: platform
615 | sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d"
616 | url: "https://pub.dev"
617 | source: hosted
618 | version: "3.1.1"
619 | plugin_platform_interface:
620 | dependency: transitive
621 | description:
622 | name: plugin_platform_interface
623 | sha256: "43798d895c929056255600343db8f049921cbec94d31ec87f1dc5c16c01935dd"
624 | url: "https://pub.dev"
625 | source: hosted
626 | version: "2.1.5"
627 | pointycastle:
628 | dependency: transitive
629 | description:
630 | name: pointycastle
631 | sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c"
632 | url: "https://pub.dev"
633 | source: hosted
634 | version: "3.7.3"
635 | quiver:
636 | dependency: "direct main"
637 | description:
638 | name: quiver
639 | sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47
640 | url: "https://pub.dev"
641 | source: hosted
642 | version: "3.2.1"
643 | rxdart:
644 | dependency: transitive
645 | description:
646 | name: rxdart
647 | sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb"
648 | url: "https://pub.dev"
649 | source: hosted
650 | version: "0.27.7"
651 | sky_engine:
652 | dependency: transitive
653 | description: flutter
654 | source: sdk
655 | version: "0.0.99"
656 | source_span:
657 | dependency: transitive
658 | description:
659 | name: source_span
660 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
661 | url: "https://pub.dev"
662 | source: hosted
663 | version: "1.9.1"
664 | sqflite:
665 | dependency: transitive
666 | description:
667 | name: sqflite
668 | sha256: "591f1602816e9c31377d5f008c2d9ef7b8aca8941c3f89cc5fd9d84da0c38a9a"
669 | url: "https://pub.dev"
670 | source: hosted
671 | version: "2.3.0"
672 | sqflite_common:
673 | dependency: transitive
674 | description:
675 | name: sqflite_common
676 | sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a"
677 | url: "https://pub.dev"
678 | source: hosted
679 | version: "2.5.0"
680 | stack_trace:
681 | dependency: transitive
682 | description:
683 | name: stack_trace
684 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
685 | url: "https://pub.dev"
686 | source: hosted
687 | version: "1.11.0"
688 | stream_channel:
689 | dependency: transitive
690 | description:
691 | name: stream_channel
692 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
693 | url: "https://pub.dev"
694 | source: hosted
695 | version: "2.1.1"
696 | string_scanner:
697 | dependency: transitive
698 | description:
699 | name: string_scanner
700 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
701 | url: "https://pub.dev"
702 | source: hosted
703 | version: "1.2.0"
704 | synchronized:
705 | dependency: transitive
706 | description:
707 | name: synchronized
708 | sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60"
709 | url: "https://pub.dev"
710 | source: hosted
711 | version: "3.1.0"
712 | term_glyph:
713 | dependency: transitive
714 | description:
715 | name: term_glyph
716 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
717 | url: "https://pub.dev"
718 | source: hosted
719 | version: "1.2.1"
720 | test_api:
721 | dependency: transitive
722 | description:
723 | name: test_api
724 | sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
725 | url: "https://pub.dev"
726 | source: hosted
727 | version: "0.5.1"
728 | timeago:
729 | dependency: "direct main"
730 | description:
731 | name: timeago
732 | sha256: "46c128312ab0ea144b146c0ac6426ddd96810efec2de3fccc425d00179cd8254"
733 | url: "https://pub.dev"
734 | source: hosted
735 | version: "3.3.0"
736 | typed_data:
737 | dependency: transitive
738 | description:
739 | name: typed_data
740 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
741 | url: "https://pub.dev"
742 | source: hosted
743 | version: "1.3.2"
744 | uuid:
745 | dependency: "direct main"
746 | description:
747 | name: uuid
748 | sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"
749 | url: "https://pub.dev"
750 | source: hosted
751 | version: "3.0.7"
752 | vector_math:
753 | dependency: transitive
754 | description:
755 | name: vector_math
756 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
757 | url: "https://pub.dev"
758 | source: hosted
759 | version: "2.1.4"
760 | win32:
761 | dependency: transitive
762 | description:
763 | name: win32
764 | sha256: f2add6fa510d3ae152903412227bda57d0d5a8da61d2c39c1fb022c9429a41c0
765 | url: "https://pub.dev"
766 | source: hosted
767 | version: "5.0.6"
768 | xdg_directories:
769 | dependency: transitive
770 | description:
771 | name: xdg_directories
772 | sha256: f0c26453a2d47aa4c2570c6a033246a3fc62da2fe23c7ffdd0a7495086dc0247
773 | url: "https://pub.dev"
774 | source: hosted
775 | version: "1.0.2"
776 | xml:
777 | dependency: transitive
778 | description:
779 | name: xml
780 | sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84"
781 | url: "https://pub.dev"
782 | source: hosted
783 | version: "6.3.0"
784 | sdks:
785 | dart: ">=3.0.0 <4.0.0"
786 | flutter: ">=3.7.0"
787 |
--------------------------------------------------------------------------------