├── .gitignore ├── .metadata ├── README.md ├── android ├── app │ ├── build.gradle │ ├── google-services.json │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── hyperionstudios │ │ │ │ └── com │ │ │ │ └── au │ │ │ │ └── flutter_shop │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── 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 │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── 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-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── GoogleService-Info.plist │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── admin │ ├── add_category.dart │ ├── add_product.dart │ ├── categories.dart │ ├── products.dart │ └── single_product.dart ├── authentication │ ├── authenticatable.dart │ ├── authentication_controller.dart │ └── firebase_auth.dart ├── cart │ ├── base_cart.dart │ ├── base_cart_item.dart │ └── base_cart_item_controller.dart ├── category │ ├── base_category.dart │ └── category_controller.dart ├── discount │ ├── base_discount.dart │ └── discount_controller.dart ├── image │ ├── base_image.dart │ └── image_controller.dart ├── main.dart ├── order │ ├── base_order.dart │ └── order_controller.dart ├── payment │ └── base_payment.dart ├── product │ ├── base_product.dart │ └── product_controller.dart ├── product_option │ └── base_option.dart ├── tag │ ├── base_tag.dart │ └── tag_controller.dart └── user │ ├── address.dart │ ├── customer.dart │ ├── customer_controller.dart │ ├── shop_owner.dart │ └── user.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.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 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /.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: b712a172f9694745f50505c93340883493b505e5 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_shop 2 | 3 | A new Flutter application. 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 | -------------------------------------------------------------------------------- /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 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "hyperionstudios.com.au.flutter_shop" 42 | minSdkVersion 21 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 67 | } 68 | 69 | apply plugin: 'com.google.gms.google-services' -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "920767503483", 4 | "firebase_url": "https://fluttershop-8a243.firebaseio.com", 5 | "project_id": "fluttershop-8a243", 6 | "storage_bucket": "fluttershop-8a243.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:920767503483:android:4be33886d1b02555", 12 | "android_client_info": { 13 | "package_name": "hyperionstudios.com.au.flutter_shop" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "920767503483-3k4gjp3ft3u2vh6coio82d5bb8mcar4i.apps.googleusercontent.com", 19 | "client_type": 3 20 | } 21 | ], 22 | "api_key": [ 23 | { 24 | "current_key": "AIzaSyDqmpcJhyneEKsHo4Oc7XuqaHdlXLGWQJY" 25 | } 26 | ], 27 | "services": { 28 | "appinvite_service": { 29 | "other_platform_oauth_client": [ 30 | { 31 | "client_id": "920767503483-3k4gjp3ft3u2vh6coio82d5bb8mcar4i.apps.googleusercontent.com", 32 | "client_type": 3 33 | }, 34 | { 35 | "client_id": "920767503483-1j49moqk969hl3do7ibmrsnurjpfihcr.apps.googleusercontent.com", 36 | "client_type": 2, 37 | "ios_info": { 38 | "bundle_id": "hyperionstudios.com.au.flutterShop" 39 | } 40 | } 41 | ] 42 | } 43 | } 44 | } 45 | ], 46 | "configuration_version": "1" 47 | } -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/hyperionstudios/com/au/flutter_shop/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package hyperionstudios.com.au.flutter_shop 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:3.2.1' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | -------------------------------------------------------------------------------- /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-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /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 parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | 38 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 39 | # referring to absolute paths on developers' machines. 40 | system('rm -rf .symlinks') 41 | system('mkdir -p .symlinks/plugins') 42 | 43 | # Flutter Pods 44 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 45 | if generated_xcode_build_settings.empty? 46 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first." 47 | end 48 | generated_xcode_build_settings.map { |p| 49 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 50 | symlink = File.join('.symlinks', 'flutter') 51 | File.symlink(File.dirname(p[:path]), symlink) 52 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 53 | end 54 | } 55 | 56 | # Plugin Pods 57 | plugin_pods = parse_KV_file('../.flutter-plugins') 58 | plugin_pods.map { |p| 59 | symlink = File.join('.symlinks', 'plugins', p[:name]) 60 | File.symlink(p[:path], symlink) 61 | pod p[:name], :path => File.join(symlink, 'ios') 62 | } 63 | end 64 | 65 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 66 | install! 'cocoapods', :disable_input_output_paths => true 67 | 68 | post_install do |installer| 69 | installer.pods_project.targets.each do |target| 70 | target.build_configurations.each do |config| 71 | config.build_settings['ENABLE_BITCODE'] = 'NO' 72 | end 73 | end 74 | end 75 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BoringSSL-GRPC (0.0.3): 3 | - BoringSSL-GRPC/Implementation (= 0.0.3) 4 | - BoringSSL-GRPC/Interface (= 0.0.3) 5 | - BoringSSL-GRPC/Implementation (0.0.3): 6 | - BoringSSL-GRPC/Interface (= 0.0.3) 7 | - BoringSSL-GRPC/Interface (0.0.3) 8 | - cloud_firestore (0.0.1): 9 | - Firebase/Core 10 | - Firebase/Firestore (~> 6.0) 11 | - Flutter 12 | - Firebase/Auth (6.5.0): 13 | - Firebase/CoreOnly 14 | - FirebaseAuth (~> 6.2.1) 15 | - Firebase/Core (6.5.0): 16 | - Firebase/CoreOnly 17 | - FirebaseAnalytics (= 6.0.4) 18 | - Firebase/CoreOnly (6.5.0): 19 | - FirebaseCore (= 6.1.0) 20 | - Firebase/Firestore (6.5.0): 21 | - Firebase/CoreOnly 22 | - FirebaseFirestore (~> 1.4.2) 23 | - Firebase/Storage (6.5.0): 24 | - Firebase/CoreOnly 25 | - FirebaseStorage (~> 3.4.0) 26 | - firebase_auth (0.0.1): 27 | - Firebase/Auth (~> 6.0) 28 | - Firebase/Core 29 | - Flutter 30 | - firebase_core (0.0.1): 31 | - Firebase/Core 32 | - Flutter 33 | - firebase_storage (0.0.1): 34 | - Firebase/Storage 35 | - Flutter 36 | - FirebaseAnalytics (6.0.4): 37 | - FirebaseCore (~> 6.1) 38 | - FirebaseInstanceID (~> 4.2) 39 | - GoogleAppMeasurement (= 6.0.4) 40 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 41 | - GoogleUtilities/MethodSwizzler (~> 6.0) 42 | - GoogleUtilities/Network (~> 6.0) 43 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 44 | - nanopb (~> 0.3) 45 | - FirebaseAuth (6.2.1): 46 | - FirebaseAuthInterop (~> 1.0) 47 | - FirebaseCore (~> 6.0) 48 | - GoogleUtilities/AppDelegateSwizzler (~> 6.2) 49 | - GoogleUtilities/Environment (~> 6.2) 50 | - GTMSessionFetcher/Core (~> 1.1) 51 | - FirebaseAuthInterop (1.0.0) 52 | - FirebaseCore (6.1.0): 53 | - GoogleUtilities/Environment (~> 6.0) 54 | - GoogleUtilities/Logger (~> 6.0) 55 | - FirebaseFirestore (1.4.2): 56 | - FirebaseAuthInterop (~> 1.0) 57 | - FirebaseCore (~> 6.0) 58 | - FirebaseFirestore/abseil-cpp (= 1.4.2) 59 | - "gRPC-C++ (= 0.0.9)" 60 | - leveldb-library (~> 1.20) 61 | - nanopb (~> 0.3.901) 62 | - Protobuf (~> 3.1) 63 | - FirebaseFirestore/abseil-cpp (1.4.2): 64 | - FirebaseAuthInterop (~> 1.0) 65 | - FirebaseCore (~> 6.0) 66 | - "gRPC-C++ (= 0.0.9)" 67 | - leveldb-library (~> 1.20) 68 | - nanopb (~> 0.3.901) 69 | - Protobuf (~> 3.1) 70 | - FirebaseInstanceID (4.2.2): 71 | - FirebaseCore (~> 6.0) 72 | - GoogleUtilities/Environment (~> 6.0) 73 | - GoogleUtilities/UserDefaults (~> 6.0) 74 | - FirebaseStorage (3.4.0): 75 | - FirebaseAuthInterop (~> 1.0) 76 | - FirebaseCore (~> 6.0) 77 | - GTMSessionFetcher/Core (~> 1.1) 78 | - Flutter (1.0.0) 79 | - GoogleAppMeasurement (6.0.4): 80 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 81 | - GoogleUtilities/MethodSwizzler (~> 6.0) 82 | - GoogleUtilities/Network (~> 6.0) 83 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 84 | - nanopb (~> 0.3) 85 | - GoogleUtilities/AppDelegateSwizzler (6.2.3): 86 | - GoogleUtilities/Environment 87 | - GoogleUtilities/Logger 88 | - GoogleUtilities/Network 89 | - GoogleUtilities/Environment (6.2.3) 90 | - GoogleUtilities/Logger (6.2.3): 91 | - GoogleUtilities/Environment 92 | - GoogleUtilities/MethodSwizzler (6.2.3): 93 | - GoogleUtilities/Logger 94 | - GoogleUtilities/Network (6.2.3): 95 | - GoogleUtilities/Logger 96 | - "GoogleUtilities/NSData+zlib" 97 | - GoogleUtilities/Reachability 98 | - "GoogleUtilities/NSData+zlib (6.2.3)" 99 | - GoogleUtilities/Reachability (6.2.3): 100 | - GoogleUtilities/Logger 101 | - GoogleUtilities/UserDefaults (6.2.3): 102 | - GoogleUtilities/Logger 103 | - "gRPC-C++ (0.0.9)": 104 | - "gRPC-C++/Implementation (= 0.0.9)" 105 | - "gRPC-C++/Interface (= 0.0.9)" 106 | - "gRPC-C++/Implementation (0.0.9)": 107 | - "gRPC-C++/Interface (= 0.0.9)" 108 | - gRPC-Core (= 1.21.0) 109 | - nanopb (~> 0.3) 110 | - "gRPC-C++/Interface (0.0.9)" 111 | - gRPC-Core (1.21.0): 112 | - gRPC-Core/Implementation (= 1.21.0) 113 | - gRPC-Core/Interface (= 1.21.0) 114 | - gRPC-Core/Implementation (1.21.0): 115 | - BoringSSL-GRPC (= 0.0.3) 116 | - gRPC-Core/Interface (= 1.21.0) 117 | - nanopb (~> 0.3) 118 | - gRPC-Core/Interface (1.21.0) 119 | - GTMSessionFetcher/Core (1.2.2) 120 | - image_picker (0.0.1): 121 | - Flutter 122 | - leveldb-library (1.20) 123 | - nanopb (0.3.901): 124 | - nanopb/decode (= 0.3.901) 125 | - nanopb/encode (= 0.3.901) 126 | - nanopb/decode (0.3.901) 127 | - nanopb/encode (0.3.901) 128 | - Protobuf (3.9.0) 129 | 130 | DEPENDENCIES: 131 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) 132 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) 133 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 134 | - firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) 135 | - Flutter (from `.symlinks/flutter/ios`) 136 | - image_picker (from `.symlinks/plugins/image_picker/ios`) 137 | 138 | SPEC REPOS: 139 | https://github.com/cocoapods/specs.git: 140 | - BoringSSL-GRPC 141 | - Firebase 142 | - FirebaseAnalytics 143 | - FirebaseAuth 144 | - FirebaseAuthInterop 145 | - FirebaseCore 146 | - FirebaseFirestore 147 | - FirebaseInstanceID 148 | - FirebaseStorage 149 | - GoogleAppMeasurement 150 | - GoogleUtilities 151 | - "gRPC-C++" 152 | - gRPC-Core 153 | - GTMSessionFetcher 154 | - leveldb-library 155 | - nanopb 156 | - Protobuf 157 | 158 | EXTERNAL SOURCES: 159 | cloud_firestore: 160 | :path: ".symlinks/plugins/cloud_firestore/ios" 161 | firebase_auth: 162 | :path: ".symlinks/plugins/firebase_auth/ios" 163 | firebase_core: 164 | :path: ".symlinks/plugins/firebase_core/ios" 165 | firebase_storage: 166 | :path: ".symlinks/plugins/firebase_storage/ios" 167 | Flutter: 168 | :path: ".symlinks/flutter/ios" 169 | image_picker: 170 | :path: ".symlinks/plugins/image_picker/ios" 171 | 172 | SPEC CHECKSUMS: 173 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318 174 | cloud_firestore: 41f84086d2e1a5c216a6af07ef050758de825ff0 175 | Firebase: dedc9e48ea3f3649ad5f6b982f8a0c73508a14b5 176 | firebase_auth: 45f6476560c372649eba5980c58f0783b527d04f 177 | firebase_core: b3b02d0b5e9d01aab5e50ba7cbcf84c73cb6883c 178 | firebase_storage: 52b0c06e27af628b627be28d32b4b540f6b67cf7 179 | FirebaseAnalytics: 3fb375bc9d13779add4039716f868d233a473fad 180 | FirebaseAuth: a06ad63e9bf4c86165b54cceb1c14d4f4c38d419 181 | FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc 182 | FirebaseCore: aecf02fb2274ec361b9bebeac112f5daa18273bd 183 | FirebaseFirestore: 41a035642eb017fc7206318985501626993840bd 184 | FirebaseInstanceID: 662b8108a09fe9ed01aafdedba100fde8536b0f6 185 | FirebaseStorage: 618dd8fd886b30adf6e5d1915b1f5c18cb5c3944 186 | Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a 187 | GoogleAppMeasurement: 183bd916af7f80deb67c01888368f1108d641832 188 | GoogleUtilities: d2b0e277a95962e09bb27f5cd42f5f0b6a506c7d 189 | "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83 190 | gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947 191 | GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23 192 | image_picker: 16e5fec1fbc87fd3b297c53e4048521eaf17cd06 193 | leveldb-library: 08cba283675b7ed2d99629a4bc5fd052cd2bb6a5 194 | nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48 195 | Protobuf: 1097ca58584c8d9be81bfbf2c5ff5975648dd87a 196 | 197 | PODFILE CHECKSUM: b6a0a141693093b304368d08511b46cf3d1d0ac5 198 | 199 | COCOAPODS: 1.7.5 200 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 6C2704C4DC0550F74E5549E5 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D3035D5063E97A360C16231 /* Pods_Runner.framework */; }; 15 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 18 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | DAE0758B23092ED8004A448C /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = DAE0758A23092ED8004A448C /* GoogleService-Info.plist */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 1E36D3E377508DC1BF3586BF /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 44 | 248CEC161EA2D7D5DA0CF6D8 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 4D3035D5063E97A360C16231 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 49 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 50 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 54 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | B01380C175EE2A0E327874A9 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 60 | DAE0758A23092ED8004A448C /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 69 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 70 | 6C2704C4DC0550F74E5549E5 /* Pods_Runner.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 063304DEFE656B5D3E99E5B1 /* Pods */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | B01380C175EE2A0E327874A9 /* Pods-Runner.debug.xcconfig */, 81 | 1E36D3E377508DC1BF3586BF /* Pods-Runner.release.xcconfig */, 82 | 248CEC161EA2D7D5DA0CF6D8 /* Pods-Runner.profile.xcconfig */, 83 | ); 84 | path = Pods; 85 | sourceTree = ""; 86 | }; 87 | 6AA2ED4A097F5F56A096CA0F /* Frameworks */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 4D3035D5063E97A360C16231 /* Pods_Runner.framework */, 91 | ); 92 | name = Frameworks; 93 | sourceTree = ""; 94 | }; 95 | 9740EEB11CF90186004384FC /* Flutter */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 3B80C3931E831B6300D905FE /* App.framework */, 99 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 100 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 101 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 102 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 103 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 104 | ); 105 | name = Flutter; 106 | sourceTree = ""; 107 | }; 108 | 97C146E51CF9000F007C117D = { 109 | isa = PBXGroup; 110 | children = ( 111 | 9740EEB11CF90186004384FC /* Flutter */, 112 | 97C146F01CF9000F007C117D /* Runner */, 113 | 97C146EF1CF9000F007C117D /* Products */, 114 | 063304DEFE656B5D3E99E5B1 /* Pods */, 115 | 6AA2ED4A097F5F56A096CA0F /* Frameworks */, 116 | ); 117 | sourceTree = ""; 118 | }; 119 | 97C146EF1CF9000F007C117D /* Products */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 97C146EE1CF9000F007C117D /* Runner.app */, 123 | ); 124 | name = Products; 125 | sourceTree = ""; 126 | }; 127 | 97C146F01CF9000F007C117D /* Runner */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | DAE0758A23092ED8004A448C /* GoogleService-Info.plist */, 131 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 132 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 133 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 134 | 97C147021CF9000F007C117D /* Info.plist */, 135 | 97C146F11CF9000F007C117D /* Supporting Files */, 136 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 137 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 138 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 139 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 140 | ); 141 | path = Runner; 142 | sourceTree = ""; 143 | }; 144 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | /* End PBXGroup section */ 152 | 153 | /* Begin PBXNativeTarget section */ 154 | 97C146ED1CF9000F007C117D /* Runner */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 157 | buildPhases = ( 158 | D5F1121B7845678301856406 /* [CP] Check Pods Manifest.lock */, 159 | 9740EEB61CF901F6004384FC /* Run Script */, 160 | 97C146EA1CF9000F007C117D /* Sources */, 161 | 97C146EB1CF9000F007C117D /* Frameworks */, 162 | 97C146EC1CF9000F007C117D /* Resources */, 163 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 164 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 165 | DB0FB3FD43757AD7CCEE91D6 /* [CP] Embed Pods Frameworks */, 166 | ); 167 | buildRules = ( 168 | ); 169 | dependencies = ( 170 | ); 171 | name = Runner; 172 | productName = Runner; 173 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 174 | productType = "com.apple.product-type.application"; 175 | }; 176 | /* End PBXNativeTarget section */ 177 | 178 | /* Begin PBXProject section */ 179 | 97C146E61CF9000F007C117D /* Project object */ = { 180 | isa = PBXProject; 181 | attributes = { 182 | LastUpgradeCheck = 1020; 183 | ORGANIZATIONNAME = "The Chromium Authors"; 184 | TargetAttributes = { 185 | 97C146ED1CF9000F007C117D = { 186 | CreatedOnToolsVersion = 7.3.1; 187 | LastSwiftMigration = 0910; 188 | }; 189 | }; 190 | }; 191 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 192 | compatibilityVersion = "Xcode 3.2"; 193 | developmentRegion = en; 194 | hasScannedForEncodings = 0; 195 | knownRegions = ( 196 | en, 197 | Base, 198 | ); 199 | mainGroup = 97C146E51CF9000F007C117D; 200 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 201 | projectDirPath = ""; 202 | projectRoot = ""; 203 | targets = ( 204 | 97C146ED1CF9000F007C117D /* Runner */, 205 | ); 206 | }; 207 | /* End PBXProject section */ 208 | 209 | /* Begin PBXResourcesBuildPhase section */ 210 | 97C146EC1CF9000F007C117D /* Resources */ = { 211 | isa = PBXResourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 215 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 216 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | DAE0758B23092ED8004A448C /* GoogleService-Info.plist in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | /* End PBXResourcesBuildPhase section */ 224 | 225 | /* Begin PBXShellScriptBuildPhase section */ 226 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 227 | isa = PBXShellScriptBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | ); 233 | name = "Thin Binary"; 234 | outputPaths = ( 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | shellPath = /bin/sh; 238 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 239 | }; 240 | 9740EEB61CF901F6004384FC /* Run Script */ = { 241 | isa = PBXShellScriptBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | inputPaths = ( 246 | ); 247 | name = "Run Script"; 248 | outputPaths = ( 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | shellPath = /bin/sh; 252 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 253 | }; 254 | D5F1121B7845678301856406 /* [CP] Check Pods Manifest.lock */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputFileListPaths = ( 260 | ); 261 | inputPaths = ( 262 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 263 | "${PODS_ROOT}/Manifest.lock", 264 | ); 265 | name = "[CP] Check Pods Manifest.lock"; 266 | outputFileListPaths = ( 267 | ); 268 | outputPaths = ( 269 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | shellPath = /bin/sh; 273 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 274 | showEnvVarsInLog = 0; 275 | }; 276 | DB0FB3FD43757AD7CCEE91D6 /* [CP] Embed Pods Frameworks */ = { 277 | isa = PBXShellScriptBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | ); 281 | inputPaths = ( 282 | ); 283 | name = "[CP] Embed Pods Frameworks"; 284 | outputPaths = ( 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | shellPath = /bin/sh; 288 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 289 | showEnvVarsInLog = 0; 290 | }; 291 | /* End PBXShellScriptBuildPhase section */ 292 | 293 | /* Begin PBXSourcesBuildPhase section */ 294 | 97C146EA1CF9000F007C117D /* Sources */ = { 295 | isa = PBXSourcesBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 299 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | /* End PBXSourcesBuildPhase section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | 97C146FB1CF9000F007C117D /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | 97C147001CF9000F007C117D /* Base */, 318 | ); 319 | name = LaunchScreen.storyboard; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 326 | isa = XCBuildConfiguration; 327 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 328 | buildSettings = { 329 | ALWAYS_SEARCH_USER_PATHS = NO; 330 | CLANG_ANALYZER_NONNULL = YES; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INFINITE_RECURSION = YES; 344 | CLANG_WARN_INT_CONVERSION = YES; 345 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 346 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 347 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 348 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 349 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 350 | CLANG_WARN_STRICT_PROTOTYPES = YES; 351 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 357 | ENABLE_NS_ASSERTIONS = NO; 358 | ENABLE_STRICT_OBJC_MSGSEND = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_NO_COMMON_BLOCKS = YES; 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | MTL_ENABLE_DEBUG_INFO = NO; 369 | SDKROOT = iphoneos; 370 | TARGETED_DEVICE_FAMILY = "1,2"; 371 | VALIDATE_PRODUCT = YES; 372 | }; 373 | name = Profile; 374 | }; 375 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 378 | buildSettings = { 379 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 380 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 381 | DEVELOPMENT_TEAM = S8QB4VV633; 382 | ENABLE_BITCODE = NO; 383 | FRAMEWORK_SEARCH_PATHS = ( 384 | "$(inherited)", 385 | "$(PROJECT_DIR)/Flutter", 386 | ); 387 | INFOPLIST_FILE = Runner/Info.plist; 388 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 389 | LIBRARY_SEARCH_PATHS = ( 390 | "$(inherited)", 391 | "$(PROJECT_DIR)/Flutter", 392 | ); 393 | PRODUCT_BUNDLE_IDENTIFIER = hyperionstudios.com.au.flutterShop; 394 | PRODUCT_NAME = "$(TARGET_NAME)"; 395 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 396 | SWIFT_VERSION = 4.0; 397 | VERSIONING_SYSTEM = "apple-generic"; 398 | }; 399 | name = Profile; 400 | }; 401 | 97C147031CF9000F007C117D /* Debug */ = { 402 | isa = XCBuildConfiguration; 403 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 404 | buildSettings = { 405 | ALWAYS_SEARCH_USER_PATHS = NO; 406 | CLANG_ANALYZER_NONNULL = YES; 407 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 408 | CLANG_CXX_LIBRARY = "libc++"; 409 | CLANG_ENABLE_MODULES = YES; 410 | CLANG_ENABLE_OBJC_ARC = YES; 411 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 412 | CLANG_WARN_BOOL_CONVERSION = YES; 413 | CLANG_WARN_COMMA = YES; 414 | CLANG_WARN_CONSTANT_CONVERSION = YES; 415 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 416 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 417 | CLANG_WARN_EMPTY_BODY = YES; 418 | CLANG_WARN_ENUM_CONVERSION = YES; 419 | CLANG_WARN_INFINITE_RECURSION = YES; 420 | CLANG_WARN_INT_CONVERSION = YES; 421 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 422 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 423 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 424 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 425 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 426 | CLANG_WARN_STRICT_PROTOTYPES = YES; 427 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 428 | CLANG_WARN_UNREACHABLE_CODE = YES; 429 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 430 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 431 | COPY_PHASE_STRIP = NO; 432 | DEBUG_INFORMATION_FORMAT = dwarf; 433 | ENABLE_STRICT_OBJC_MSGSEND = YES; 434 | ENABLE_TESTABILITY = YES; 435 | GCC_C_LANGUAGE_STANDARD = gnu99; 436 | GCC_DYNAMIC_NO_PIC = NO; 437 | GCC_NO_COMMON_BLOCKS = YES; 438 | GCC_OPTIMIZATION_LEVEL = 0; 439 | GCC_PREPROCESSOR_DEFINITIONS = ( 440 | "DEBUG=1", 441 | "$(inherited)", 442 | ); 443 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 444 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 445 | GCC_WARN_UNDECLARED_SELECTOR = YES; 446 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 447 | GCC_WARN_UNUSED_FUNCTION = YES; 448 | GCC_WARN_UNUSED_VARIABLE = YES; 449 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 450 | MTL_ENABLE_DEBUG_INFO = YES; 451 | ONLY_ACTIVE_ARCH = YES; 452 | SDKROOT = iphoneos; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | }; 455 | name = Debug; 456 | }; 457 | 97C147041CF9000F007C117D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 460 | buildSettings = { 461 | ALWAYS_SEARCH_USER_PATHS = NO; 462 | CLANG_ANALYZER_NONNULL = YES; 463 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 464 | CLANG_CXX_LIBRARY = "libc++"; 465 | CLANG_ENABLE_MODULES = YES; 466 | CLANG_ENABLE_OBJC_ARC = YES; 467 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 468 | CLANG_WARN_BOOL_CONVERSION = YES; 469 | CLANG_WARN_COMMA = YES; 470 | CLANG_WARN_CONSTANT_CONVERSION = YES; 471 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 472 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 473 | CLANG_WARN_EMPTY_BODY = YES; 474 | CLANG_WARN_ENUM_CONVERSION = YES; 475 | CLANG_WARN_INFINITE_RECURSION = YES; 476 | CLANG_WARN_INT_CONVERSION = YES; 477 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 478 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 479 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 480 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 481 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 482 | CLANG_WARN_STRICT_PROTOTYPES = YES; 483 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 484 | CLANG_WARN_UNREACHABLE_CODE = YES; 485 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 486 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 487 | COPY_PHASE_STRIP = NO; 488 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 489 | ENABLE_NS_ASSERTIONS = NO; 490 | ENABLE_STRICT_OBJC_MSGSEND = YES; 491 | GCC_C_LANGUAGE_STANDARD = gnu99; 492 | GCC_NO_COMMON_BLOCKS = YES; 493 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 494 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 495 | GCC_WARN_UNDECLARED_SELECTOR = YES; 496 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 497 | GCC_WARN_UNUSED_FUNCTION = YES; 498 | GCC_WARN_UNUSED_VARIABLE = YES; 499 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 500 | MTL_ENABLE_DEBUG_INFO = NO; 501 | SDKROOT = iphoneos; 502 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | VALIDATE_PRODUCT = YES; 505 | }; 506 | name = Release; 507 | }; 508 | 97C147061CF9000F007C117D /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 511 | buildSettings = { 512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 513 | CLANG_ENABLE_MODULES = YES; 514 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 515 | ENABLE_BITCODE = NO; 516 | FRAMEWORK_SEARCH_PATHS = ( 517 | "$(inherited)", 518 | "$(PROJECT_DIR)/Flutter", 519 | ); 520 | INFOPLIST_FILE = Runner/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 522 | LIBRARY_SEARCH_PATHS = ( 523 | "$(inherited)", 524 | "$(PROJECT_DIR)/Flutter", 525 | ); 526 | PRODUCT_BUNDLE_IDENTIFIER = hyperionstudios.com.au.flutterShop; 527 | PRODUCT_NAME = "$(TARGET_NAME)"; 528 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 529 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 530 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 531 | SWIFT_VERSION = 4.0; 532 | VERSIONING_SYSTEM = "apple-generic"; 533 | }; 534 | name = Debug; 535 | }; 536 | 97C147071CF9000F007C117D /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 539 | buildSettings = { 540 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 541 | CLANG_ENABLE_MODULES = YES; 542 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 543 | ENABLE_BITCODE = NO; 544 | FRAMEWORK_SEARCH_PATHS = ( 545 | "$(inherited)", 546 | "$(PROJECT_DIR)/Flutter", 547 | ); 548 | INFOPLIST_FILE = Runner/Info.plist; 549 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 550 | LIBRARY_SEARCH_PATHS = ( 551 | "$(inherited)", 552 | "$(PROJECT_DIR)/Flutter", 553 | ); 554 | PRODUCT_BUNDLE_IDENTIFIER = hyperionstudios.com.au.flutterShop; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 557 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 558 | SWIFT_VERSION = 4.0; 559 | VERSIONING_SYSTEM = "apple-generic"; 560 | }; 561 | name = Release; 562 | }; 563 | /* End XCBuildConfiguration section */ 564 | 565 | /* Begin XCConfigurationList section */ 566 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 567 | isa = XCConfigurationList; 568 | buildConfigurations = ( 569 | 97C147031CF9000F007C117D /* Debug */, 570 | 97C147041CF9000F007C117D /* Release */, 571 | 249021D3217E4FDB00AE95B9 /* Profile */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 577 | isa = XCConfigurationList; 578 | buildConfigurations = ( 579 | 97C147061CF9000F007C117D /* Debug */, 580 | 97C147071CF9000F007C117D /* Release */, 581 | 249021D4217E4FDB00AE95B9 /* Profile */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | /* End XCConfigurationList section */ 587 | }; 588 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 589 | } 590 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/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/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperionstudios/flutter_shop/89e8f1f36f6b3b3d26672ecb4de2ef32d4c80b8a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 920767503483-1j49moqk969hl3do7ibmrsnurjpfihcr.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.920767503483-1j49moqk969hl3do7ibmrsnurjpfihcr 9 | API_KEY 10 | AIzaSyBZyGh6lLe9PkRVK5fd6S-F4ORheNG3FLk 11 | GCM_SENDER_ID 12 | 920767503483 13 | PLIST_VERSION 14 | 1 15 | BUNDLE_ID 16 | hyperionstudios.com.au.flutterShop 17 | PROJECT_ID 18 | fluttershop-8a243 19 | STORAGE_BUCKET 20 | fluttershop-8a243.appspot.com 21 | IS_ADS_ENABLED 22 | 23 | IS_ANALYTICS_ENABLED 24 | 25 | IS_APPINVITE_ENABLED 26 | 27 | IS_GCM_ENABLED 28 | 29 | IS_SIGNIN_ENABLED 30 | 31 | GOOGLE_APP_ID 32 | 1:920767503483:ios:c0c91f9232315c69 33 | DATABASE_URL 34 | https://fluttershop-8a243.firebaseio.com 35 | 36 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_shop 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | NSPhotoLibraryUsageDescription 45 | We use library to upload product images 46 | NSCameraUsageDescription 47 | Take photos for your products 48 | NSMicrophoneUsageDescription 49 | We not using microphone 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/admin/add_category.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart' as prefix0; 2 | import 'package:flutter/material.dart'; 3 | import 'package:cloud_firestore/cloud_firestore.dart'; 4 | 5 | class AddCategoryScreen extends StatefulWidget { 6 | @override 7 | _AddCategoryScreenState createState() => _AddCategoryScreenState(); 8 | } 9 | 10 | class _AddCategoryScreenState extends State { 11 | 12 | TextEditingController _categoryTitleController = TextEditingController(); 13 | 14 | var _formKey = GlobalKey(); 15 | 16 | bool isLoading = false; 17 | bool isError = false; 18 | 19 | @override 20 | void dispose() { 21 | _categoryTitleController.dispose(); 22 | super.dispose(); 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Scaffold( 28 | appBar: AppBar( 29 | title: Text('Add New Category'), 30 | ), 31 | body: ( isLoading ) ? _loading() : _categoryForm() 32 | ); 33 | } 34 | 35 | 36 | 37 | Widget _loading(){ 38 | return Container( 39 | child: Center( 40 | child: CircularProgressIndicator(), 41 | ), 42 | ); 43 | } 44 | 45 | Widget _categoryForm(){ 46 | return Form( 47 | key: _formKey, 48 | child: Container( 49 | child: Column( 50 | mainAxisAlignment: MainAxisAlignment.start, 51 | crossAxisAlignment: CrossAxisAlignment.start, 52 | children: [ 53 | Container( 54 | padding: EdgeInsets.all(16), 55 | child: TextFormField( 56 | controller: _categoryTitleController, 57 | validator: ( value ){ 58 | if( value.isEmpty ){ 59 | return 'Category Title is required'; 60 | } 61 | return null; 62 | }, 63 | decoration: InputDecoration( 64 | hintText: 'Category Title' 65 | ), 66 | ), 67 | ), 68 | SizedBox(height: 16,), 69 | Padding( 70 | padding: const EdgeInsets.only( left: 16 ), 71 | child: RaisedButton( 72 | child: Text('Save Category'), 73 | onPressed: () async { 74 | if( _formKey.currentState.validate() ){ 75 | setState(() { 76 | isLoading = true; 77 | }); 78 | var response = await Firestore.instance.collection('categories').where( 'title' , isEqualTo: _categoryTitleController.text ).snapshots().first; 79 | if( response.documents.length >= 1 ){ 80 | setState(() { 81 | isLoading = false; 82 | isError = true; 83 | }); 84 | }else{ 85 | Firestore.instance.collection('categories').document().setData( 86 | { 87 | 'title' : _categoryTitleController.text 88 | } 89 | ).then(( onValue ){ 90 | _categoryTitleController.text = ''; 91 | }); 92 | setState(() { 93 | isLoading = false; 94 | isError = false; 95 | }); 96 | } 97 | } 98 | }, 99 | ), 100 | ), 101 | ( isError ) ? _error() : Container() 102 | ], 103 | ), 104 | ), 105 | ); 106 | } 107 | 108 | Widget _error(){ 109 | return Container( 110 | child: Center( 111 | child: Text('Error, duplicate entry' , style: TextStyle(color: Colors.red),), 112 | ), 113 | ); 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /lib/admin/add_product.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:math'; 3 | 4 | import 'package:cloud_firestore/cloud_firestore.dart'; 5 | import 'package:firebase_storage/firebase_storage.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:image_picker/image_picker.dart'; 8 | 9 | class AddProduct extends StatefulWidget { 10 | @override 11 | _AddProductState createState() => _AddProductState(); 12 | } 13 | 14 | class _AddProductState extends State { 15 | final _formKey = GlobalKey(); 16 | 17 | File _image1, _image2, _image3; 18 | 19 | 20 | TextEditingController _productTitleController = TextEditingController(); 21 | TextEditingController _productDescriptionController = TextEditingController(); 22 | TextEditingController _productPriceController = TextEditingController(); 23 | 24 | String selectedValue = 'Select Category'; 25 | 26 | bool isError = false; 27 | 28 | Future getImage( File requiredImage ) async { 29 | var image = await ImagePicker.pickImage(source: ImageSource.gallery ); 30 | 31 | setState(() { 32 | requiredImage = image; 33 | }); 34 | } 35 | 36 | @override 37 | void initState() { 38 | super.initState(); 39 | } 40 | 41 | @override 42 | void dispose() { 43 | super.dispose(); 44 | _productDescriptionController.dispose(); 45 | _productPriceController.dispose(); 46 | _productTitleController.dispose(); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return Scaffold( 52 | appBar: AppBar( 53 | title: Text('New Product'), 54 | ), 55 | body: Container( 56 | padding: EdgeInsets.all(16), 57 | child: Form( 58 | key: _formKey, 59 | child: Column( 60 | children: [ 61 | TextFormField( 62 | controller: _productTitleController, 63 | decoration: InputDecoration(hintText: 'Product Title'), 64 | validator: (value) { 65 | if (value.isEmpty) { 66 | return 'Title is required'; 67 | } 68 | return null; 69 | }, 70 | ), 71 | SizedBox( 72 | height: 24, 73 | ), 74 | TextFormField( 75 | controller: _productDescriptionController, 76 | maxLines: 5, 77 | decoration: InputDecoration( 78 | hintText: 'Product Description', 79 | ), 80 | validator: (value) { 81 | if (value.isEmpty) { 82 | return 'Description is requied'; 83 | } 84 | return null; 85 | }, 86 | ), 87 | SizedBox( 88 | height: 16, 89 | ), 90 | TextFormField( 91 | controller: _productPriceController, 92 | keyboardType: TextInputType.numberWithOptions( 93 | decimal: true, 94 | ), 95 | decoration: InputDecoration( 96 | hintText: 'Product Price', 97 | ), 98 | validator: (value) { 99 | if (value.isEmpty) { 100 | return 'Price is required'; 101 | } 102 | return null; 103 | }, 104 | ), 105 | SizedBox( 106 | height: 16, 107 | ), 108 | SizedBox( 109 | width: double.infinity, 110 | child: _selectCategory(), 111 | ), 112 | SizedBox( 113 | height: 32, 114 | ), 115 | _displayImagesGrid(), 116 | SizedBox( 117 | height: 32, 118 | ), 119 | RaisedButton( 120 | color: Colors.teal, 121 | child: Text( 122 | 'Save Product', 123 | style: TextStyle(color: Colors.white), 124 | ), 125 | onPressed: () async { 126 | if (_formKey.currentState.validate()) { 127 | String imageUrl1 = await uploadImage(_image1); 128 | String imageUrl2 = await uploadImage(_image2); 129 | String imageUrl3 = await uploadImage(_image3); 130 | 131 | List images = [ imageUrl1 , imageUrl2 , imageUrl3 ]; 132 | 133 | await Firestore.instance 134 | .collection('products') 135 | .document() 136 | .setData({ 137 | 'product_title': _productTitleController.text, 138 | 'product_description': _productDescriptionController.text, 139 | 'product_price': _productPriceController.text , 140 | 'category_title' : selectedValue, 141 | 'images' : images 142 | }); 143 | } 144 | }, 145 | ), 146 | SizedBox(height: 32,), 147 | SizedBox( 148 | width: double.infinity, 149 | child: ( isError ) ? Text('Error Slecting Category' , style: TextStyle(color: Colors.red),) : Container(), 150 | ), 151 | ], 152 | ), 153 | ), 154 | ), 155 | ); 156 | } 157 | 158 | Future uploadImage( File image ) async{ 159 | String name = Random().nextInt(1000).toString() + '_product'; 160 | final StorageReference storageReference = FirebaseStorage().ref().child( name ); 161 | final StorageUploadTask uploadTask = storageReference.putFile(image); 162 | StorageTaskSnapshot response = await uploadTask.onComplete; 163 | String url = await response.ref.getDownloadURL(); 164 | return url; 165 | } 166 | 167 | Widget _selectCategory() { 168 | return StreamBuilder( 169 | stream: Firestore.instance.collection('categories').snapshots(), 170 | builder: (BuildContext context, AsyncSnapshot snapshot) { 171 | if (snapshot.hasError) return Text('Error: ${snapshot.error}'); 172 | switch (snapshot.connectionState) { 173 | case ConnectionState.waiting: 174 | return new Text('Loading...'); 175 | default: 176 | return DropdownButton( 177 | onChanged: (String newValue) { 178 | if( newValue == 'Select Category' ){ 179 | setState(() { 180 | isError = true; 181 | }); 182 | }else{ 183 | setState(() { 184 | selectedValue = newValue; 185 | isError = false; 186 | }); 187 | } 188 | }, 189 | value: selectedValue, 190 | items: snapshot.data.documents.map((DocumentSnapshot document) { 191 | return DropdownMenuItem( 192 | value: document['title'], 193 | child: Text( document['title'] ), 194 | ); 195 | }).toList(), 196 | ); 197 | } 198 | }, 199 | ); 200 | } 201 | 202 | Widget _displayImagesGrid() { 203 | return Column( 204 | children: [ 205 | Row( 206 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 207 | children: [ 208 | InkWell( 209 | child: Container( 210 | padding: EdgeInsets.all(8) , 211 | color: Colors.teal, 212 | ), 213 | onTap: () async{ 214 | var image = await ImagePicker.pickImage(source: ImageSource.gallery ); 215 | setState(() { 216 | _image1 = image; 217 | }); 218 | }, 219 | ), 220 | InkWell( 221 | child: Container( 222 | padding: EdgeInsets.all(8) , 223 | color: Colors.teal, 224 | ), 225 | onTap: () async{ 226 | var image = await ImagePicker.pickImage(source: ImageSource.gallery ); 227 | setState(() { 228 | _image2 = image; 229 | }); 230 | }, 231 | ), 232 | InkWell( 233 | child: Container( 234 | padding: EdgeInsets.all(8) , 235 | color: Colors.teal, 236 | ), 237 | onTap: () async{ 238 | var image = await ImagePicker.pickImage(source: ImageSource.gallery ); 239 | setState(() { 240 | _image3 = image; 241 | }); 242 | }, 243 | ), 244 | ], 245 | ), 246 | ], 247 | ); 248 | } 249 | } 250 | -------------------------------------------------------------------------------- /lib/admin/categories.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class AllCategories extends StatefulWidget { 5 | @override 6 | _AllCategoriesState createState() => _AllCategoriesState(); 7 | } 8 | 9 | class _AllCategoriesState extends State { 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: Text('All Categories'), 16 | ), 17 | body: Container( 18 | padding: EdgeInsets.all(16), 19 | child: StreamBuilder( 20 | stream: Firestore.instance.collection('categories').snapshots(), 21 | builder: ( BuildContext context, AsyncSnapshot snapshot ){ 22 | if (snapshot.hasError) 23 | return Text('Error: ${snapshot.error}'); 24 | switch (snapshot.connectionState) { 25 | case ConnectionState.waiting: return new Text('Loading...'); 26 | default: 27 | return ListView( 28 | children: snapshot.data.documents.map((DocumentSnapshot document) { 29 | return ListTile( 30 | title: Text(document['title']), 31 | trailing: IconButton( 32 | icon: Icon( Icons.delete , color: Colors.red, ), 33 | onPressed: (){ 34 | Firestore.instance.collection('categories').document(document.documentID).delete(); 35 | }, 36 | ), 37 | ); 38 | }).toList(), 39 | ); 40 | } 41 | }, 42 | ), 43 | ), 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/admin/products.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | 5 | class AllProducts extends StatefulWidget { 6 | @override 7 | _AllProductsState createState() => _AllProductsState(); 8 | } 9 | 10 | class _AllProductsState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: Text('My Products'), 16 | ), 17 | body: _drawProducts(), 18 | ); 19 | } 20 | 21 | Widget _drawProducts(){ 22 | return StreamBuilder( 23 | stream: Firestore.instance.collection('products').snapshots(), 24 | builder: (BuildContext context, AsyncSnapshot snapshot) { 25 | if (snapshot.hasError) 26 | return new Text('Error: ${snapshot.error}'); 27 | switch (snapshot.connectionState) { 28 | case ConnectionState.waiting: return new Text('Loading...'); 29 | default: 30 | return ListView( 31 | children: snapshot.data.documents.map((DocumentSnapshot document) { 32 | return ListTile( 33 | title: Text(document['product_title']), 34 | subtitle: Text(document['product_price']), 35 | trailing: ( document['images'] != null ) ? SizedBox( 36 | width: 150, 37 | height: 150, 38 | child: Image( 39 | image: NetworkImage( document['images'][0] ), 40 | fit: BoxFit.cover, 41 | ), 42 | ) : SizedBox(height: 0,width: 0,), 43 | ); 44 | }).toList(), 45 | ); 46 | } 47 | }, 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/admin/single_product.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SingleProduct extends StatefulWidget { 4 | 5 | @override 6 | _SingleProductState createState() => _SingleProductState(); 7 | } 8 | 9 | class _SingleProductState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return Container(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/authentication/authenticatable.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/user/user.dart'; 2 | 3 | class Authenticatable{ 4 | 5 | Future register( String email , String password ){} 6 | 7 | Future login( String email , String password ){} 8 | 9 | Future resetPassword( String email ){} 10 | 11 | Future updateProfile( User user ){} 12 | 13 | } -------------------------------------------------------------------------------- /lib/authentication/authentication_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/user/user.dart'; 2 | 3 | import 'authenticatable.dart'; 4 | 5 | class FirebaseAuthenticationController implements Authenticatable{ 6 | 7 | @override 8 | Future login(String email, String password) { 9 | // TODO: implement login 10 | return null; 11 | } 12 | 13 | @override 14 | Future register(String email, String password) { 15 | // TODO: implement register 16 | return null; 17 | } 18 | 19 | @override 20 | Future resetPassword(String email) { 21 | // TODO: implement resetPassword 22 | return null; 23 | } 24 | 25 | @override 26 | Future updateProfile(User user) { 27 | // TODO: implement updateProfile 28 | return null; 29 | } 30 | 31 | 32 | } -------------------------------------------------------------------------------- /lib/authentication/firebase_auth.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | 3 | class FirebaseAuthentication { 4 | 5 | FirebaseAuth _firebaseAuth = FirebaseAuth.instance; 6 | 7 | signOut() async{ 8 | await _firebaseAuth.signOut(); 9 | } 10 | 11 | Future getCurrentUser() async{ 12 | FirebaseUser user = await _firebaseAuth.currentUser(); 13 | print(user); 14 | return user; 15 | } 16 | 17 | Future sigIn( String email , String password ) async{ 18 | AuthResult authResult = await _firebaseAuth.signInWithEmailAndPassword(email: email, password: password); 19 | return authResult.user; 20 | } 21 | 22 | Future register( String email , String password ) async{ 23 | AuthResult authResult = await _firebaseAuth.createUserWithEmailAndPassword(email: email, password: password); 24 | return authResult.user; 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /lib/cart/base_cart.dart: -------------------------------------------------------------------------------- 1 | import 'base_cart_item.dart'; 2 | import 'base_cart_item_controller.dart'; 3 | 4 | class BaseCart{ 5 | 6 | List items; 7 | 8 | BaseCart(this.items); 9 | 10 | BaseCart.fromJson( Map jsonObject ){ 11 | this.items = BaseCartItemController.toBaseCartItems(jsonObject['items']); 12 | } 13 | 14 | 15 | 16 | 17 | } -------------------------------------------------------------------------------- /lib/cart/base_cart_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/product/base_product.dart'; 2 | 3 | class BaseCartItem{ 4 | 5 | BaseProduct product; 6 | double quantity; 7 | 8 | BaseCartItem(this.product, this.quantity); 9 | 10 | BaseCartItem.fromJson( Map jsonObject ){ 11 | this.product = BaseProduct.fromJson(jsonObject['product']); 12 | this.quantity = jsonObject['quantity']; 13 | } 14 | 15 | double discount(){ 16 | 17 | } 18 | 19 | 20 | } -------------------------------------------------------------------------------- /lib/cart/base_cart_item_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_cart_item.dart'; 2 | 3 | class BaseCartItemController { 4 | 5 | BaseCartItem baseCartItem; 6 | 7 | BaseCartItemController(this.baseCartItem); 8 | 9 | static List toBaseCartItems( List> jsonObjects ){ 10 | 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/category/base_category.dart: -------------------------------------------------------------------------------- 1 | class BaseCategory{ 2 | 3 | String id; 4 | String title; 5 | 6 | BaseCategory(this.id, this.title); 7 | 8 | BaseCategory.fromJson( Map jsonObject ){ 9 | this.id = jsonObject['id']; 10 | this.title = jsonObject['title']; 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/category/category_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_category.dart'; 2 | 3 | class CategoryController { 4 | 5 | BaseCategory category; 6 | 7 | CategoryController(this.category); 8 | 9 | static List toCategories( List> jsonObjects ){ 10 | 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/discount/base_discount.dart: -------------------------------------------------------------------------------- 1 | class BaseDiscount { 2 | 3 | double minQuantity; 4 | double maxQuantity; 5 | double amount; 6 | DateTime endDate; 7 | 8 | BaseDiscount(this.minQuantity, this.maxQuantity, this.amount, this.endDate); 9 | 10 | 11 | BaseDiscount.fromJson( Map jsonObject ){ 12 | this.minQuantity = jsonObject['min_quantity']; 13 | this.maxQuantity = jsonObject['max_quantity']; 14 | this.endDate = DateTime.parse(jsonObject['end_date']); 15 | } 16 | 17 | 18 | } -------------------------------------------------------------------------------- /lib/discount/discount_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_discount.dart'; 2 | 3 | class DiscountController { 4 | BaseDiscount discount; 5 | 6 | DiscountController(this.discount); 7 | 8 | static List toDiscounts( List> jsonObjects ){ 9 | 10 | } 11 | 12 | 13 | } -------------------------------------------------------------------------------- /lib/image/base_image.dart: -------------------------------------------------------------------------------- 1 | class BaseImage{ 2 | 3 | String id; 4 | String altText; 5 | String url; 6 | 7 | BaseImage(this.id, this.altText, this.url); 8 | 9 | BaseImage.fromJson( Map jsonObject ){ 10 | this.id = jsonObject['id']; 11 | this.altText = jsonObject['alt_text']; 12 | this.url = jsonObject['url']; 13 | } 14 | 15 | 16 | } -------------------------------------------------------------------------------- /lib/image/image_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_image.dart'; 2 | 3 | class ImageController { 4 | 5 | BaseImage image; 6 | 7 | ImageController(this.image); 8 | 9 | static List toImages( List> jsonObjects ){ 10 | 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/material.dart' as prefix0; 3 | import 'admin/categories.dart'; 4 | import 'admin/add_category.dart'; 5 | import 'admin/add_product.dart'; 6 | import 'admin/products.dart'; 7 | 8 | 9 | void main() { 10 | runApp(FlutterShop()); 11 | } 12 | 13 | class FlutterShop extends StatelessWidget { 14 | @override 15 | Widget build(BuildContext context) { 16 | return MaterialApp( 17 | home: AuthTest(), 18 | theme: ThemeData( 19 | primaryColor: Colors.teal 20 | ), 21 | routes: { 22 | '/add_category' : ( context ) => AddCategoryScreen(), 23 | '/categories' : ( context ) => AllCategories(), 24 | '/add_product' : ( context ) => AddProduct(), 25 | '/products' : ( context ) => AllProducts(), 26 | }, 27 | ); 28 | } 29 | } 30 | 31 | class AuthTest extends StatefulWidget { 32 | @override 33 | _AuthTestState createState() => _AuthTestState(); 34 | } 35 | 36 | class _AuthTestState extends State { 37 | 38 | @override 39 | void initState() { 40 | super.initState(); 41 | } 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | return Scaffold( 46 | appBar: AppBar( 47 | title: Text('Flutter Shop'), 48 | ), 49 | drawer: Drawer( 50 | child: Column( 51 | mainAxisAlignment: MainAxisAlignment.center, 52 | crossAxisAlignment: CrossAxisAlignment.center, 53 | children: [ 54 | ListTile( 55 | title: Text('All Products'), 56 | onTap: (){ 57 | Navigator.of(context).pop(); 58 | Navigator.pushNamed(context, '/products'); 59 | }, 60 | ), 61 | ListTile( 62 | title: Text('Add Product'), 63 | onTap: (){ 64 | Navigator.of(context).pop(); 65 | Navigator.pushNamed(context, '/add_product'); 66 | }, 67 | ), 68 | ListTile( 69 | title: Text('All Categories'), 70 | onTap: (){ 71 | Navigator.of(context).pop(); 72 | Navigator.pushNamed(context, '/categories'); 73 | }, 74 | ), 75 | ListTile( 76 | title: Text('Add Category'), 77 | onTap: (){ 78 | Navigator.of(context).pop(); 79 | Navigator.pushNamed(context, '/add_category'); 80 | }, 81 | ), 82 | ], 83 | ), 84 | ), 85 | ); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /lib/order/base_order.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/cart/base_cart.dart'; 2 | import 'package:flutter_shop/payment/base_payment.dart'; 3 | import 'package:flutter_shop/user/customer.dart'; 4 | 5 | class BaseOrder{ 6 | 7 | BaseCart cart; 8 | Customer customer; 9 | BasePayment payment; 10 | 11 | BaseOrder(this.cart, this.customer, this.payment); 12 | 13 | BaseOrder.fromJson( Map jsonObject ){ 14 | this.customer = Customer.fromJson(jsonObject['customer']); 15 | this.cart = BaseCart.fromJson(jsonObject['cart']); 16 | this.payment = BasePayment.fromJson(jsonObject['payment']); 17 | } 18 | 19 | double total(){ 20 | 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /lib/order/order_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/order/base_order.dart'; 2 | 3 | class OrderController{ 4 | 5 | BaseOrder order; 6 | 7 | OrderController(this.order); 8 | 9 | static List toOrders( List> jsonObjects ){ 10 | 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/payment/base_payment.dart: -------------------------------------------------------------------------------- 1 | class BasePayment{ 2 | 3 | String paymentID; 4 | double amount; 5 | DateTime paymentDate; 6 | String paymentMethod; 7 | 8 | BasePayment(this.paymentID, this.amount, this.paymentDate, 9 | this.paymentMethod); 10 | 11 | BasePayment.fromJson( Map jsonbject ){ 12 | this.paymentID = jsonbject['payment_id']; 13 | this.amount = jsonbject['amount']; 14 | this.paymentDate = DateTime.parse(jsonbject['payment_date']); 15 | this.paymentMethod = jsonbject['payment_method']; 16 | } 17 | 18 | 19 | } -------------------------------------------------------------------------------- /lib/product/base_product.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/category/base_category.dart'; 2 | import 'package:flutter_shop/category/category_controller.dart'; 3 | import 'package:flutter_shop/discount/base_discount.dart'; 4 | import 'package:flutter_shop/discount/discount_controller.dart'; 5 | import 'package:flutter_shop/image/base_image.dart'; 6 | import 'package:flutter_shop/image/image_controller.dart'; 7 | import 'package:flutter_shop/product_option/base_option.dart'; 8 | import 'package:flutter_shop/tag/base_tag.dart'; 9 | import 'package:flutter_shop/tag/tag_controller.dart'; 10 | 11 | class BaseProduct { 12 | 13 | String id; 14 | String title; 15 | String description; 16 | double price; 17 | double quantity; 18 | List images; 19 | List options; 20 | List categories; 21 | List tags; 22 | List discounts; 23 | 24 | 25 | BaseProduct(this.id, this.title, this.description, this.price, this.quantity, 26 | this.images, this.options, this.categories, this.tags, this.discounts); 27 | 28 | BaseProduct.fromJson( Map jsonObject ){ 29 | this.id = jsonObject['id']; 30 | this.title = jsonObject['title']; 31 | this.description = jsonObject['description']; 32 | this.price = jsonObject['price']; 33 | this.quantity = jsonObject['quantity']; 34 | this.images = ImageController.toImages(jsonObject['images']); 35 | this.categories = CategoryController.toCategories(jsonObject['categories']); 36 | this.tags = TagController.toTags(jsonObject['tags']); 37 | this.discounts = DiscountController.toDiscounts(jsonObject['discounts']); 38 | } 39 | 40 | 41 | } -------------------------------------------------------------------------------- /lib/product/product_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_product.dart'; 2 | 3 | class ProductController { 4 | 5 | BaseProduct product; 6 | 7 | ProductController(this.product); 8 | 9 | static List toProducts( List> jsonObjects ){ 10 | 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/product_option/base_option.dart: -------------------------------------------------------------------------------- 1 | class BaseProductOption{ 2 | 3 | String name; 4 | String value; 5 | String meta; 6 | double price; 7 | 8 | BaseProductOption(this.name, this.value, this.meta, this.price); 9 | 10 | BaseProductOption.fromJson( Map jsonObject ){ 11 | this.name = jsonObject['name']; 12 | this.value = jsonObject['value']; 13 | this.meta = jsonObject['meta']; 14 | this.price = jsonObject['price']; 15 | } 16 | 17 | 18 | 19 | 20 | } -------------------------------------------------------------------------------- /lib/tag/base_tag.dart: -------------------------------------------------------------------------------- 1 | class BaseTag{ 2 | 3 | String id; 4 | String title; 5 | 6 | BaseTag(this.id, this.title); 7 | 8 | BaseTag.fromJson( Map jsonObject ){ 9 | this.id = jsonObject['id']; 10 | this.title = jsonObject['title']; 11 | } 12 | 13 | 14 | } -------------------------------------------------------------------------------- /lib/tag/tag_controller.dart: -------------------------------------------------------------------------------- 1 | import 'base_tag.dart'; 2 | 3 | class TagController { 4 | BaseTag tag; 5 | 6 | TagController(this.tag); 7 | 8 | static List toTags( List> jsonObjects ){ 9 | 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /lib/user/address.dart: -------------------------------------------------------------------------------- 1 | class Address { 2 | 3 | String streetName; 4 | String streetNumber; 5 | String city; 6 | String state; 7 | String country; 8 | String postCode; 9 | 10 | Address.fromJson( Map jsonObject ){ 11 | this.streetName = jsonObject['street_name']; 12 | this.streetNumber = jsonObject['street_number']; 13 | this.city = jsonObject['city']; 14 | this.state = jsonObject['state']; 15 | this.country = jsonObject['country']; 16 | this.postCode = jsonObject['post_code']; 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /lib/user/customer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_shop/order/order_controller.dart'; 2 | import 'package:flutter_shop/product/product_controller.dart'; 3 | 4 | import 'address.dart'; 5 | import 'user.dart'; 6 | import 'package:flutter_shop/product/base_product.dart'; 7 | import 'package:flutter_shop/order/base_order.dart'; 8 | 9 | class Customer extends User { 10 | Address shippingAddress; 11 | Address billingAddress; 12 | 13 | List watchList; 14 | List orders; 15 | 16 | Customer( 17 | String id, 18 | String firstName, 19 | String lastName, 20 | String email, 21 | String phone, 22 | String gender, 23 | Address shippingAddress, 24 | Address billingAddress, 25 | List watchList, 26 | List orders) 27 | : super(id, firstName, lastName, email, phone, gender) { 28 | this.shippingAddress = shippingAddress; 29 | this.billingAddress = billingAddress; 30 | this.orders = orders; 31 | this.watchList = watchList; 32 | } 33 | 34 | Customer.fromJson(Map jsonObject) 35 | : super( 36 | jsonObject['id'], 37 | jsonObject['first_name'], 38 | jsonObject['last_name'], 39 | jsonObject['email'], 40 | jsonObject['phone'], 41 | jsonObject['gender'] ) { 42 | this.shippingAddress = Address.fromJson(jsonObject['shipping_address']); 43 | this.billingAddress = Address.fromJson(jsonObject['billing_address']); 44 | this.watchList = ProductController.toProducts(jsonObject['watch_list']); 45 | this.orders = OrderController.toOrders(jsonObject['orders']); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/user/customer_controller.dart: -------------------------------------------------------------------------------- 1 | import 'customer.dart'; 2 | import 'package:flutter_shop/order/base_order.dart'; 3 | import 'package:flutter_shop/product/base_product.dart'; 4 | 5 | class CustomerController { 6 | 7 | Customer customer; 8 | 9 | CustomerController(this.customer); 10 | 11 | void addToOrders( BaseOrder order ){ 12 | this.customer.orders.add(order); 13 | } 14 | 15 | void addToWatchList( BaseProduct product ){ 16 | this.customer.watchList.add(product); 17 | } 18 | 19 | bool orderInOrders( BaseOrder order ){ 20 | return this.customer.orders.contains(order); 21 | } 22 | 23 | bool productInWatchList( BaseProduct product ){ 24 | return this.customer.watchList.contains(product); 25 | } 26 | 27 | bool removeProductFromWatchList( BaseProduct product ){ 28 | return this.customer.watchList.remove(product); 29 | } 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /lib/user/shop_owner.dart: -------------------------------------------------------------------------------- 1 | import 'user.dart'; 2 | 3 | class ShopOwner extends User { 4 | 5 | ShopOwner(String id, String firstName, String lastName, String email, 6 | String phone, String gender) 7 | : super(id, firstName, lastName, email, phone, gender); 8 | 9 | 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/user/user.dart: -------------------------------------------------------------------------------- 1 | abstract class User { 2 | 3 | String id; 4 | String firstName; 5 | String lastName; 6 | String email; 7 | String phone; 8 | String gender; 9 | 10 | User(this.id, this.firstName, this.lastName, this.email, this.phone, 11 | this.gender); 12 | 13 | 14 | } -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.2.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.2" 25 | cloud_firestore: 26 | dependency: "direct main" 27 | description: 28 | name: cloud_firestore 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "0.12.9" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.14.11" 39 | cupertino_icons: 40 | dependency: "direct main" 41 | description: 42 | name: cupertino_icons 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.1.2" 46 | firebase_auth: 47 | dependency: "direct main" 48 | description: 49 | name: firebase_auth 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.14.0+2" 53 | firebase_core: 54 | dependency: transitive 55 | description: 56 | name: firebase_core 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.4.0+8" 60 | firebase_storage: 61 | dependency: "direct main" 62 | description: 63 | name: firebase_storage 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "3.0.6" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_test: 73 | dependency: "direct dev" 74 | description: flutter 75 | source: sdk 76 | version: "0.0.0" 77 | image_picker: 78 | dependency: "direct main" 79 | description: 80 | name: image_picker 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.6.1+4" 84 | matcher: 85 | dependency: transitive 86 | description: 87 | name: matcher 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.12.5" 91 | meta: 92 | dependency: transitive 93 | description: 94 | name: meta 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.1.6" 98 | path: 99 | dependency: transitive 100 | description: 101 | name: path 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.6.2" 105 | pedantic: 106 | dependency: transitive 107 | description: 108 | name: pedantic 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.7.0" 112 | quiver: 113 | dependency: transitive 114 | description: 115 | name: quiver 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.0.3" 119 | sky_engine: 120 | dependency: transitive 121 | description: flutter 122 | source: sdk 123 | version: "0.0.99" 124 | source_span: 125 | dependency: transitive 126 | description: 127 | name: source_span 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.5.5" 131 | stack_trace: 132 | dependency: transitive 133 | description: 134 | name: stack_trace 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.9.3" 138 | stream_channel: 139 | dependency: transitive 140 | description: 141 | name: stream_channel 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "2.0.0" 145 | string_scanner: 146 | dependency: transitive 147 | description: 148 | name: string_scanner 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.0.4" 152 | term_glyph: 153 | dependency: transitive 154 | description: 155 | name: term_glyph 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.1.0" 159 | test_api: 160 | dependency: transitive 161 | description: 162 | name: test_api 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.2.5" 166 | typed_data: 167 | dependency: transitive 168 | description: 169 | name: typed_data 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.1.6" 173 | vector_math: 174 | dependency: transitive 175 | description: 176 | name: vector_math 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.0.8" 180 | sdks: 181 | dart: ">=2.2.2 <3.0.0" 182 | flutter: ">=1.5.0 <2.0.0" 183 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_shop 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | firebase_auth: ^0.14.0+2 27 | cloud_firestore: ^0.12.9 28 | firebase_storage: ^3.0.6 29 | image_picker: ^0.6.1+4 30 | 31 | dev_dependencies: 32 | flutter_test: 33 | sdk: flutter 34 | 35 | 36 | # For information on the generic Dart part of this file, see the 37 | # following page: https://dart.dev/tools/pub/pubspec 38 | 39 | # The following section is specific to Flutter. 40 | flutter: 41 | 42 | # The following line ensures that the Material Icons font is 43 | # included with your application, so that you can use the icons in 44 | # the material Icons class. 45 | uses-material-design: true 46 | 47 | # To add assets to your application, add an assets section, like this: 48 | # assets: 49 | # - images/a_dot_burr.jpeg 50 | # - images/a_dot_ham.jpeg 51 | 52 | # An image asset can refer to one or more resolution-specific "variants", see 53 | # https://flutter.dev/assets-and-images/#resolution-aware. 54 | 55 | # For details regarding adding assets from package dependencies, see 56 | # https://flutter.dev/assets-and-images/#from-packages 57 | 58 | # To add custom fonts to your application, add a fonts section here, 59 | # in this "flutter" section. Each entry in this list should have a 60 | # "family" key with the font family name, and a "fonts" key with a 61 | # list giving the asset and other descriptors for the font. For 62 | # example: 63 | # fonts: 64 | # - family: Schyler 65 | # fonts: 66 | # - asset: fonts/Schyler-Regular.ttf 67 | # - asset: fonts/Schyler-Italic.ttf 68 | # style: italic 69 | # - family: Trajan Pro 70 | # fonts: 71 | # - asset: fonts/TrajanPro.ttf 72 | # - asset: fonts/TrajanPro_Bold.ttf 73 | # weight: 700 74 | # 75 | # For details regarding fonts from package dependencies, 76 | # see https://flutter.dev/custom-fonts/#from-packages 77 | -------------------------------------------------------------------------------- /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_shop/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(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 | --------------------------------------------------------------------------------