├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── ecommerce_with_flutter_firebase_and_stripe │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── 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-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── 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 │ ├── Info.plist │ └── Runner-Bridging-Header.h └── RunnerTests │ └── RunnerTests.swift ├── lib ├── firebase_options.dart ├── main.dart ├── models │ ├── cart.dart │ ├── cart_item.dart │ ├── category.dart │ └── product.dart ├── repositories │ ├── cart_repository.dart │ ├── category_repository.dart │ └── product_repository.dart ├── screens │ ├── cart_screen.dart │ ├── catalog_screen.dart │ ├── category_screen.dart │ └── checkout_screen.dart └── widgets │ └── cart_item_card.dart ├── packages ├── db_client │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── lib │ │ ├── db_client.dart │ │ └── src │ │ │ ├── db_client.dart │ │ │ └── db_record.dart │ └── pubspec.yaml └── payment_client │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── lib │ ├── payment_client.dart │ └── src │ │ └── payment_client.dart │ └── pubspec.yaml ├── pubspec.lock ├── pubspec.yaml └── screenshots ├── ecommerce-cart.png ├── ecommerce-catalog-screen-empty.png ├── ecommerce-catalog-screen.png ├── ecommerce-categories.png ├── ecommerce-checkout.png ├── ecommerce-home.png ├── ecommerce-login.png ├── ecommerce-product-screen.png ├── ecommerce-register.png ├── ecommerce-user-account-address.png ├── ecommerce-user-account-details.png ├── ecommerce-user-account.png └── ecommerce.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /.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: "d211f42860350d914a5ad8102f9ec32764dc6d06" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 17 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 18 | - platform: android 19 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 20 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 21 | - platform: ios 22 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 23 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 24 | - platform: linux 25 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 26 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 27 | - platform: macos 28 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 29 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 30 | - platform: web 31 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 32 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 33 | - platform: windows 34 | create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 35 | base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # eCommerce App with Flutter, Firebase and Stripe 2 | The tutorial aims to display you how to build a simple eCommerce App that you can customize for your projects. It is designed using Flutter and Firebase as a backend. In addition, it allows you to easily process payments using Stripe. 3 | The code in the repository is the starter code for the eCommerce App with Flutter, Firebase and Stripe. It will help you to follow along the video: 4 | - YouTube video: https://youtu.be/xYgIY_1ulhw 5 | 6 | ![Intro](screenshots/ecommerce.png) 7 | 8 | 9 | ## Screenshots 10 | These screenshots represent the final eCommerce App template that is available for purchase at: coming soon 11 | 12 | ## App Screenshots: 13 | |![Home](screenshots/ecommerce-home.png) | ![Categories](screenshots/ecommerce-categories.png) | ![Catalog](screenshots/ecommerce-catalog-screen.png) | 14 | |:---:|:---:|:---:| 15 | | Home Screen | Categories Screen | Catalog Screen | 16 | | ![Cart](screenshots/ecommerce-cart.png) | ![Checkout](screenshots/ecommerce-checkout.png) | ![Product](screenshots/ecommerce-product-screen.png) | 17 | | Cart Screen | Checkout Screen | Product Screen| 18 | | ![User Account](screenshots/ecommerce-user-account.png) | ![Register](screenshots/ecommerce-register.png) | ![Login](screenshots/ecommerce-login.png) | 19 | | User Account Screen | Register Screen | Login Screen| 20 | 21 | 22 | ## Getting Started 23 | The template gives you a starting point for your e-commerce app project. However, before running the app, there are a few steps you need to take to ensure the app runs smoothly. 24 | 25 | ### Step 1: Firebase Set-Up 26 | The template uses Firebase for Authentication, database and as well to run serverless backend logic with Cloud Functions. 27 | 1. Create a Firebase Project: Head to the Firebase Console and create a new project https://console.firebase.google.com/ 28 | 2. Initialize Firebase Auth and enable the 'Email and Password' provider. 29 | 3. Initialize a new database with Cloud Firestore 30 | 4. Initialize Firebase in your app: https://firebase.google.com/docs/flutter/setup?platform=ios 31 | 32 | ### Step 2: Stripe Set-Up 33 | The templates uses Stripe to handle all the payment processing needs. To integrate Stripe: 34 | 1. Create an account at stripe.com 35 | 2. Get the Stripe Publishable Key and the Secret Key: https://dashboard.stripe.com/test/apikeys (for test) 36 | 3. Add your Stripe Publishable Key as an environment variable in the .env file 37 | - Go in the .example.env, rename it to .env 38 | - Add the value of your Publishable Key. 39 | - Use the envied library to generate the file 'lib/env.g.dart': 40 | 41 | ```shell 42 | dart run build_runner build 43 | ``` 44 | 45 | 4. Go to your Google Cloud Project (it gets created by default as you create a new Firebase project), and register the Stripe secret key with Secret Manager 46 | - Go to API & Services, click on "Enable APIs and Services" and enable the Secret Manager API 47 | - Open Secret Manager in your Google Cloud Project 48 | - Create a new Secret with name equal to 'STRIPE_SECRET_KEY' and the Secret Key from Stripe as value 49 | 50 | 5. Set up the flutter_stripe library in your project. 51 | - There are platform specific changes to implement: https://pub.dev/packages/flutter_stripe#installation 52 | - Watch the video tutorial: https://youtu.be/xYgIY_1ulhw 53 | 54 | ### Step 3: Cloud Functions Set-Up 55 | The template uses Cloud Functions on Firebase (with Python) to run the backend logic for the payments. 56 | 57 | 1. Using the Firebase CLI, run: 58 | ```shell 59 | firebase init functions 60 | ``` 61 | 2. Select your Firebase project 62 | 3. Select Python as a language for the functions 63 | 4. Use the script below for your main.py 64 | 65 | ```python 66 | import stripe 67 | 68 | from firebase_functions import https_fn 69 | from firebase_admin import initialize_app 70 | 71 | # TODO: Use Secret Manager to safely store and access the Stripe Secret Key 72 | STRIPE_SECRET_KEY = '...' 73 | app = initialize_app() 74 | 75 | 76 | @https_fn.on_request() 77 | def stripe_pay_endpoint_method_id(req: https_fn.Request) -> https_fn.Response: 78 | print(req.method, req.get_json()) 79 | 80 | if req.method != "POST": 81 | return https_fn.Response(status=403, response="Forbidden") 82 | 83 | data = req.get_json() 84 | payment_method_id = data.get('paymentMethodId') 85 | items = data.get('items') 86 | currency = data.get('currency') 87 | use_stripe_sdk = data.get('useStripeSdk') 88 | 89 | # TODO: Calculate the total price 90 | # You should always calculate the order total on the server to prevent 91 | # people from directly manipulating the amount on the client 92 | total = 1400 93 | 94 | try: 95 | if payment_method_id: 96 | print(payment_method_id) 97 | params = { 98 | 'payment_method': payment_method_id, 99 | 'amount': total, 100 | 'currency': currency, 101 | 'confirm': True, 102 | 'use_stripe_sdk': use_stripe_sdk, 103 | 'automatic_payment_methods': { 104 | 'enabled': True, 105 | 'allow_redirects': 'never', 106 | }, 107 | } 108 | intent = stripe.PaymentIntent.create(api_key=STRIPE_SECRET_KEY, **params) 109 | # return https_fn.Response(status=200, response=intent) 110 | return _generate_response(intent) 111 | else: 112 | return https_fn.Response(status=400, response="Bad request") 113 | 114 | except Exception as e: 115 | return https_fn.Response(status=500, response=str(e)) 116 | 117 | 118 | 119 | # @https_fn.on_request() 120 | # def stripe_pay_endpoint_intent_id(req: https_fn.Request) -> https_fn.Response: 121 | # return ... 122 | 123 | 124 | def _generate_response(intent): 125 | if intent.status == "requires_action": 126 | return { 127 | "clientSecret": intent.client_secret, 128 | "requiresAction": True, 129 | "status": intent.status, 130 | } 131 | elif intent.status == "requires_payment_method": 132 | return {"error": "Your card was denied, please provide a new payment method"} 133 | elif intent.status == "succeeded": 134 | print("💰 Payment received!") 135 | return {"clientSecret": intent.client_secret, "status": intent.status} 136 | else: 137 | return {"error": "Failed"} 138 | ``` 139 | 140 | 5. Add Stripe as a dependency to your project 141 | ```shell 142 | cd functions 143 | 144 | # Start the virtual environment for the functions 145 | source venv/bin/activate 146 | 147 | # Add the dependency 148 | pip install stripe 149 | 150 | # Update the list of dependencies in the requirements.txt 151 | pip freeze > requirements.txt 152 | 153 | # Close the virtual environment 154 | deactivate 155 | 156 | ``` 157 | 158 | 6. Deploy the functions to Firebase 159 | ```shell 160 | firebase deploy --only functions 161 | ``` 162 | 163 | 164 | 7. Get the function endpoint URL from Firebase. Use your Cloud Function's URLs in the payment client `packages/payment_client/lib/src/payment_client.dart` 165 | 166 | ```dart 167 | // TODO: Add your Cloud Functions URLs here 168 | const ENDPOINT_METHOD_ID_URL = 169 | "..."; 170 | 171 | const ENDPOINT_INTENT_ID_URL = 172 | "..."; 173 | ``` 174 | 175 | ### Step 4: Set up the Cloud Firestore Data Bundles 176 | The eCommerce loads the categories' data using a Data Bundle. The Cloud Firestore data are exported into a static data file using the Firestore Bundle Builder extension. 177 | 178 | 1. Install the extension into your Firebase project: https://firebase.google.com/docs/extensions/official/firestore-bundle-builder 179 | 2. Watch the video tutorial: https://youtu.be/xYgIY_1ulhw 180 | 3. Get the function endpoint URL from Firebase. Use the Cloud Function's URLs to retrieve the static file in the categories repository `lib/repositories/category_repository.dart` 181 | 182 | ```dart 183 | 184 | Future> fetchCategories() async { 185 | try { 186 | final categoriesData = await dbClient.fetchAllFromBundle( 187 | collection: 'categories', 188 | // TODO: Add your bundle URL here 189 | bundleUrl: '...', 190 | ); 191 | return categoriesData 192 | .map((categoryData) => 193 | Category.fromJson(categoryData.data, id: categoryData.id)) 194 | .toList(); 195 | } catch (err) { 196 | throw Exception('Failed to fetch the categories: $err'); 197 | } 198 | } 199 | ``` 200 | 201 | 202 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.ecommerce_with_flutter_firebase_and_stripe" 27 | compileSdkVersion 34 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_17 32 | targetCompatibility JavaVersion.VERSION_17 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "com.example.ecommerce_with_flutter_firebase_and_stripe" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion 21 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/ecommerce_with_flutter_firebase_and_stripe/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.ecommerce_with_flutter_firebase_and_stripe 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | import io.flutter.embedding.android.FlutterFragmentActivity 5 | 6 | class MainActivity: FlutterFragmentActivity() { 7 | } 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.8.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.3.0' 10 | // START: FlutterFire Configuration 11 | classpath 'com.google.gms:google-services:4.3.10' 12 | // END: FlutterFire Configuration 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | } 22 | } 23 | 24 | rootProject.buildDir = '../build' 25 | subprojects { 26 | project.buildDir = "${rootProject.buildDir}/${project.name}" 27 | } 28 | subprojects { 29 | project.evaluationDependsOn(':app') 30 | } 31 | 32 | tasks.register("clean", Delete) { 33 | delete rootProject.buildDir 34 | } 35 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | plugins { 14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false 15 | } 16 | } 17 | 18 | include ":app" 19 | 20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" 21 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /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, '13.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | target 'RunnerTests' do 36 | inherit! :search_paths 37 | end 38 | end 39 | 40 | post_install do |installer| 41 | installer.pods_project.targets.each do |target| 42 | flutter_additional_ios_build_settings(target) 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - abseil/algorithm (1.20220623.0): 3 | - abseil/algorithm/algorithm (= 1.20220623.0) 4 | - abseil/algorithm/container (= 1.20220623.0) 5 | - abseil/algorithm/algorithm (1.20220623.0): 6 | - abseil/base/config 7 | - abseil/algorithm/container (1.20220623.0): 8 | - abseil/algorithm/algorithm 9 | - abseil/base/core_headers 10 | - abseil/meta/type_traits 11 | - abseil/base (1.20220623.0): 12 | - abseil/base/atomic_hook (= 1.20220623.0) 13 | - abseil/base/base (= 1.20220623.0) 14 | - abseil/base/base_internal (= 1.20220623.0) 15 | - abseil/base/config (= 1.20220623.0) 16 | - abseil/base/core_headers (= 1.20220623.0) 17 | - abseil/base/dynamic_annotations (= 1.20220623.0) 18 | - abseil/base/endian (= 1.20220623.0) 19 | - abseil/base/errno_saver (= 1.20220623.0) 20 | - abseil/base/fast_type_id (= 1.20220623.0) 21 | - abseil/base/log_severity (= 1.20220623.0) 22 | - abseil/base/malloc_internal (= 1.20220623.0) 23 | - abseil/base/prefetch (= 1.20220623.0) 24 | - abseil/base/pretty_function (= 1.20220623.0) 25 | - abseil/base/raw_logging_internal (= 1.20220623.0) 26 | - abseil/base/spinlock_wait (= 1.20220623.0) 27 | - abseil/base/strerror (= 1.20220623.0) 28 | - abseil/base/throw_delegate (= 1.20220623.0) 29 | - abseil/base/atomic_hook (1.20220623.0): 30 | - abseil/base/config 31 | - abseil/base/core_headers 32 | - abseil/base/base (1.20220623.0): 33 | - abseil/base/atomic_hook 34 | - abseil/base/base_internal 35 | - abseil/base/config 36 | - abseil/base/core_headers 37 | - abseil/base/dynamic_annotations 38 | - abseil/base/log_severity 39 | - abseil/base/raw_logging_internal 40 | - abseil/base/spinlock_wait 41 | - abseil/meta/type_traits 42 | - abseil/base/base_internal (1.20220623.0): 43 | - abseil/base/config 44 | - abseil/meta/type_traits 45 | - abseil/base/config (1.20220623.0) 46 | - abseil/base/core_headers (1.20220623.0): 47 | - abseil/base/config 48 | - abseil/base/dynamic_annotations (1.20220623.0): 49 | - abseil/base/config 50 | - abseil/base/core_headers 51 | - abseil/base/endian (1.20220623.0): 52 | - abseil/base/base 53 | - abseil/base/config 54 | - abseil/base/core_headers 55 | - abseil/base/errno_saver (1.20220623.0): 56 | - abseil/base/config 57 | - abseil/base/fast_type_id (1.20220623.0): 58 | - abseil/base/config 59 | - abseil/base/log_severity (1.20220623.0): 60 | - abseil/base/config 61 | - abseil/base/core_headers 62 | - abseil/base/malloc_internal (1.20220623.0): 63 | - abseil/base/base 64 | - abseil/base/base_internal 65 | - abseil/base/config 66 | - abseil/base/core_headers 67 | - abseil/base/dynamic_annotations 68 | - abseil/base/raw_logging_internal 69 | - abseil/base/prefetch (1.20220623.0): 70 | - abseil/base/config 71 | - abseil/base/pretty_function (1.20220623.0) 72 | - abseil/base/raw_logging_internal (1.20220623.0): 73 | - abseil/base/atomic_hook 74 | - abseil/base/config 75 | - abseil/base/core_headers 76 | - abseil/base/errno_saver 77 | - abseil/base/log_severity 78 | - abseil/base/spinlock_wait (1.20220623.0): 79 | - abseil/base/base_internal 80 | - abseil/base/core_headers 81 | - abseil/base/errno_saver 82 | - abseil/base/strerror (1.20220623.0): 83 | - abseil/base/config 84 | - abseil/base/core_headers 85 | - abseil/base/errno_saver 86 | - abseil/base/throw_delegate (1.20220623.0): 87 | - abseil/base/config 88 | - abseil/base/raw_logging_internal 89 | - abseil/cleanup/cleanup (1.20220623.0): 90 | - abseil/base/config 91 | - abseil/base/core_headers 92 | - abseil/cleanup/cleanup_internal 93 | - abseil/cleanup/cleanup_internal (1.20220623.0): 94 | - abseil/base/base_internal 95 | - abseil/base/core_headers 96 | - abseil/utility/utility 97 | - abseil/container/common (1.20220623.0): 98 | - abseil/meta/type_traits 99 | - abseil/types/optional 100 | - abseil/container/compressed_tuple (1.20220623.0): 101 | - abseil/utility/utility 102 | - abseil/container/container_memory (1.20220623.0): 103 | - abseil/base/config 104 | - abseil/memory/memory 105 | - abseil/meta/type_traits 106 | - abseil/utility/utility 107 | - abseil/container/fixed_array (1.20220623.0): 108 | - abseil/algorithm/algorithm 109 | - abseil/base/config 110 | - abseil/base/core_headers 111 | - abseil/base/dynamic_annotations 112 | - abseil/base/throw_delegate 113 | - abseil/container/compressed_tuple 114 | - abseil/memory/memory 115 | - abseil/container/flat_hash_map (1.20220623.0): 116 | - abseil/algorithm/container 117 | - abseil/base/core_headers 118 | - abseil/container/container_memory 119 | - abseil/container/hash_function_defaults 120 | - abseil/container/raw_hash_map 121 | - abseil/memory/memory 122 | - abseil/container/flat_hash_set (1.20220623.0): 123 | - abseil/algorithm/container 124 | - abseil/base/core_headers 125 | - abseil/container/container_memory 126 | - abseil/container/hash_function_defaults 127 | - abseil/container/raw_hash_set 128 | - abseil/memory/memory 129 | - abseil/container/hash_function_defaults (1.20220623.0): 130 | - abseil/base/config 131 | - abseil/hash/hash 132 | - abseil/strings/cord 133 | - abseil/strings/strings 134 | - abseil/container/hash_policy_traits (1.20220623.0): 135 | - abseil/meta/type_traits 136 | - abseil/container/hashtable_debug_hooks (1.20220623.0): 137 | - abseil/base/config 138 | - abseil/container/hashtablez_sampler (1.20220623.0): 139 | - abseil/base/base 140 | - abseil/base/config 141 | - abseil/base/core_headers 142 | - abseil/debugging/stacktrace 143 | - abseil/memory/memory 144 | - abseil/profiling/exponential_biased 145 | - abseil/profiling/sample_recorder 146 | - abseil/synchronization/synchronization 147 | - abseil/utility/utility 148 | - abseil/container/inlined_vector (1.20220623.0): 149 | - abseil/algorithm/algorithm 150 | - abseil/base/core_headers 151 | - abseil/base/throw_delegate 152 | - abseil/container/inlined_vector_internal 153 | - abseil/memory/memory 154 | - abseil/container/inlined_vector_internal (1.20220623.0): 155 | - abseil/base/core_headers 156 | - abseil/container/compressed_tuple 157 | - abseil/memory/memory 158 | - abseil/meta/type_traits 159 | - abseil/types/span 160 | - abseil/container/layout (1.20220623.0): 161 | - abseil/base/config 162 | - abseil/base/core_headers 163 | - abseil/meta/type_traits 164 | - abseil/strings/strings 165 | - abseil/types/span 166 | - abseil/utility/utility 167 | - abseil/container/raw_hash_map (1.20220623.0): 168 | - abseil/base/throw_delegate 169 | - abseil/container/container_memory 170 | - abseil/container/raw_hash_set 171 | - abseil/container/raw_hash_set (1.20220623.0): 172 | - abseil/base/config 173 | - abseil/base/core_headers 174 | - abseil/base/endian 175 | - abseil/base/prefetch 176 | - abseil/container/common 177 | - abseil/container/compressed_tuple 178 | - abseil/container/container_memory 179 | - abseil/container/hash_policy_traits 180 | - abseil/container/hashtable_debug_hooks 181 | - abseil/container/hashtablez_sampler 182 | - abseil/memory/memory 183 | - abseil/meta/type_traits 184 | - abseil/numeric/bits 185 | - abseil/utility/utility 186 | - abseil/debugging/debugging_internal (1.20220623.0): 187 | - abseil/base/config 188 | - abseil/base/core_headers 189 | - abseil/base/dynamic_annotations 190 | - abseil/base/errno_saver 191 | - abseil/base/raw_logging_internal 192 | - abseil/debugging/demangle_internal (1.20220623.0): 193 | - abseil/base/base 194 | - abseil/base/config 195 | - abseil/base/core_headers 196 | - abseil/debugging/stacktrace (1.20220623.0): 197 | - abseil/base/config 198 | - abseil/base/core_headers 199 | - abseil/debugging/debugging_internal 200 | - abseil/debugging/symbolize (1.20220623.0): 201 | - abseil/base/base 202 | - abseil/base/config 203 | - abseil/base/core_headers 204 | - abseil/base/dynamic_annotations 205 | - abseil/base/malloc_internal 206 | - abseil/base/raw_logging_internal 207 | - abseil/debugging/debugging_internal 208 | - abseil/debugging/demangle_internal 209 | - abseil/strings/strings 210 | - abseil/functional/any_invocable (1.20220623.0): 211 | - abseil/base/base_internal 212 | - abseil/base/config 213 | - abseil/base/core_headers 214 | - abseil/meta/type_traits 215 | - abseil/utility/utility 216 | - abseil/functional/bind_front (1.20220623.0): 217 | - abseil/base/base_internal 218 | - abseil/container/compressed_tuple 219 | - abseil/meta/type_traits 220 | - abseil/utility/utility 221 | - abseil/functional/function_ref (1.20220623.0): 222 | - abseil/base/base_internal 223 | - abseil/base/core_headers 224 | - abseil/meta/type_traits 225 | - abseil/hash/city (1.20220623.0): 226 | - abseil/base/config 227 | - abseil/base/core_headers 228 | - abseil/base/endian 229 | - abseil/hash/hash (1.20220623.0): 230 | - abseil/base/config 231 | - abseil/base/core_headers 232 | - abseil/base/endian 233 | - abseil/container/fixed_array 234 | - abseil/functional/function_ref 235 | - abseil/hash/city 236 | - abseil/hash/low_level_hash 237 | - abseil/meta/type_traits 238 | - abseil/numeric/int128 239 | - abseil/strings/strings 240 | - abseil/types/optional 241 | - abseil/types/variant 242 | - abseil/utility/utility 243 | - abseil/hash/low_level_hash (1.20220623.0): 244 | - abseil/base/config 245 | - abseil/base/endian 246 | - abseil/numeric/bits 247 | - abseil/numeric/int128 248 | - abseil/memory (1.20220623.0): 249 | - abseil/memory/memory (= 1.20220623.0) 250 | - abseil/memory/memory (1.20220623.0): 251 | - abseil/base/core_headers 252 | - abseil/meta/type_traits 253 | - abseil/meta (1.20220623.0): 254 | - abseil/meta/type_traits (= 1.20220623.0) 255 | - abseil/meta/type_traits (1.20220623.0): 256 | - abseil/base/config 257 | - abseil/numeric/bits (1.20220623.0): 258 | - abseil/base/config 259 | - abseil/base/core_headers 260 | - abseil/numeric/int128 (1.20220623.0): 261 | - abseil/base/config 262 | - abseil/base/core_headers 263 | - abseil/numeric/bits 264 | - abseil/numeric/representation (1.20220623.0): 265 | - abseil/base/config 266 | - abseil/profiling/exponential_biased (1.20220623.0): 267 | - abseil/base/config 268 | - abseil/base/core_headers 269 | - abseil/profiling/sample_recorder (1.20220623.0): 270 | - abseil/base/config 271 | - abseil/base/core_headers 272 | - abseil/synchronization/synchronization 273 | - abseil/time/time 274 | - abseil/random/distributions (1.20220623.0): 275 | - abseil/base/base_internal 276 | - abseil/base/config 277 | - abseil/base/core_headers 278 | - abseil/meta/type_traits 279 | - abseil/numeric/bits 280 | - abseil/random/internal/distribution_caller 281 | - abseil/random/internal/fast_uniform_bits 282 | - abseil/random/internal/fastmath 283 | - abseil/random/internal/generate_real 284 | - abseil/random/internal/iostream_state_saver 285 | - abseil/random/internal/traits 286 | - abseil/random/internal/uniform_helper 287 | - abseil/random/internal/wide_multiply 288 | - abseil/strings/strings 289 | - abseil/random/internal/distribution_caller (1.20220623.0): 290 | - abseil/base/config 291 | - abseil/base/fast_type_id 292 | - abseil/utility/utility 293 | - abseil/random/internal/fast_uniform_bits (1.20220623.0): 294 | - abseil/base/config 295 | - abseil/meta/type_traits 296 | - abseil/random/internal/traits 297 | - abseil/random/internal/fastmath (1.20220623.0): 298 | - abseil/numeric/bits 299 | - abseil/random/internal/generate_real (1.20220623.0): 300 | - abseil/meta/type_traits 301 | - abseil/numeric/bits 302 | - abseil/random/internal/fastmath 303 | - abseil/random/internal/traits 304 | - abseil/random/internal/iostream_state_saver (1.20220623.0): 305 | - abseil/meta/type_traits 306 | - abseil/numeric/int128 307 | - abseil/random/internal/nonsecure_base (1.20220623.0): 308 | - abseil/base/core_headers 309 | - abseil/container/inlined_vector 310 | - abseil/meta/type_traits 311 | - abseil/random/internal/pool_urbg 312 | - abseil/random/internal/salted_seed_seq 313 | - abseil/random/internal/seed_material 314 | - abseil/types/span 315 | - abseil/random/internal/pcg_engine (1.20220623.0): 316 | - abseil/base/config 317 | - abseil/meta/type_traits 318 | - abseil/numeric/bits 319 | - abseil/numeric/int128 320 | - abseil/random/internal/fastmath 321 | - abseil/random/internal/iostream_state_saver 322 | - abseil/random/internal/platform (1.20220623.0): 323 | - abseil/base/config 324 | - abseil/random/internal/pool_urbg (1.20220623.0): 325 | - abseil/base/base 326 | - abseil/base/config 327 | - abseil/base/core_headers 328 | - abseil/base/endian 329 | - abseil/base/raw_logging_internal 330 | - abseil/random/internal/randen 331 | - abseil/random/internal/seed_material 332 | - abseil/random/internal/traits 333 | - abseil/random/seed_gen_exception 334 | - abseil/types/span 335 | - abseil/random/internal/randen (1.20220623.0): 336 | - abseil/base/raw_logging_internal 337 | - abseil/random/internal/platform 338 | - abseil/random/internal/randen_hwaes 339 | - abseil/random/internal/randen_slow 340 | - abseil/random/internal/randen_engine (1.20220623.0): 341 | - abseil/base/endian 342 | - abseil/meta/type_traits 343 | - abseil/random/internal/iostream_state_saver 344 | - abseil/random/internal/randen 345 | - abseil/random/internal/randen_hwaes (1.20220623.0): 346 | - abseil/base/config 347 | - abseil/random/internal/platform 348 | - abseil/random/internal/randen_hwaes_impl 349 | - abseil/random/internal/randen_hwaes_impl (1.20220623.0): 350 | - abseil/base/config 351 | - abseil/base/core_headers 352 | - abseil/numeric/int128 353 | - abseil/random/internal/platform 354 | - abseil/random/internal/randen_slow (1.20220623.0): 355 | - abseil/base/config 356 | - abseil/base/core_headers 357 | - abseil/base/endian 358 | - abseil/numeric/int128 359 | - abseil/random/internal/platform 360 | - abseil/random/internal/salted_seed_seq (1.20220623.0): 361 | - abseil/container/inlined_vector 362 | - abseil/meta/type_traits 363 | - abseil/random/internal/seed_material 364 | - abseil/types/optional 365 | - abseil/types/span 366 | - abseil/random/internal/seed_material (1.20220623.0): 367 | - abseil/base/core_headers 368 | - abseil/base/dynamic_annotations 369 | - abseil/base/raw_logging_internal 370 | - abseil/random/internal/fast_uniform_bits 371 | - abseil/strings/strings 372 | - abseil/types/optional 373 | - abseil/types/span 374 | - abseil/random/internal/traits (1.20220623.0): 375 | - abseil/base/config 376 | - abseil/numeric/bits 377 | - abseil/numeric/int128 378 | - abseil/random/internal/uniform_helper (1.20220623.0): 379 | - abseil/base/config 380 | - abseil/meta/type_traits 381 | - abseil/numeric/int128 382 | - abseil/random/internal/traits 383 | - abseil/random/internal/wide_multiply (1.20220623.0): 384 | - abseil/base/config 385 | - abseil/numeric/bits 386 | - abseil/numeric/int128 387 | - abseil/random/internal/traits 388 | - abseil/random/random (1.20220623.0): 389 | - abseil/random/distributions 390 | - abseil/random/internal/nonsecure_base 391 | - abseil/random/internal/pcg_engine 392 | - abseil/random/internal/pool_urbg 393 | - abseil/random/internal/randen_engine 394 | - abseil/random/seed_sequences 395 | - abseil/random/seed_gen_exception (1.20220623.0): 396 | - abseil/base/config 397 | - abseil/random/seed_sequences (1.20220623.0): 398 | - abseil/base/config 399 | - abseil/random/internal/pool_urbg 400 | - abseil/random/internal/salted_seed_seq 401 | - abseil/random/internal/seed_material 402 | - abseil/random/seed_gen_exception 403 | - abseil/types/span 404 | - abseil/status/status (1.20220623.0): 405 | - abseil/base/atomic_hook 406 | - abseil/base/core_headers 407 | - abseil/base/raw_logging_internal 408 | - abseil/base/strerror 409 | - abseil/container/inlined_vector 410 | - abseil/debugging/stacktrace 411 | - abseil/debugging/symbolize 412 | - abseil/functional/function_ref 413 | - abseil/strings/cord 414 | - abseil/strings/str_format 415 | - abseil/strings/strings 416 | - abseil/types/optional 417 | - abseil/status/statusor (1.20220623.0): 418 | - abseil/base/base 419 | - abseil/base/core_headers 420 | - abseil/base/raw_logging_internal 421 | - abseil/meta/type_traits 422 | - abseil/status/status 423 | - abseil/strings/strings 424 | - abseil/types/variant 425 | - abseil/utility/utility 426 | - abseil/strings/cord (1.20220623.0): 427 | - abseil/base/base 428 | - abseil/base/config 429 | - abseil/base/core_headers 430 | - abseil/base/endian 431 | - abseil/base/raw_logging_internal 432 | - abseil/container/fixed_array 433 | - abseil/container/inlined_vector 434 | - abseil/functional/function_ref 435 | - abseil/meta/type_traits 436 | - abseil/numeric/bits 437 | - abseil/strings/cord_internal 438 | - abseil/strings/cordz_functions 439 | - abseil/strings/cordz_info 440 | - abseil/strings/cordz_statistics 441 | - abseil/strings/cordz_update_scope 442 | - abseil/strings/cordz_update_tracker 443 | - abseil/strings/internal 444 | - abseil/strings/str_format 445 | - abseil/strings/strings 446 | - abseil/types/optional 447 | - abseil/types/span 448 | - abseil/strings/cord_internal (1.20220623.0): 449 | - abseil/base/base_internal 450 | - abseil/base/config 451 | - abseil/base/core_headers 452 | - abseil/base/endian 453 | - abseil/base/raw_logging_internal 454 | - abseil/base/throw_delegate 455 | - abseil/container/compressed_tuple 456 | - abseil/container/inlined_vector 457 | - abseil/container/layout 458 | - abseil/functional/function_ref 459 | - abseil/meta/type_traits 460 | - abseil/strings/strings 461 | - abseil/types/span 462 | - abseil/strings/cordz_functions (1.20220623.0): 463 | - abseil/base/config 464 | - abseil/base/core_headers 465 | - abseil/base/raw_logging_internal 466 | - abseil/profiling/exponential_biased 467 | - abseil/strings/cordz_handle (1.20220623.0): 468 | - abseil/base/base 469 | - abseil/base/config 470 | - abseil/base/raw_logging_internal 471 | - abseil/synchronization/synchronization 472 | - abseil/strings/cordz_info (1.20220623.0): 473 | - abseil/base/base 474 | - abseil/base/config 475 | - abseil/base/core_headers 476 | - abseil/base/raw_logging_internal 477 | - abseil/container/inlined_vector 478 | - abseil/debugging/stacktrace 479 | - abseil/strings/cord_internal 480 | - abseil/strings/cordz_functions 481 | - abseil/strings/cordz_handle 482 | - abseil/strings/cordz_statistics 483 | - abseil/strings/cordz_update_tracker 484 | - abseil/synchronization/synchronization 485 | - abseil/types/span 486 | - abseil/strings/cordz_statistics (1.20220623.0): 487 | - abseil/base/config 488 | - abseil/strings/cordz_update_tracker 489 | - abseil/strings/cordz_update_scope (1.20220623.0): 490 | - abseil/base/config 491 | - abseil/base/core_headers 492 | - abseil/strings/cord_internal 493 | - abseil/strings/cordz_info 494 | - abseil/strings/cordz_update_tracker 495 | - abseil/strings/cordz_update_tracker (1.20220623.0): 496 | - abseil/base/config 497 | - abseil/strings/internal (1.20220623.0): 498 | - abseil/base/config 499 | - abseil/base/core_headers 500 | - abseil/base/endian 501 | - abseil/base/raw_logging_internal 502 | - abseil/meta/type_traits 503 | - abseil/strings/str_format (1.20220623.0): 504 | - abseil/strings/str_format_internal 505 | - abseil/strings/str_format_internal (1.20220623.0): 506 | - abseil/base/config 507 | - abseil/base/core_headers 508 | - abseil/functional/function_ref 509 | - abseil/meta/type_traits 510 | - abseil/numeric/bits 511 | - abseil/numeric/int128 512 | - abseil/numeric/representation 513 | - abseil/strings/strings 514 | - abseil/types/optional 515 | - abseil/types/span 516 | - abseil/utility/utility 517 | - abseil/strings/strings (1.20220623.0): 518 | - abseil/base/base 519 | - abseil/base/config 520 | - abseil/base/core_headers 521 | - abseil/base/endian 522 | - abseil/base/raw_logging_internal 523 | - abseil/base/throw_delegate 524 | - abseil/memory/memory 525 | - abseil/meta/type_traits 526 | - abseil/numeric/bits 527 | - abseil/numeric/int128 528 | - abseil/strings/internal 529 | - abseil/synchronization/graphcycles_internal (1.20220623.0): 530 | - abseil/base/base 531 | - abseil/base/base_internal 532 | - abseil/base/config 533 | - abseil/base/core_headers 534 | - abseil/base/malloc_internal 535 | - abseil/base/raw_logging_internal 536 | - abseil/synchronization/kernel_timeout_internal (1.20220623.0): 537 | - abseil/base/core_headers 538 | - abseil/base/raw_logging_internal 539 | - abseil/time/time 540 | - abseil/synchronization/synchronization (1.20220623.0): 541 | - abseil/base/atomic_hook 542 | - abseil/base/base 543 | - abseil/base/base_internal 544 | - abseil/base/config 545 | - abseil/base/core_headers 546 | - abseil/base/dynamic_annotations 547 | - abseil/base/malloc_internal 548 | - abseil/base/raw_logging_internal 549 | - abseil/debugging/stacktrace 550 | - abseil/debugging/symbolize 551 | - abseil/synchronization/graphcycles_internal 552 | - abseil/synchronization/kernel_timeout_internal 553 | - abseil/time/time 554 | - abseil/time (1.20220623.0): 555 | - abseil/time/internal (= 1.20220623.0) 556 | - abseil/time/time (= 1.20220623.0) 557 | - abseil/time/internal (1.20220623.0): 558 | - abseil/time/internal/cctz (= 1.20220623.0) 559 | - abseil/time/internal/cctz (1.20220623.0): 560 | - abseil/time/internal/cctz/civil_time (= 1.20220623.0) 561 | - abseil/time/internal/cctz/time_zone (= 1.20220623.0) 562 | - abseil/time/internal/cctz/civil_time (1.20220623.0): 563 | - abseil/base/config 564 | - abseil/time/internal/cctz/time_zone (1.20220623.0): 565 | - abseil/base/config 566 | - abseil/time/internal/cctz/civil_time 567 | - abseil/time/time (1.20220623.0): 568 | - abseil/base/base 569 | - abseil/base/core_headers 570 | - abseil/base/raw_logging_internal 571 | - abseil/numeric/int128 572 | - abseil/strings/strings 573 | - abseil/time/internal/cctz/civil_time 574 | - abseil/time/internal/cctz/time_zone 575 | - abseil/types (1.20220623.0): 576 | - abseil/types/any (= 1.20220623.0) 577 | - abseil/types/bad_any_cast (= 1.20220623.0) 578 | - abseil/types/bad_any_cast_impl (= 1.20220623.0) 579 | - abseil/types/bad_optional_access (= 1.20220623.0) 580 | - abseil/types/bad_variant_access (= 1.20220623.0) 581 | - abseil/types/compare (= 1.20220623.0) 582 | - abseil/types/optional (= 1.20220623.0) 583 | - abseil/types/span (= 1.20220623.0) 584 | - abseil/types/variant (= 1.20220623.0) 585 | - abseil/types/any (1.20220623.0): 586 | - abseil/base/config 587 | - abseil/base/core_headers 588 | - abseil/base/fast_type_id 589 | - abseil/meta/type_traits 590 | - abseil/types/bad_any_cast 591 | - abseil/utility/utility 592 | - abseil/types/bad_any_cast (1.20220623.0): 593 | - abseil/base/config 594 | - abseil/types/bad_any_cast_impl 595 | - abseil/types/bad_any_cast_impl (1.20220623.0): 596 | - abseil/base/config 597 | - abseil/base/raw_logging_internal 598 | - abseil/types/bad_optional_access (1.20220623.0): 599 | - abseil/base/config 600 | - abseil/base/raw_logging_internal 601 | - abseil/types/bad_variant_access (1.20220623.0): 602 | - abseil/base/config 603 | - abseil/base/raw_logging_internal 604 | - abseil/types/compare (1.20220623.0): 605 | - abseil/base/core_headers 606 | - abseil/meta/type_traits 607 | - abseil/types/optional (1.20220623.0): 608 | - abseil/base/base_internal 609 | - abseil/base/config 610 | - abseil/base/core_headers 611 | - abseil/memory/memory 612 | - abseil/meta/type_traits 613 | - abseil/types/bad_optional_access 614 | - abseil/utility/utility 615 | - abseil/types/span (1.20220623.0): 616 | - abseil/algorithm/algorithm 617 | - abseil/base/core_headers 618 | - abseil/base/throw_delegate 619 | - abseil/meta/type_traits 620 | - abseil/types/variant (1.20220623.0): 621 | - abseil/base/base_internal 622 | - abseil/base/config 623 | - abseil/base/core_headers 624 | - abseil/meta/type_traits 625 | - abseil/types/bad_variant_access 626 | - abseil/utility/utility 627 | - abseil/utility/utility (1.20220623.0): 628 | - abseil/base/base_internal 629 | - abseil/base/config 630 | - abseil/meta/type_traits 631 | - BoringSSL-GRPC (0.0.24): 632 | - BoringSSL-GRPC/Implementation (= 0.0.24) 633 | - BoringSSL-GRPC/Interface (= 0.0.24) 634 | - BoringSSL-GRPC/Implementation (0.0.24): 635 | - BoringSSL-GRPC/Interface (= 0.0.24) 636 | - BoringSSL-GRPC/Interface (0.0.24) 637 | - cloud_firestore (4.13.6): 638 | - Firebase/Firestore (= 10.18.0) 639 | - firebase_core 640 | - Flutter 641 | - nanopb (< 2.30910.0, >= 2.30908.0) 642 | - Firebase/CoreOnly (10.18.0): 643 | - FirebaseCore (= 10.18.0) 644 | - Firebase/Firestore (10.18.0): 645 | - Firebase/CoreOnly 646 | - FirebaseFirestore (~> 10.18.0) 647 | - firebase_core (2.24.2): 648 | - Firebase/CoreOnly (= 10.18.0) 649 | - Flutter 650 | - FirebaseAppCheckInterop (10.19.0) 651 | - FirebaseCore (10.18.0): 652 | - FirebaseCoreInternal (~> 10.0) 653 | - GoogleUtilities/Environment (~> 7.12) 654 | - GoogleUtilities/Logger (~> 7.12) 655 | - FirebaseCoreExtension (10.19.0): 656 | - FirebaseCore (~> 10.0) 657 | - FirebaseCoreInternal (10.19.0): 658 | - "GoogleUtilities/NSData+zlib (~> 7.8)" 659 | - FirebaseFirestore (10.18.0): 660 | - FirebaseCore (~> 10.0) 661 | - FirebaseCoreExtension (~> 10.0) 662 | - FirebaseFirestoreInternal (~> 10.17) 663 | - FirebaseSharedSwift (~> 10.0) 664 | - FirebaseFirestoreInternal (10.19.0): 665 | - abseil/algorithm (~> 1.20220623.0) 666 | - abseil/base (~> 1.20220623.0) 667 | - abseil/container/flat_hash_map (~> 1.20220623.0) 668 | - abseil/memory (~> 1.20220623.0) 669 | - abseil/meta (~> 1.20220623.0) 670 | - abseil/strings/strings (~> 1.20220623.0) 671 | - abseil/time (~> 1.20220623.0) 672 | - abseil/types (~> 1.20220623.0) 673 | - FirebaseAppCheckInterop (~> 10.17) 674 | - FirebaseCore (~> 10.0) 675 | - "gRPC-C++ (~> 1.49.1)" 676 | - leveldb-library (~> 1.22) 677 | - nanopb (< 2.30910.0, >= 2.30908.0) 678 | - FirebaseSharedSwift (10.19.0) 679 | - Flutter (1.0.0) 680 | - GoogleUtilities/Environment (7.12.0): 681 | - PromisesObjC (< 3.0, >= 1.2) 682 | - GoogleUtilities/Logger (7.12.0): 683 | - GoogleUtilities/Environment 684 | - "GoogleUtilities/NSData+zlib (7.12.0)" 685 | - "gRPC-C++ (1.49.1)": 686 | - "gRPC-C++/Implementation (= 1.49.1)" 687 | - "gRPC-C++/Interface (= 1.49.1)" 688 | - "gRPC-C++/Implementation (1.49.1)": 689 | - abseil/base/base (= 1.20220623.0) 690 | - abseil/base/core_headers (= 1.20220623.0) 691 | - abseil/cleanup/cleanup (= 1.20220623.0) 692 | - abseil/container/flat_hash_map (= 1.20220623.0) 693 | - abseil/container/flat_hash_set (= 1.20220623.0) 694 | - abseil/container/inlined_vector (= 1.20220623.0) 695 | - abseil/functional/any_invocable (= 1.20220623.0) 696 | - abseil/functional/bind_front (= 1.20220623.0) 697 | - abseil/functional/function_ref (= 1.20220623.0) 698 | - abseil/hash/hash (= 1.20220623.0) 699 | - abseil/memory/memory (= 1.20220623.0) 700 | - abseil/meta/type_traits (= 1.20220623.0) 701 | - abseil/random/random (= 1.20220623.0) 702 | - abseil/status/status (= 1.20220623.0) 703 | - abseil/status/statusor (= 1.20220623.0) 704 | - abseil/strings/cord (= 1.20220623.0) 705 | - abseil/strings/str_format (= 1.20220623.0) 706 | - abseil/strings/strings (= 1.20220623.0) 707 | - abseil/synchronization/synchronization (= 1.20220623.0) 708 | - abseil/time/time (= 1.20220623.0) 709 | - abseil/types/optional (= 1.20220623.0) 710 | - abseil/types/span (= 1.20220623.0) 711 | - abseil/types/variant (= 1.20220623.0) 712 | - abseil/utility/utility (= 1.20220623.0) 713 | - "gRPC-C++/Interface (= 1.49.1)" 714 | - gRPC-Core (= 1.49.1) 715 | - "gRPC-C++/Interface (1.49.1)" 716 | - gRPC-Core (1.49.1): 717 | - gRPC-Core/Implementation (= 1.49.1) 718 | - gRPC-Core/Interface (= 1.49.1) 719 | - gRPC-Core/Implementation (1.49.1): 720 | - abseil/base/base (= 1.20220623.0) 721 | - abseil/base/core_headers (= 1.20220623.0) 722 | - abseil/container/flat_hash_map (= 1.20220623.0) 723 | - abseil/container/flat_hash_set (= 1.20220623.0) 724 | - abseil/container/inlined_vector (= 1.20220623.0) 725 | - abseil/functional/any_invocable (= 1.20220623.0) 726 | - abseil/functional/bind_front (= 1.20220623.0) 727 | - abseil/functional/function_ref (= 1.20220623.0) 728 | - abseil/hash/hash (= 1.20220623.0) 729 | - abseil/memory/memory (= 1.20220623.0) 730 | - abseil/meta/type_traits (= 1.20220623.0) 731 | - abseil/random/random (= 1.20220623.0) 732 | - abseil/status/status (= 1.20220623.0) 733 | - abseil/status/statusor (= 1.20220623.0) 734 | - abseil/strings/cord (= 1.20220623.0) 735 | - abseil/strings/str_format (= 1.20220623.0) 736 | - abseil/strings/strings (= 1.20220623.0) 737 | - abseil/synchronization/synchronization (= 1.20220623.0) 738 | - abseil/time/time (= 1.20220623.0) 739 | - abseil/types/optional (= 1.20220623.0) 740 | - abseil/types/span (= 1.20220623.0) 741 | - abseil/types/variant (= 1.20220623.0) 742 | - abseil/utility/utility (= 1.20220623.0) 743 | - BoringSSL-GRPC (= 0.0.24) 744 | - gRPC-Core/Interface (= 1.49.1) 745 | - gRPC-Core/Interface (1.49.1) 746 | - leveldb-library (1.22.2) 747 | - nanopb (2.30909.1): 748 | - nanopb/decode (= 2.30909.1) 749 | - nanopb/encode (= 2.30909.1) 750 | - nanopb/decode (2.30909.1) 751 | - nanopb/encode (2.30909.1) 752 | - PromisesObjC (2.3.1) 753 | - Stripe (23.18.3): 754 | - StripeApplePay (= 23.18.3) 755 | - StripeCore (= 23.18.3) 756 | - StripePayments (= 23.18.3) 757 | - StripePaymentsUI (= 23.18.3) 758 | - StripeUICore (= 23.18.3) 759 | - stripe_ios (0.0.1): 760 | - Flutter 761 | - Stripe (~> 23.18.0) 762 | - StripeApplePay (~> 23.18.0) 763 | - StripeFinancialConnections (~> 23.18.0) 764 | - StripePayments (~> 23.18.0) 765 | - StripePaymentSheet (~> 23.18.0) 766 | - StripePaymentsUI (~> 23.18.0) 767 | - StripeApplePay (23.18.3): 768 | - StripeCore (= 23.18.3) 769 | - StripeCore (23.18.3) 770 | - StripeFinancialConnections (23.18.3): 771 | - StripeCore (= 23.18.3) 772 | - StripeUICore (= 23.18.3) 773 | - StripePayments (23.18.3): 774 | - StripeCore (= 23.18.3) 775 | - StripePayments/Stripe3DS2 (= 23.18.3) 776 | - StripePayments/Stripe3DS2 (23.18.3): 777 | - StripeCore (= 23.18.3) 778 | - StripePaymentSheet (23.18.3): 779 | - StripeApplePay (= 23.18.3) 780 | - StripeCore (= 23.18.3) 781 | - StripePayments (= 23.18.3) 782 | - StripePaymentsUI (= 23.18.3) 783 | - StripePaymentsUI (23.18.3): 784 | - StripeCore (= 23.18.3) 785 | - StripePayments (= 23.18.3) 786 | - StripeUICore (= 23.18.3) 787 | - StripeUICore (23.18.3): 788 | - StripeCore (= 23.18.3) 789 | 790 | DEPENDENCIES: 791 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) 792 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 793 | - Flutter (from `Flutter`) 794 | - stripe_ios (from `.symlinks/plugins/stripe_ios/ios`) 795 | 796 | SPEC REPOS: 797 | trunk: 798 | - abseil 799 | - BoringSSL-GRPC 800 | - Firebase 801 | - FirebaseAppCheckInterop 802 | - FirebaseCore 803 | - FirebaseCoreExtension 804 | - FirebaseCoreInternal 805 | - FirebaseFirestore 806 | - FirebaseFirestoreInternal 807 | - FirebaseSharedSwift 808 | - GoogleUtilities 809 | - "gRPC-C++" 810 | - gRPC-Core 811 | - leveldb-library 812 | - nanopb 813 | - PromisesObjC 814 | - Stripe 815 | - StripeApplePay 816 | - StripeCore 817 | - StripeFinancialConnections 818 | - StripePayments 819 | - StripePaymentSheet 820 | - StripePaymentsUI 821 | - StripeUICore 822 | 823 | EXTERNAL SOURCES: 824 | cloud_firestore: 825 | :path: ".symlinks/plugins/cloud_firestore/ios" 826 | firebase_core: 827 | :path: ".symlinks/plugins/firebase_core/ios" 828 | Flutter: 829 | :path: Flutter 830 | stripe_ios: 831 | :path: ".symlinks/plugins/stripe_ios/ios" 832 | 833 | SPEC CHECKSUMS: 834 | abseil: 926fb7a82dc6d2b8e1f2ed7f3a718bce691d1e46 835 | BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 836 | cloud_firestore: c29d4c2e96fe31374d9dab458a99d7a488d3a735 837 | Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06 838 | firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5 839 | FirebaseAppCheckInterop: 37884781f3e16a1ba47e7ec80a1e805f987788e3 840 | FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f 841 | FirebaseCoreExtension: c08d14c7b22e07994e876d837e6f58642f340087 842 | FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290 843 | FirebaseFirestore: 171bcbb57a1a348dd171a0d5e382c03ef85a77bb 844 | FirebaseFirestoreInternal: a15405fb607dfd14edd568bba77028f4c7a69688 845 | FirebaseSharedSwift: f34eeb7d3ea87a34497629b6ca41657beadef76a 846 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 847 | GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 848 | "gRPC-C++": 2df8cba576898bdacd29f0266d5236fa0e26ba6a 849 | gRPC-Core: a21a60aefc08c68c247b439a9ef97174b0c54f96 850 | leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 851 | nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 852 | PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 853 | Stripe: e046335ab6e3f25d39f1a55bd98620a85269cffa 854 | stripe_ios: 37dd66ec680264019be16c5f47333f381164e6a6 855 | StripeApplePay: 1aa77f8ec7a6d9463fa8f49ae0672fe59dbf4c73 856 | StripeCore: fe10c34fb3c9ae18b986913f7e4460e7c653ce93 857 | StripeFinancialConnections: 6022426894046f26fe21d348da02d83d8a637fb0 858 | StripePayments: 7084fed30c5f03f15ae23c5dce63715ba0b53e15 859 | StripePaymentSheet: c8d25d4133476c6238d3cc932fb8219bb5ea49c0 860 | StripePaymentsUI: c12de264eda974d91e43a769f53a6c6afc9a1715 861 | StripeUICore: 090c4fe916d039616ce8f8de30392f4aeb33dd16 862 | 863 | PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 864 | 865 | COCOAPODS: 1.12.1 866 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 7A411BB4E0005733633CDFCC /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2FB93BC2ED7E3388E907E1EC /* Pods_Runner.framework */; }; 15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 18 | B4DA35E440C9D223F5B1FD29 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0CB713793452EE7773CB316A /* GoogleService-Info.plist */; }; 19 | D06C173CEE1DC72BD1A96127 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFFB81E9F89D0E4BF64547A5 /* Pods_RunnerTests.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 28 | remoteInfo = Runner; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXCopyFilesBuildPhase section */ 33 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 34 | isa = PBXCopyFilesBuildPhase; 35 | buildActionMask = 2147483647; 36 | dstPath = ""; 37 | dstSubfolderSpec = 10; 38 | files = ( 39 | ); 40 | name = "Embed Frameworks"; 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXCopyFilesBuildPhase section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 0CB713793452EE7773CB316A /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = ""; }; 47 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 48 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 49 | 258AD34B292B25897EC4A10F /* 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 = ""; }; 50 | 267AB6B3B2D1FDC87E7A3B73 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; 51 | 2FB93BC2ED7E3388E907E1EC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 53 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 55 | 43D57CA0D2E6A69CE12D1628 /* 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 = ""; }; 56 | 6307BE3C594747FD0AF27604 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; 57 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 58 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 59 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 60 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 61 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 62 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 64 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 65 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 66 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 67 | A05227F27E5CD16A46AEAB39 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; 68 | AFFB81E9F89D0E4BF64547A5 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | F8537C0ABCC08C17915E582F /* 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 = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 7A411BB4E0005733633CDFCC /* Pods_Runner.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | A7183107FDE752AF8A7B03BA /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | D06C173CEE1DC72BD1A96127 /* Pods_RunnerTests.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | /* End PBXFrameworksBuildPhase section */ 90 | 91 | /* Begin PBXGroup section */ 92 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 96 | ); 97 | path = RunnerTests; 98 | sourceTree = ""; 99 | }; 100 | 601CF7D5FBCF8EA15EC416FC /* Frameworks */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 2FB93BC2ED7E3388E907E1EC /* Pods_Runner.framework */, 104 | AFFB81E9F89D0E4BF64547A5 /* Pods_RunnerTests.framework */, 105 | ); 106 | name = Frameworks; 107 | sourceTree = ""; 108 | }; 109 | 9740EEB11CF90186004384FC /* Flutter */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 113 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 114 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 115 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 116 | ); 117 | name = Flutter; 118 | sourceTree = ""; 119 | }; 120 | 97C146E51CF9000F007C117D = { 121 | isa = PBXGroup; 122 | children = ( 123 | 9740EEB11CF90186004384FC /* Flutter */, 124 | 97C146F01CF9000F007C117D /* Runner */, 125 | 97C146EF1CF9000F007C117D /* Products */, 126 | 331C8082294A63A400263BE5 /* RunnerTests */, 127 | 0CB713793452EE7773CB316A /* GoogleService-Info.plist */, 128 | FDEDDC93CE1DD3809A98EA5D /* Pods */, 129 | 601CF7D5FBCF8EA15EC416FC /* Frameworks */, 130 | ); 131 | sourceTree = ""; 132 | }; 133 | 97C146EF1CF9000F007C117D /* Products */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 97C146EE1CF9000F007C117D /* Runner.app */, 137 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 138 | ); 139 | name = Products; 140 | sourceTree = ""; 141 | }; 142 | 97C146F01CF9000F007C117D /* Runner */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 146 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 147 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 148 | 97C147021CF9000F007C117D /* Info.plist */, 149 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 150 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 151 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 152 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 153 | ); 154 | path = Runner; 155 | sourceTree = ""; 156 | }; 157 | FDEDDC93CE1DD3809A98EA5D /* Pods */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | F8537C0ABCC08C17915E582F /* Pods-Runner.debug.xcconfig */, 161 | 43D57CA0D2E6A69CE12D1628 /* Pods-Runner.release.xcconfig */, 162 | 258AD34B292B25897EC4A10F /* Pods-Runner.profile.xcconfig */, 163 | 6307BE3C594747FD0AF27604 /* Pods-RunnerTests.debug.xcconfig */, 164 | 267AB6B3B2D1FDC87E7A3B73 /* Pods-RunnerTests.release.xcconfig */, 165 | A05227F27E5CD16A46AEAB39 /* Pods-RunnerTests.profile.xcconfig */, 166 | ); 167 | path = Pods; 168 | sourceTree = ""; 169 | }; 170 | /* End PBXGroup section */ 171 | 172 | /* Begin PBXNativeTarget section */ 173 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 174 | isa = PBXNativeTarget; 175 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 176 | buildPhases = ( 177 | 2B1528783D4CE74F03ED2CA9 /* [CP] Check Pods Manifest.lock */, 178 | 331C807D294A63A400263BE5 /* Sources */, 179 | 331C807F294A63A400263BE5 /* Resources */, 180 | A7183107FDE752AF8A7B03BA /* Frameworks */, 181 | ); 182 | buildRules = ( 183 | ); 184 | dependencies = ( 185 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 186 | ); 187 | name = RunnerTests; 188 | productName = RunnerTests; 189 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 190 | productType = "com.apple.product-type.bundle.unit-test"; 191 | }; 192 | 97C146ED1CF9000F007C117D /* Runner */ = { 193 | isa = PBXNativeTarget; 194 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 195 | buildPhases = ( 196 | AC234CB67379A6B57C8AEEC7 /* [CP] Check Pods Manifest.lock */, 197 | 9740EEB61CF901F6004384FC /* Run Script */, 198 | 97C146EA1CF9000F007C117D /* Sources */, 199 | 97C146EB1CF9000F007C117D /* Frameworks */, 200 | 97C146EC1CF9000F007C117D /* Resources */, 201 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 202 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 203 | ECBB5A94C026363D7BE5FF5E /* [CP] Embed Pods Frameworks */, 204 | ); 205 | buildRules = ( 206 | ); 207 | dependencies = ( 208 | ); 209 | name = Runner; 210 | productName = Runner; 211 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 212 | productType = "com.apple.product-type.application"; 213 | }; 214 | /* End PBXNativeTarget section */ 215 | 216 | /* Begin PBXProject section */ 217 | 97C146E61CF9000F007C117D /* Project object */ = { 218 | isa = PBXProject; 219 | attributes = { 220 | BuildIndependentTargetsInParallel = YES; 221 | LastUpgradeCheck = 1430; 222 | ORGANIZATIONNAME = ""; 223 | TargetAttributes = { 224 | 331C8080294A63A400263BE5 = { 225 | CreatedOnToolsVersion = 14.0; 226 | TestTargetID = 97C146ED1CF9000F007C117D; 227 | }; 228 | 97C146ED1CF9000F007C117D = { 229 | CreatedOnToolsVersion = 7.3.1; 230 | LastSwiftMigration = 1100; 231 | }; 232 | }; 233 | }; 234 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 235 | compatibilityVersion = "Xcode 9.3"; 236 | developmentRegion = en; 237 | hasScannedForEncodings = 0; 238 | knownRegions = ( 239 | en, 240 | Base, 241 | ); 242 | mainGroup = 97C146E51CF9000F007C117D; 243 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 244 | projectDirPath = ""; 245 | projectRoot = ""; 246 | targets = ( 247 | 97C146ED1CF9000F007C117D /* Runner */, 248 | 331C8080294A63A400263BE5 /* RunnerTests */, 249 | ); 250 | }; 251 | /* End PBXProject section */ 252 | 253 | /* Begin PBXResourcesBuildPhase section */ 254 | 331C807F294A63A400263BE5 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | 97C146EC1CF9000F007C117D /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 266 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 267 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 268 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 269 | B4DA35E440C9D223F5B1FD29 /* GoogleService-Info.plist in Resources */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | /* End PBXResourcesBuildPhase section */ 274 | 275 | /* Begin PBXShellScriptBuildPhase section */ 276 | 2B1528783D4CE74F03ED2CA9 /* [CP] Check Pods Manifest.lock */ = { 277 | isa = PBXShellScriptBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | ); 281 | inputFileListPaths = ( 282 | ); 283 | inputPaths = ( 284 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 285 | "${PODS_ROOT}/Manifest.lock", 286 | ); 287 | name = "[CP] Check Pods Manifest.lock"; 288 | outputFileListPaths = ( 289 | ); 290 | outputPaths = ( 291 | "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | shellPath = /bin/sh; 295 | 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"; 296 | showEnvVarsInLog = 0; 297 | }; 298 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 299 | isa = PBXShellScriptBuildPhase; 300 | alwaysOutOfDate = 1; 301 | buildActionMask = 2147483647; 302 | files = ( 303 | ); 304 | inputPaths = ( 305 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 306 | ); 307 | name = "Thin Binary"; 308 | outputPaths = ( 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | shellPath = /bin/sh; 312 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 313 | }; 314 | 9740EEB61CF901F6004384FC /* Run Script */ = { 315 | isa = PBXShellScriptBuildPhase; 316 | alwaysOutOfDate = 1; 317 | buildActionMask = 2147483647; 318 | files = ( 319 | ); 320 | inputPaths = ( 321 | ); 322 | name = "Run Script"; 323 | outputPaths = ( 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | shellPath = /bin/sh; 327 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 328 | }; 329 | AC234CB67379A6B57C8AEEC7 /* [CP] Check Pods Manifest.lock */ = { 330 | isa = PBXShellScriptBuildPhase; 331 | buildActionMask = 2147483647; 332 | files = ( 333 | ); 334 | inputFileListPaths = ( 335 | ); 336 | inputPaths = ( 337 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 338 | "${PODS_ROOT}/Manifest.lock", 339 | ); 340 | name = "[CP] Check Pods Manifest.lock"; 341 | outputFileListPaths = ( 342 | ); 343 | outputPaths = ( 344 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | shellPath = /bin/sh; 348 | 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"; 349 | showEnvVarsInLog = 0; 350 | }; 351 | ECBB5A94C026363D7BE5FF5E /* [CP] Embed Pods Frameworks */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputFileListPaths = ( 357 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 358 | ); 359 | name = "[CP] Embed Pods Frameworks"; 360 | outputFileListPaths = ( 361 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | shellPath = /bin/sh; 365 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 366 | showEnvVarsInLog = 0; 367 | }; 368 | /* End PBXShellScriptBuildPhase section */ 369 | 370 | /* Begin PBXSourcesBuildPhase section */ 371 | 331C807D294A63A400263BE5 /* Sources */ = { 372 | isa = PBXSourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | 97C146EA1CF9000F007C117D /* Sources */ = { 380 | isa = PBXSourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 384 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | /* End PBXSourcesBuildPhase section */ 389 | 390 | /* Begin PBXTargetDependency section */ 391 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 392 | isa = PBXTargetDependency; 393 | target = 97C146ED1CF9000F007C117D /* Runner */; 394 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 395 | }; 396 | /* End PBXTargetDependency section */ 397 | 398 | /* Begin PBXVariantGroup section */ 399 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 400 | isa = PBXVariantGroup; 401 | children = ( 402 | 97C146FB1CF9000F007C117D /* Base */, 403 | ); 404 | name = Main.storyboard; 405 | sourceTree = ""; 406 | }; 407 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 408 | isa = PBXVariantGroup; 409 | children = ( 410 | 97C147001CF9000F007C117D /* Base */, 411 | ); 412 | name = LaunchScreen.storyboard; 413 | sourceTree = ""; 414 | }; 415 | /* End PBXVariantGroup section */ 416 | 417 | /* Begin XCBuildConfiguration section */ 418 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ALWAYS_SEARCH_USER_PATHS = NO; 422 | CLANG_ANALYZER_NONNULL = YES; 423 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 424 | CLANG_CXX_LIBRARY = "libc++"; 425 | CLANG_ENABLE_MODULES = YES; 426 | CLANG_ENABLE_OBJC_ARC = YES; 427 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 428 | CLANG_WARN_BOOL_CONVERSION = YES; 429 | CLANG_WARN_COMMA = YES; 430 | CLANG_WARN_CONSTANT_CONVERSION = YES; 431 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INFINITE_RECURSION = YES; 436 | CLANG_WARN_INT_CONVERSION = YES; 437 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 438 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 439 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 440 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 441 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 442 | CLANG_WARN_STRICT_PROTOTYPES = YES; 443 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 444 | CLANG_WARN_UNREACHABLE_CODE = YES; 445 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 446 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 447 | COPY_PHASE_STRIP = NO; 448 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 449 | ENABLE_NS_ASSERTIONS = NO; 450 | ENABLE_STRICT_OBJC_MSGSEND = YES; 451 | GCC_C_LANGUAGE_STANDARD = gnu99; 452 | GCC_NO_COMMON_BLOCKS = YES; 453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 455 | GCC_WARN_UNDECLARED_SELECTOR = YES; 456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 457 | GCC_WARN_UNUSED_FUNCTION = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 460 | MTL_ENABLE_DEBUG_INFO = NO; 461 | SDKROOT = iphoneos; 462 | SUPPORTED_PLATFORMS = iphoneos; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | VALIDATE_PRODUCT = YES; 465 | }; 466 | name = Profile; 467 | }; 468 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 469 | isa = XCBuildConfiguration; 470 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 471 | buildSettings = { 472 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 473 | CLANG_ENABLE_MODULES = YES; 474 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 475 | ENABLE_BITCODE = NO; 476 | INFOPLIST_FILE = Runner/Info.plist; 477 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 478 | LD_RUNPATH_SEARCH_PATHS = ( 479 | "$(inherited)", 480 | "@executable_path/Frameworks", 481 | ); 482 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 485 | SWIFT_VERSION = 5.0; 486 | VERSIONING_SYSTEM = "apple-generic"; 487 | }; 488 | name = Profile; 489 | }; 490 | 331C8088294A63A400263BE5 /* Debug */ = { 491 | isa = XCBuildConfiguration; 492 | baseConfigurationReference = 6307BE3C594747FD0AF27604 /* Pods-RunnerTests.debug.xcconfig */; 493 | buildSettings = { 494 | BUNDLE_LOADER = "$(TEST_HOST)"; 495 | CODE_SIGN_STYLE = Automatic; 496 | CURRENT_PROJECT_VERSION = 1; 497 | GENERATE_INFOPLIST_FILE = YES; 498 | MARKETING_VERSION = 1.0; 499 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe.RunnerTests; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 502 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 503 | SWIFT_VERSION = 5.0; 504 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 505 | }; 506 | name = Debug; 507 | }; 508 | 331C8089294A63A400263BE5 /* Release */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 267AB6B3B2D1FDC87E7A3B73 /* Pods-RunnerTests.release.xcconfig */; 511 | buildSettings = { 512 | BUNDLE_LOADER = "$(TEST_HOST)"; 513 | CODE_SIGN_STYLE = Automatic; 514 | CURRENT_PROJECT_VERSION = 1; 515 | GENERATE_INFOPLIST_FILE = YES; 516 | MARKETING_VERSION = 1.0; 517 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe.RunnerTests; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | SWIFT_VERSION = 5.0; 520 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 521 | }; 522 | name = Release; 523 | }; 524 | 331C808A294A63A400263BE5 /* Profile */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = A05227F27E5CD16A46AEAB39 /* Pods-RunnerTests.profile.xcconfig */; 527 | buildSettings = { 528 | BUNDLE_LOADER = "$(TEST_HOST)"; 529 | CODE_SIGN_STYLE = Automatic; 530 | CURRENT_PROJECT_VERSION = 1; 531 | GENERATE_INFOPLIST_FILE = YES; 532 | MARKETING_VERSION = 1.0; 533 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe.RunnerTests; 534 | PRODUCT_NAME = "$(TARGET_NAME)"; 535 | SWIFT_VERSION = 5.0; 536 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 537 | }; 538 | name = Profile; 539 | }; 540 | 97C147031CF9000F007C117D /* Debug */ = { 541 | isa = XCBuildConfiguration; 542 | buildSettings = { 543 | ALWAYS_SEARCH_USER_PATHS = NO; 544 | CLANG_ANALYZER_NONNULL = YES; 545 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 546 | CLANG_CXX_LIBRARY = "libc++"; 547 | CLANG_ENABLE_MODULES = YES; 548 | CLANG_ENABLE_OBJC_ARC = YES; 549 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 550 | CLANG_WARN_BOOL_CONVERSION = YES; 551 | CLANG_WARN_COMMA = YES; 552 | CLANG_WARN_CONSTANT_CONVERSION = YES; 553 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 554 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 555 | CLANG_WARN_EMPTY_BODY = YES; 556 | CLANG_WARN_ENUM_CONVERSION = YES; 557 | CLANG_WARN_INFINITE_RECURSION = YES; 558 | CLANG_WARN_INT_CONVERSION = YES; 559 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 560 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 561 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 562 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 563 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 564 | CLANG_WARN_STRICT_PROTOTYPES = YES; 565 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 566 | CLANG_WARN_UNREACHABLE_CODE = YES; 567 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 568 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 569 | COPY_PHASE_STRIP = NO; 570 | DEBUG_INFORMATION_FORMAT = dwarf; 571 | ENABLE_STRICT_OBJC_MSGSEND = YES; 572 | ENABLE_TESTABILITY = YES; 573 | GCC_C_LANGUAGE_STANDARD = gnu99; 574 | GCC_DYNAMIC_NO_PIC = NO; 575 | GCC_NO_COMMON_BLOCKS = YES; 576 | GCC_OPTIMIZATION_LEVEL = 0; 577 | GCC_PREPROCESSOR_DEFINITIONS = ( 578 | "DEBUG=1", 579 | "$(inherited)", 580 | ); 581 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 582 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 583 | GCC_WARN_UNDECLARED_SELECTOR = YES; 584 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 585 | GCC_WARN_UNUSED_FUNCTION = YES; 586 | GCC_WARN_UNUSED_VARIABLE = YES; 587 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 588 | MTL_ENABLE_DEBUG_INFO = YES; 589 | ONLY_ACTIVE_ARCH = YES; 590 | SDKROOT = iphoneos; 591 | TARGETED_DEVICE_FAMILY = "1,2"; 592 | }; 593 | name = Debug; 594 | }; 595 | 97C147041CF9000F007C117D /* Release */ = { 596 | isa = XCBuildConfiguration; 597 | buildSettings = { 598 | ALWAYS_SEARCH_USER_PATHS = NO; 599 | CLANG_ANALYZER_NONNULL = YES; 600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 601 | CLANG_CXX_LIBRARY = "libc++"; 602 | CLANG_ENABLE_MODULES = YES; 603 | CLANG_ENABLE_OBJC_ARC = YES; 604 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 605 | CLANG_WARN_BOOL_CONVERSION = YES; 606 | CLANG_WARN_COMMA = YES; 607 | CLANG_WARN_CONSTANT_CONVERSION = YES; 608 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 609 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 610 | CLANG_WARN_EMPTY_BODY = YES; 611 | CLANG_WARN_ENUM_CONVERSION = YES; 612 | CLANG_WARN_INFINITE_RECURSION = YES; 613 | CLANG_WARN_INT_CONVERSION = YES; 614 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 615 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 616 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 617 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 618 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 619 | CLANG_WARN_STRICT_PROTOTYPES = YES; 620 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 621 | CLANG_WARN_UNREACHABLE_CODE = YES; 622 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 623 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 624 | COPY_PHASE_STRIP = NO; 625 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 626 | ENABLE_NS_ASSERTIONS = NO; 627 | ENABLE_STRICT_OBJC_MSGSEND = YES; 628 | GCC_C_LANGUAGE_STANDARD = gnu99; 629 | GCC_NO_COMMON_BLOCKS = YES; 630 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 631 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 632 | GCC_WARN_UNDECLARED_SELECTOR = YES; 633 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 634 | GCC_WARN_UNUSED_FUNCTION = YES; 635 | GCC_WARN_UNUSED_VARIABLE = YES; 636 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 637 | MTL_ENABLE_DEBUG_INFO = NO; 638 | SDKROOT = iphoneos; 639 | SUPPORTED_PLATFORMS = iphoneos; 640 | SWIFT_COMPILATION_MODE = wholemodule; 641 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 642 | TARGETED_DEVICE_FAMILY = "1,2"; 643 | VALIDATE_PRODUCT = YES; 644 | }; 645 | name = Release; 646 | }; 647 | 97C147061CF9000F007C117D /* Debug */ = { 648 | isa = XCBuildConfiguration; 649 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 650 | buildSettings = { 651 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 652 | CLANG_ENABLE_MODULES = YES; 653 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 654 | ENABLE_BITCODE = NO; 655 | INFOPLIST_FILE = Runner/Info.plist; 656 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 657 | LD_RUNPATH_SEARCH_PATHS = ( 658 | "$(inherited)", 659 | "@executable_path/Frameworks", 660 | ); 661 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe; 662 | PRODUCT_NAME = "$(TARGET_NAME)"; 663 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 664 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 665 | SWIFT_VERSION = 5.0; 666 | VERSIONING_SYSTEM = "apple-generic"; 667 | }; 668 | name = Debug; 669 | }; 670 | 97C147071CF9000F007C117D /* Release */ = { 671 | isa = XCBuildConfiguration; 672 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 673 | buildSettings = { 674 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 675 | CLANG_ENABLE_MODULES = YES; 676 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 677 | ENABLE_BITCODE = NO; 678 | INFOPLIST_FILE = Runner/Info.plist; 679 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 680 | LD_RUNPATH_SEARCH_PATHS = ( 681 | "$(inherited)", 682 | "@executable_path/Frameworks", 683 | ); 684 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ecommerceWithFlutterFirebaseAndStripe; 685 | PRODUCT_NAME = "$(TARGET_NAME)"; 686 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 687 | SWIFT_VERSION = 5.0; 688 | VERSIONING_SYSTEM = "apple-generic"; 689 | }; 690 | name = Release; 691 | }; 692 | /* End XCBuildConfiguration section */ 693 | 694 | /* Begin XCConfigurationList section */ 695 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 696 | isa = XCConfigurationList; 697 | buildConfigurations = ( 698 | 331C8088294A63A400263BE5 /* Debug */, 699 | 331C8089294A63A400263BE5 /* Release */, 700 | 331C808A294A63A400263BE5 /* Profile */, 701 | ); 702 | defaultConfigurationIsVisible = 0; 703 | defaultConfigurationName = Release; 704 | }; 705 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 706 | isa = XCConfigurationList; 707 | buildConfigurations = ( 708 | 97C147031CF9000F007C117D /* Debug */, 709 | 97C147041CF9000F007C117D /* Release */, 710 | 249021D3217E4FDB00AE95B9 /* Profile */, 711 | ); 712 | defaultConfigurationIsVisible = 0; 713 | defaultConfigurationName = Release; 714 | }; 715 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 716 | isa = XCConfigurationList; 717 | buildConfigurations = ( 718 | 97C147061CF9000F007C117D /* Debug */, 719 | 97C147071CF9000F007C117D /* Release */, 720 | 249021D4217E4FDB00AE95B9 /* Profile */, 721 | ); 722 | defaultConfigurationIsVisible = 0; 723 | defaultConfigurationName = Release; 724 | }; 725 | /* End XCConfigurationList section */ 726 | }; 727 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 728 | } 729 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /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.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 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: [UIApplication.LaunchOptionsKey: 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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/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/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Ecommerce With Flutter Firebase And Stripe 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ecommerce_with_flutter_firebase_and_stripe 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/firebase_options.dart: -------------------------------------------------------------------------------- 1 | // File generated by FlutterFire CLI. 2 | // ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members 3 | import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; 4 | import 'package:flutter/foundation.dart' 5 | show defaultTargetPlatform, kIsWeb, TargetPlatform; 6 | 7 | /// Default [FirebaseOptions] for use with your Firebase apps. 8 | /// 9 | /// Example: 10 | /// ```dart 11 | /// import 'firebase_options.dart'; 12 | /// // ... 13 | /// await Firebase.initializeApp( 14 | /// options: DefaultFirebaseOptions.currentPlatform, 15 | /// ); 16 | /// ``` 17 | class DefaultFirebaseOptions { 18 | static FirebaseOptions get currentPlatform { 19 | if (kIsWeb) { 20 | throw UnsupportedError( 21 | 'DefaultFirebaseOptions have not been configured for web - ' 22 | 'you can reconfigure this by running the FlutterFire CLI again.', 23 | ); 24 | } 25 | switch (defaultTargetPlatform) { 26 | case TargetPlatform.android: 27 | return android; 28 | case TargetPlatform.iOS: 29 | return ios; 30 | case TargetPlatform.macOS: 31 | throw UnsupportedError( 32 | 'DefaultFirebaseOptions have not been configured for macos - ' 33 | 'you can reconfigure this by running the FlutterFire CLI again.', 34 | ); 35 | case TargetPlatform.windows: 36 | throw UnsupportedError( 37 | 'DefaultFirebaseOptions have not been configured for windows - ' 38 | 'you can reconfigure this by running the FlutterFire CLI again.', 39 | ); 40 | case TargetPlatform.linux: 41 | throw UnsupportedError( 42 | 'DefaultFirebaseOptions have not been configured for linux - ' 43 | 'you can reconfigure this by running the FlutterFire CLI again.', 44 | ); 45 | default: 46 | throw UnsupportedError( 47 | 'DefaultFirebaseOptions are not supported for this platform.', 48 | ); 49 | } 50 | } 51 | 52 | static const FirebaseOptions android = FirebaseOptions( 53 | apiKey: 'AIzaSyBQbQYs6mJy8OYYftFF43Jjn0Av6tIjwPg', 54 | appId: '1:531689096987:android:5d02909c787a7641fff5be', 55 | messagingSenderId: '531689096987', 56 | projectId: 'atomsbox-ecomm-27d08', 57 | storageBucket: 'atomsbox-ecomm-27d08.appspot.com', 58 | ); 59 | 60 | static const FirebaseOptions ios = FirebaseOptions( 61 | apiKey: 'AIzaSyCSPKk73Y0132pOD5Ps97JvsSi67McZjY8', 62 | appId: '1:531689096987:ios:5c228e49133f23f3fff5be', 63 | messagingSenderId: '531689096987', 64 | projectId: 'atomsbox-ecomm-27d08', 65 | storageBucket: 'atomsbox-ecomm-27d08.appspot.com', 66 | iosBundleId: 'com.example.ecommerceWithFlutterFirebaseAndStripe', 67 | ); 68 | } 69 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:db_client/db_client.dart'; 2 | import 'package:firebase_core/firebase_core.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_stripe/flutter_stripe.dart'; 5 | import 'package:payment_client/payment_client.dart'; 6 | 7 | import 'firebase_options.dart'; 8 | import 'models/cart.dart'; 9 | import 'repositories/cart_repository.dart'; 10 | import 'repositories/category_repository.dart'; 11 | import 'repositories/product_repository.dart'; 12 | import 'screens/cart_screen.dart'; 13 | import 'screens/catalog_screen.dart'; 14 | import 'screens/category_screen.dart'; 15 | import 'screens/checkout_screen.dart'; 16 | 17 | final dbClient = DbClient(); 18 | final paymentClient = PaymentClient(); 19 | final categoryRepository = CategoryRepository(dbClient: dbClient); 20 | final productRepository = ProductRepository(dbClient: dbClient); 21 | const cartRepository = CartRepository(); 22 | 23 | const userId = 'user_1234'; 24 | var cart = const Cart( 25 | userId: userId, 26 | cartItems: [], 27 | ); 28 | 29 | Future main() async { 30 | WidgetsFlutterBinding.ensureInitialized(); 31 | await Firebase.initializeApp( 32 | options: DefaultFirebaseOptions.currentPlatform, 33 | ); 34 | 35 | // TODO: Add your Stripe publishable key here 36 | Stripe.publishableKey = 37 | 'pk_test_51L7cFkBAloH97gpnJnFBulAdxQ5IcE3C2LXUAVAQSe9c0iFh96N3EwndUU4Qdh7D2i20NnlMxevzWYN2iasrRcwJ00Ipz5b6sL'; 38 | await Stripe.instance.applySettings(); 39 | runApp(const MyApp()); 40 | } 41 | 42 | class MyApp extends StatelessWidget { 43 | const MyApp({super.key}); 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | return MaterialApp( 48 | title: 'Flutter Demo', 49 | theme: ThemeData( 50 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), 51 | useMaterial3: true, 52 | ), 53 | home: const CategoriesScreen(), 54 | onGenerateRoute: (settings) { 55 | if (settings.name == '/categories') { 56 | return MaterialPageRoute( 57 | builder: (context) => const CategoriesScreen(), 58 | ); 59 | } 60 | if (settings.name == '/cart') { 61 | return MaterialPageRoute( 62 | builder: (context) => const CartScreen(), 63 | ); 64 | } 65 | if (settings.name == '/checkout') { 66 | return MaterialPageRoute( 67 | builder: (context) => const CheckoutScreen(), 68 | ); 69 | } 70 | if (settings.name == '/catalog') { 71 | return MaterialPageRoute( 72 | builder: (context) => CatalogScreen( 73 | category: settings.arguments as String, 74 | ), 75 | ); 76 | } else { 77 | return MaterialPageRoute( 78 | builder: (context) => const CategoriesScreen(), 79 | ); 80 | } 81 | }, 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /lib/models/cart.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | 3 | import 'cart_item.dart'; 4 | 5 | class Cart extends Equatable { 6 | final String userId; 7 | final List cartItems; 8 | 9 | const Cart({ 10 | required this.userId, 11 | required this.cartItems, 12 | }); 13 | 14 | Cart copyWith({ 15 | String? userId, 16 | List? cartItems, 17 | }) { 18 | return Cart( 19 | userId: userId ?? this.userId, 20 | cartItems: cartItems ?? this.cartItems, 21 | ); 22 | } 23 | 24 | int get totalQuantity => 25 | cartItems.fold(0, (total, item) => total + item.quantity); 26 | 27 | double get totalPrice => 28 | cartItems.fold(0, (total, item) => total + item.subtotal); 29 | 30 | Map toJson() => { 31 | 'userId': userId, 32 | 'cartItems': cartItems.map((item) => item.toJson()).toList(), 33 | }; 34 | 35 | @override 36 | List get props => [userId, cartItems]; 37 | } 38 | -------------------------------------------------------------------------------- /lib/models/cart_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'product.dart'; 3 | 4 | class CartItem extends Equatable { 5 | final String id; 6 | final Product product; 7 | final int quantity; 8 | 9 | const CartItem({ 10 | required this.id, 11 | required this.product, 12 | required this.quantity, 13 | }); 14 | 15 | double get subtotal => product.price * quantity; 16 | 17 | CartItem copyWith({ 18 | String? id, 19 | Product? product, 20 | int? quantity, 21 | }) { 22 | return CartItem( 23 | id: id ?? this.id, 24 | product: product ?? this.product, 25 | quantity: quantity ?? this.quantity, 26 | ); 27 | } 28 | 29 | Map toJson() { 30 | return { 31 | 'id': id, 32 | 'product': product.toJson(), 33 | 'quantity': quantity, 34 | }; 35 | } 36 | 37 | @override 38 | List get props => [id, product, quantity]; 39 | } 40 | -------------------------------------------------------------------------------- /lib/models/category.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | 3 | class Category extends Equatable { 4 | final String id; 5 | final String name; 6 | final String? description; 7 | final String imageUrl; 8 | 9 | const Category({ 10 | required this.id, 11 | required this.name, 12 | this.description, 13 | required this.imageUrl, 14 | }); 15 | 16 | factory Category.fromJson( 17 | Map json, { 18 | String? id, 19 | }) { 20 | return Category( 21 | id: id ?? json['id'] ?? '', 22 | name: json['name'] ?? '', 23 | description: json['description'] ?? '', 24 | imageUrl: 25 | json['imageUrl'] ?? 'https://source.unsplash.com/random/?fashion', 26 | ); 27 | } 28 | 29 | @override 30 | List get props => [id, name, description, imageUrl]; 31 | 32 | // static const categories = [ 33 | // Category( 34 | // id: '1', 35 | // name: 'Sportswear', 36 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 37 | // Category( 38 | // id: '2', 39 | // name: 'Cycling', 40 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 41 | // Category( 42 | // id: '3', 43 | // name: 'Footwear', 44 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 45 | // Category( 46 | // id: '4', 47 | // name: 'Accessories', 48 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 49 | // Category( 50 | // id: '5', 51 | // name: 'Watersports', 52 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 53 | // Category( 54 | // id: '6', 55 | // name: 'Camping', 56 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 57 | // Category( 58 | // id: '7', 59 | // name: 'Indoor', 60 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 61 | // Category( 62 | // id: '8', 63 | // name: 'Golf', 64 | // imageUrl: 'https://source.unsplash.com/random/?fashion'), 65 | // ]; 66 | } 67 | -------------------------------------------------------------------------------- /lib/models/product.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | 3 | class Product extends Equatable { 4 | final String id; 5 | final String name; 6 | final String? description; 7 | final double price; 8 | final String imageUrl; 9 | final String category; 10 | final int stock; 11 | 12 | const Product({ 13 | required this.id, 14 | required this.name, 15 | this.description, 16 | required this.price, 17 | required this.imageUrl, 18 | required this.category, 19 | required this.stock, 20 | }); 21 | 22 | @override 23 | List get props => [ 24 | id, 25 | name, 26 | description, 27 | price, 28 | imageUrl, 29 | category, 30 | stock, 31 | ]; 32 | 33 | factory Product.fromJson(Map json, {String? id}) { 34 | return Product( 35 | id: id ?? json['id'] ?? '', 36 | name: json['name'] ?? '', 37 | description: json['description'] ?? '', 38 | price: (json['price'] as num?)?.toDouble() ?? 0.0, 39 | imageUrl: 40 | json['imageUrl'] ?? 'https://source.unsplash.com/random/?fashion', 41 | category: json['category'] ?? '', 42 | stock: json['stock'] as int? ?? 0, 43 | ); 44 | } 45 | 46 | Map toJson() { 47 | return { 48 | 'id': id, 49 | 'name': name, 50 | 'description': description, 51 | 'price': price, 52 | 'imageUrl': imageUrl, 53 | 'category': category, 54 | 'stock': stock, 55 | }; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /lib/repositories/cart_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:uuid/uuid.dart'; 2 | 3 | import '../main.dart'; 4 | import '../models/cart_item.dart'; 5 | import '../models/product.dart'; 6 | 7 | class CartRepository { 8 | const CartRepository(); 9 | 10 | void addProductToCart(Product product, int quantity) { 11 | var existingCartItem = cart.cartItems 12 | .where((item) => item.product.id == product.id) 13 | .firstOrNull; 14 | 15 | if (existingCartItem != null) { 16 | // Modify the quantity 17 | final initialQuantity = existingCartItem.quantity; 18 | 19 | cart = cart.copyWith( 20 | cartItems: List.from(cart.cartItems) 21 | ..remove(existingCartItem) 22 | ..add( 23 | existingCartItem.copyWith(quantity: initialQuantity + quantity), 24 | ), 25 | ); 26 | } else { 27 | // Add the product to cart 28 | cart = cart.copyWith( 29 | cartItems: List.from(cart.cartItems) 30 | ..add( 31 | CartItem( 32 | id: const Uuid().v4(), product: product, quantity: quantity), 33 | ), 34 | ); 35 | } 36 | } 37 | 38 | removeProductFromCart() {} 39 | 40 | clearCart() {} 41 | } 42 | -------------------------------------------------------------------------------- /lib/repositories/category_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:db_client/db_client.dart'; 2 | 3 | import '../models/category.dart'; 4 | 5 | class CategoryRepository { 6 | final DbClient dbClient; 7 | 8 | const CategoryRepository({required this.dbClient}); 9 | 10 | Future> fetchCategories() async { 11 | try { 12 | // final categoriesData = await dbClient.fetchAll(collection: 'categories'); 13 | final categoriesData = await dbClient.fetchAllFromBundle( 14 | collection: 'categories', 15 | // TODO: Add your bundle URL here 16 | bundleUrl: 17 | 'https://us-central1-atomsbox-ecomm-27d08.cloudfunctions.net/ext-firestore-bundle-builder-serve', 18 | ); 19 | return categoriesData 20 | .map((categoryData) => 21 | Category.fromJson(categoryData.data, id: categoryData.id)) 22 | .toList(); 23 | } catch (err) { 24 | throw Exception('Failed to fetch the categories: $err'); 25 | } 26 | } 27 | 28 | Future createCategories() async { 29 | try { 30 | for (var category in categories) { 31 | await dbClient.add(collection: 'categories', data: category); 32 | } 33 | } catch (err) { 34 | throw Exception('Failed to create the categories: $err'); 35 | } 36 | } 37 | } 38 | 39 | const categories = [ 40 | { 41 | "name": "Sportswear", 42 | "description": "This is the sportswear category.", 43 | "imageUrl": 44 | "https://images.unsplash.com/photo-1483721310020-03333e577078?q=80&w=3097&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 45 | }, 46 | { 47 | "name": "Cycling", 48 | "description": "This is the cycling category.", 49 | "imageUrl": 50 | "https://images.unsplash.com/photo-1541625602330-2277a4c46182?q=80&w=3570&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 51 | }, 52 | { 53 | "name": "Footwear", 54 | "description": "This is the footwear category.", 55 | "imageUrl": 56 | "https://images.unsplash.com/photo-1562183241-b937e95585b6?q=80&w=3505&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 57 | }, 58 | { 59 | "name": "Accessories", 60 | "description": "This is the accessories category.", 61 | "imageUrl": 62 | "https://images.unsplash.com/photo-1676312830459-f6f13dfdd899?q=80&w=3570&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 63 | }, 64 | { 65 | "name": "Watersports", 66 | "description": "This is the watersports category.", 67 | "imageUrl": 68 | "https://images.unsplash.com/photo-1576610616656-d3aa5d1f4534?q=80&w=3024&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 69 | }, 70 | { 71 | "name": "Camping", 72 | "description": "This is the camping category.", 73 | "imageUrl": 74 | "https://images.unsplash.com/photo-1504851149312-7a075b496cc7?q=80&w=3437&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 75 | }, 76 | { 77 | "name": "Indoor", 78 | "description": "This is the indoor category.", 79 | "imageUrl": 80 | "https://images.unsplash.com/photo-1559369064-c4d65141e408?q=80&w=3570&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 81 | }, 82 | { 83 | "name": "Golf", 84 | "description": "This is the golf category.", 85 | "imageUrl": 86 | "https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?q=80&w=3570&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", 87 | } 88 | ]; 89 | -------------------------------------------------------------------------------- /lib/repositories/product_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:db_client/db_client.dart'; 2 | 3 | import '../models/product.dart'; 4 | 5 | class ProductRepository { 6 | final DbClient dbClient; 7 | 8 | const ProductRepository({required this.dbClient}); 9 | 10 | Stream> streamProducts(String category) { 11 | final productsStream = dbClient.streamAllBy( 12 | collection: 'products', 13 | field: 'category', 14 | value: category, 15 | ); 16 | 17 | return productsStream.map((productsData) { 18 | return productsData 19 | .map((productData) => 20 | Product.fromJson(productData.data, id: productData.id)) 21 | .toList(); 22 | }); 23 | } 24 | 25 | Future createProducts() async { 26 | try { 27 | for (var product in products) { 28 | await dbClient.add(collection: 'products', data: product); 29 | } 30 | } catch (err) {} 31 | } 32 | } 33 | 34 | const products = [ 35 | { 36 | "name": "Performance Running T-Shirt", 37 | "description": 38 | "Breathable and quick-drying T-shirt, ideal for long-distance running. Available in multiple colors.", 39 | "price": 29.99, 40 | "imageUrl": "https://source.unsplash.com/random/?sport,clothes", 41 | "category": "Sportswear", 42 | "stock": 200 43 | }, 44 | { 45 | "name": "Men's Basketball Shorts", 46 | "description": 47 | "Comfortable and lightweight basketball shorts, designed for optimal movement and durability.", 48 | "price": 34.99, 49 | "imageUrl": "https://source.unsplash.com/random/?sport,clothes", 50 | "category": "Sportswear", 51 | "stock": 150 52 | }, 53 | { 54 | "name": "Cycling Jersey", 55 | "description": 56 | "High-performance cycling jersey with moisture-wicking fabric and rear pockets for essentials.", 57 | "price": 45.99, 58 | "imageUrl": "https://source.unsplash.com/random/?sport,clothes", 59 | "category": "Cycling", 60 | "stock": 100 61 | }, 62 | { 63 | "name": "Trail Running Shoes", 64 | "description": 65 | "Durable and supportive trail running shoes with enhanced grip for rough terrain.", 66 | "price": 89.99, 67 | "imageUrl": "https://source.unsplash.com/random/?sport,clothes", 68 | "category": "Footwear", 69 | "stock": 80 70 | }, 71 | { 72 | "name": "Fitness Training Tracksuit", 73 | "description": 74 | "Comfortable tracksuit for fitness training, made with flexible and sweat-wicking material.", 75 | "price": 59.99, 76 | "imageUrl": "https://source.unsplash.com/random/?sport,clothes", 77 | "category": "Sportswear", 78 | "stock": 120 79 | } 80 | ]; 81 | -------------------------------------------------------------------------------- /lib/screens/cart_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:ecommerce_with_flutter_firebase_and_stripe/models/cart_item.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import '../main.dart'; 5 | import '../widgets/cart_item_card.dart'; 6 | 7 | class CartScreen extends StatefulWidget { 8 | const CartScreen({super.key}); 9 | 10 | @override 11 | State createState() => _CartScreenState(); 12 | } 13 | 14 | class _CartScreenState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | final textTheme = Theme.of(context).textTheme; 18 | 19 | return Scaffold( 20 | appBar: AppBar( 21 | centerTitle: false, 22 | title: Text('Cart', style: textTheme.headlineSmall), 23 | ), 24 | body: SingleChildScrollView( 25 | child: Padding( 26 | padding: const EdgeInsets.all(16.0), 27 | child: Column( 28 | crossAxisAlignment: CrossAxisAlignment.start, 29 | children: [ 30 | Text( 31 | '${cart.totalQuantity} Items in the Cart', 32 | style: textTheme.headlineSmall, 33 | ), 34 | const SizedBox(height: 16.0), 35 | (cart.cartItems.isEmpty) 36 | ? const Text('No items in the cart') 37 | : ListView.builder( 38 | physics: const NeverScrollableScrollPhysics(), 39 | itemCount: cart.cartItems.length, 40 | shrinkWrap: true, 41 | itemBuilder: (context, index) { 42 | final cartItem = cart.cartItems[index]; 43 | return CartItemCard(cartItem: cartItem); 44 | }, 45 | ), 46 | ], 47 | ), 48 | ), 49 | ), 50 | bottomNavigationBar: BottomAppBar( 51 | child: Row( 52 | children: [ 53 | Expanded(child: Text('Total: \$${cart.totalPrice}')), 54 | const SizedBox(width: 16.0), 55 | Expanded( 56 | child: FilledButton( 57 | onPressed: () { 58 | Navigator.pushNamed(context, '/checkout'); 59 | }, 60 | child: const Text('Pay Now'), 61 | ), 62 | ) 63 | ], 64 | ), 65 | ), 66 | ); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/screens/catalog_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | import '../main.dart'; 6 | import '../models/product.dart'; 7 | 8 | class CatalogScreen extends StatefulWidget { 9 | const CatalogScreen({ 10 | super.key, 11 | required this.category, 12 | }); 13 | 14 | final String category; 15 | 16 | @override 17 | State createState() => _CatalogScreenState(); 18 | } 19 | 20 | class _CatalogScreenState extends State { 21 | StreamSubscription>? _productsSubscription; 22 | List _products = []; 23 | 24 | @override 25 | void initState() { 26 | _productsSubscription = 27 | productRepository.streamProducts(widget.category).listen((products) { 28 | setState(() { 29 | _products = products; 30 | }); 31 | }); 32 | super.initState(); 33 | } 34 | 35 | @override 36 | void dispose() { 37 | _productsSubscription?.cancel(); 38 | super.dispose(); 39 | } 40 | 41 | @override 42 | Widget build(BuildContext context) { 43 | return Scaffold( 44 | appBar: AppBar( 45 | title: Text( 46 | 'Catalog', 47 | style: Theme.of(context).textTheme.headlineSmall, 48 | ), 49 | actions: [ 50 | IconButton( 51 | onPressed: () { 52 | Navigator.pushNamed(context, '/cart'); 53 | }, 54 | icon: Badge( 55 | isLabelVisible: cart.cartItems.isNotEmpty, 56 | label: Text('${cart.totalQuantity}'), 57 | child: const Icon(Icons.shopping_cart), 58 | ), 59 | ) 60 | ], 61 | ), 62 | body: Center( 63 | child: ListView.builder( 64 | itemCount: _products.length, 65 | itemBuilder: (context, index) { 66 | final product = _products[index]; 67 | return ListTile( 68 | onTap: () { 69 | cartRepository.addProductToCart(product, 1); 70 | setState(() {}); 71 | }, 72 | leading: Image.network( 73 | product.imageUrl, 74 | width: 100, 75 | fit: BoxFit.cover, 76 | ), 77 | title: Text(product.name), 78 | subtitle: Text(product.category), 79 | trailing: Text('\$${product.price}'), 80 | ); 81 | }, 82 | ), 83 | )); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/screens/category_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:ecommerce_with_flutter_firebase_and_stripe/main.dart'; 4 | import 'package:ecommerce_with_flutter_firebase_and_stripe/models/category.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; 7 | 8 | class CategoriesScreen extends StatefulWidget { 9 | const CategoriesScreen({super.key}); 10 | 11 | @override 12 | State createState() => _CategoriesScreenState(); 13 | } 14 | 15 | class _CategoriesScreenState extends State { 16 | List _categories = []; 17 | List _extends = []; 18 | 19 | final rnd = Random(); 20 | 21 | @override 22 | void initState() { 23 | _loadCategory(); 24 | super.initState(); 25 | } 26 | 27 | void _loadCategory() async { 28 | final categories = await categoryRepository.fetchCategories(); 29 | 30 | final extents = List.generate( 31 | categories.length, 32 | (index) => rnd.nextInt(3) + 2, 33 | ); 34 | 35 | setState(() { 36 | _categories = categories; 37 | _extends = extents; 38 | }); 39 | } 40 | 41 | @override 42 | Widget build(BuildContext context) { 43 | return Scaffold( 44 | extendBodyBehindAppBar: true, 45 | appBar: AppBar( 46 | title: const Text('Categories'), 47 | ), 48 | body: MasonryGridView.count( 49 | padding: const EdgeInsets.only( 50 | top: 120, 51 | left: 4.0, 52 | right: 4.0, 53 | ), 54 | crossAxisCount: 3, 55 | mainAxisSpacing: 4.0, 56 | crossAxisSpacing: 4.0, 57 | itemCount: _categories.length, 58 | itemBuilder: (context, index) { 59 | final height = _extends[index] * 100; 60 | final category = _categories[index]; 61 | return InkWell( 62 | onTap: () { 63 | Navigator.pushNamed( 64 | context, 65 | '/catalog', 66 | arguments: category.name, 67 | ); 68 | }, 69 | child: Hero( 70 | tag: category.id, 71 | child: Container( 72 | decoration: BoxDecoration( 73 | borderRadius: BorderRadius.circular(8.0), 74 | image: DecorationImage( 75 | image: NetworkImage(category.imageUrl), 76 | fit: BoxFit.cover, 77 | ), 78 | ), 79 | height: height.toDouble(), 80 | ), 81 | ), 82 | ); 83 | }, 84 | ), 85 | ); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /lib/screens/checkout_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_stripe/flutter_stripe.dart'; 3 | 4 | import '../main.dart'; 5 | 6 | class CheckoutScreen extends StatefulWidget { 7 | const CheckoutScreen({super.key}); 8 | 9 | @override 10 | State createState() => _CheckoutScreenState(); 11 | } 12 | 13 | class _CheckoutScreenState extends State { 14 | CardFieldInputDetails? _card; 15 | bool loading = false; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | final textTheme = Theme.of(context).textTheme; 20 | 21 | return Scaffold( 22 | appBar: AppBar( 23 | centerTitle: false, 24 | title: Text('Checkout', style: textTheme.headlineSmall), 25 | ), 26 | body: SingleChildScrollView( 27 | child: Padding( 28 | padding: EdgeInsets.all(16.0), 29 | child: Column( 30 | children: [ 31 | Text( 32 | 'Insert your card details', 33 | style: textTheme.titleLarge!.copyWith( 34 | fontWeight: FontWeight.bold, 35 | ), 36 | ), 37 | const SizedBox(height: 16.0), 38 | CardFormField( 39 | onCardChanged: (card) { 40 | setState(() { 41 | _card = card; 42 | }); 43 | }, 44 | ), 45 | ], 46 | ), 47 | ), 48 | ), 49 | bottomNavigationBar: BottomAppBar( 50 | child: Row( 51 | children: [ 52 | Expanded(child: Text('Total: \$${cart.totalPrice}')), 53 | const SizedBox(width: 16.0), 54 | Expanded( 55 | child: FilledButton( 56 | onPressed: loading ? null : () => handlePayment(), 57 | child: const Text('Pay Now'), 58 | ), 59 | ) 60 | ], 61 | ), 62 | ), 63 | ); 64 | } 65 | 66 | handlePayment() async { 67 | if (_card?.complete != true) { 68 | ScaffoldMessenger.of(context).showSnackBar( 69 | const SnackBar( 70 | content: Text('Please fill in your card details'), 71 | ), 72 | ); 73 | return; 74 | } 75 | 76 | setState(() { 77 | loading = true; 78 | }); 79 | 80 | try { 81 | await processPayment(); 82 | } catch (err) { 83 | throw Exception(err.toString()); 84 | } finally { 85 | if (mounted) { 86 | setState(() { 87 | loading = false; 88 | }); 89 | } 90 | } 91 | } 92 | 93 | processPayment() async { 94 | final paymentMethod = await Stripe.instance.createPaymentMethod( 95 | params: const PaymentMethodParams.card( 96 | paymentMethodData: PaymentMethodData(), 97 | ), 98 | ); 99 | 100 | final response = await paymentClient.processPayment( 101 | paymentMethodId: paymentMethod.id, 102 | items: cart.cartItems.map((cartItem) => cartItem.toJson()).toList(), 103 | ); 104 | 105 | print(response); 106 | if (response['requiresAction'] == true && 107 | response['clientSecret'] != null) { 108 | // final paymentIntent = 109 | // await Stripe.instance.handleNextAction(response['clientSecret']); 110 | 111 | // print(paymentIntent); 112 | // if (paymentIntent.status == PaymentIntentsStatus.RequiresConfirmation) { 113 | // final response = await paymentClient.confirmPayment( 114 | // paymentIntentId: paymentIntent.id, 115 | // ); 116 | 117 | // print(response); 118 | // } 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/widgets/cart_item_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../main.dart'; 4 | import '../models/cart_item.dart'; 5 | 6 | class CartItemCard extends StatelessWidget { 7 | const CartItemCard({super.key, required this.cartItem}); 8 | 9 | final CartItem cartItem; 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | final textTheme = Theme.of(context).textTheme; 14 | return Card( 15 | child: Padding( 16 | padding: const EdgeInsets.all(8.0), 17 | child: Row( 18 | children: [ 19 | ClipRRect( 20 | borderRadius: BorderRadius.circular(16.0), 21 | child: Image.network( 22 | cartItem.product.imageUrl, 23 | height: 90, 24 | width: 90, 25 | fit: BoxFit.cover, 26 | ), 27 | ), 28 | const SizedBox(width: 16.0), 29 | Expanded( 30 | child: Column( 31 | crossAxisAlignment: CrossAxisAlignment.start, 32 | children: [ 33 | Text( 34 | cartItem.product.name, 35 | maxLines: 2, 36 | style: textTheme.bodyLarge!.copyWith( 37 | fontWeight: FontWeight.bold, 38 | ), 39 | ), 40 | const SizedBox(height: 8.0), 41 | Row( 42 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 43 | children: [ 44 | Text('\$${(cartItem.subtotal).toStringAsFixed(2)}'), 45 | Row( 46 | children: [ 47 | IconButton( 48 | visualDensity: VisualDensity.compact, 49 | onPressed: () { 50 | cartRepository.addProductToCart( 51 | cartItem.product, 1); 52 | }, 53 | icon: const Icon(Icons.add), 54 | ), 55 | Text('${cartItem.quantity}'), 56 | IconButton( 57 | visualDensity: VisualDensity.compact, 58 | onPressed: () { 59 | // cartRepository.removeProductFromCart( 60 | // cartItem.product, 61 | // 1, 62 | // ); 63 | }, 64 | icon: const Icon(Icons.remove), 65 | ), 66 | ], 67 | ), 68 | ], 69 | ), 70 | ], 71 | ), 72 | ), 73 | ], 74 | ), 75 | ), 76 | ); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /packages/db_client/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .packages 30 | build/ 31 | -------------------------------------------------------------------------------- /packages/db_client/.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: "d211f42860350d914a5ad8102f9ec32764dc6d06" 8 | channel: "stable" 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /packages/db_client/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /packages/db_client/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /packages/db_client/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /packages/db_client/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /packages/db_client/lib/db_client.dart: -------------------------------------------------------------------------------- 1 | library db_client; 2 | 3 | export 'src/db_client.dart'; 4 | export 'src/db_record.dart'; 5 | -------------------------------------------------------------------------------- /packages/db_client/lib/src/db_client.dart: -------------------------------------------------------------------------------- 1 | import 'dart:typed_data'; 2 | 3 | import 'package:http/http.dart' as http; 4 | import 'package:cloud_firestore/cloud_firestore.dart'; 5 | import 'package:cloud_firestore_platform_interface/cloud_firestore_platform_interface.dart'; 6 | import 'package:db_client/src/db_record.dart'; 7 | 8 | class DbClient { 9 | final FirebaseFirestore _firestore; 10 | 11 | DbClient({FirebaseFirestore? firestore}) 12 | : _firestore = firestore ?? FirebaseFirestore.instance; 13 | 14 | Future add({ 15 | required String collection, 16 | required Map data, 17 | }) async { 18 | try { 19 | final docRef = await _firestore.collection(collection).add(data); 20 | return docRef.id; 21 | } catch (err) { 22 | throw Exception('Error adding a document: $err'); 23 | } 24 | } 25 | 26 | Future> fetchAll({ 27 | required String collection, 28 | }) async { 29 | try { 30 | final colRef = _firestore.collection(collection); 31 | final documents = await colRef.get(); 32 | return documents.docs 33 | .map((doc) => DbRecord(id: doc.id, data: doc.data())) 34 | .toList(); 35 | } catch (err) { 36 | throw Exception('Error fetching documents: $err'); 37 | } 38 | } 39 | 40 | Future> fetchAllFromBundle({ 41 | required String collection, // bundleId 42 | required String bundleUrl, 43 | }) async { 44 | final response = await http.get(Uri.parse('$bundleUrl/$collection')); 45 | final buffer = Uint8List.fromList(response.body.codeUnits); 46 | final task = _firestore.loadBundle(buffer); 47 | 48 | task.stream.listen((taskStateProgress) { 49 | if (taskStateProgress.taskState == LoadBundleTaskState.success) { 50 | print('Bundle loaded successfully'); 51 | } 52 | }); 53 | 54 | await task.stream.last; 55 | 56 | final querySnap = _firestore.collection(collection).get( 57 | const GetOptions(source: Source.cache), 58 | ); 59 | 60 | return querySnap.then((querySnap) { 61 | return querySnap.docs 62 | .map((doc) => DbRecord(id: doc.id, data: doc.data())) 63 | .toList(); 64 | }); 65 | } 66 | 67 | Stream> streamAll({required String collection}) { 68 | final colRef = _firestore.collection(collection); 69 | return colRef.snapshots().map((snapshot) { 70 | return snapshot.docs 71 | .map((doc) => DbRecord(id: doc.id, data: doc.data())) 72 | .toList(); 73 | }); 74 | } 75 | 76 | Stream> streamAllBy({ 77 | required String collection, 78 | required String field, 79 | required String value, 80 | }) { 81 | final colRef = _firestore.collection(collection); 82 | final query = colRef.where(field, isEqualTo: value); 83 | return query.snapshots().map((snapshot) { 84 | return snapshot.docs 85 | .map((doc) => DbRecord(id: doc.id, data: doc.data())) 86 | .toList(); 87 | }); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /packages/db_client/lib/src/db_record.dart: -------------------------------------------------------------------------------- 1 | class DbRecord { 2 | final String id; 3 | final Map data; 4 | 5 | DbRecord({ 6 | required this.id, 7 | this.data = const {}, 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /packages/db_client/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: db_client 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | 6 | environment: 7 | sdk: '>=3.1.5 <4.0.0' 8 | flutter: ">=1.17.0" 9 | 10 | dependencies: 11 | cloud_firestore: ^4.13.6 12 | flutter: 13 | sdk: flutter 14 | http: ^1.1.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^2.0.0 20 | 21 | # For information on the generic Dart part of this file, see the 22 | # following page: https://dart.dev/tools/pub/pubspec 23 | 24 | # The following section is specific to Flutter packages. 25 | flutter: 26 | 27 | # To add assets to your package, add an assets section, like this: 28 | # assets: 29 | # - images/a_dot_burr.jpeg 30 | # - images/a_dot_ham.jpeg 31 | # 32 | # For details regarding assets in packages, see 33 | # https://flutter.dev/assets-and-images/#from-packages 34 | # 35 | # An image asset can refer to one or more resolution-specific "variants", see 36 | # https://flutter.dev/assets-and-images/#resolution-aware 37 | 38 | # To add custom fonts to your package, add a fonts section here, 39 | # in this "flutter" section. Each entry in this list should have a 40 | # "family" key with the font family name, and a "fonts" key with a 41 | # list giving the asset and other descriptors for the font. For 42 | # example: 43 | # fonts: 44 | # - family: Schyler 45 | # fonts: 46 | # - asset: fonts/Schyler-Regular.ttf 47 | # - asset: fonts/Schyler-Italic.ttf 48 | # style: italic 49 | # - family: Trajan Pro 50 | # fonts: 51 | # - asset: fonts/TrajanPro.ttf 52 | # - asset: fonts/TrajanPro_Bold.ttf 53 | # weight: 700 54 | # 55 | # For details regarding fonts in packages, see 56 | # https://flutter.dev/custom-fonts/#from-packages 57 | -------------------------------------------------------------------------------- /packages/payment_client/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .packages 30 | build/ 31 | -------------------------------------------------------------------------------- /packages/payment_client/.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: "d211f42860350d914a5ad8102f9ec32764dc6d06" 8 | channel: "stable" 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /packages/payment_client/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /packages/payment_client/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /packages/payment_client/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /packages/payment_client/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /packages/payment_client/lib/payment_client.dart: -------------------------------------------------------------------------------- 1 | library payment_client; 2 | 3 | export 'src/payment_client.dart'; 4 | -------------------------------------------------------------------------------- /packages/payment_client/lib/src/payment_client.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:http/http.dart' as http; 4 | 5 | // TODO: Add your Cloud Functions URLs here 6 | const ENDPOINT_METHOD_ID_URL = 7 | "https://stripe-pay-endpoint-method-id-yln66foica-uc.a.run.app"; 8 | 9 | const ENDPOINT_INTENT_ID_URL = 10 | "https://stripe-pay-endpoint-intent-id-yln66foica-uc.a.run.app"; 11 | 12 | class PaymentClient { 13 | final http.Client client; 14 | 15 | PaymentClient({http.Client? client}) : client = client ?? http.Client(); 16 | 17 | Future> processPayment({ 18 | required String paymentMethodId, 19 | required List> items, 20 | String currency = 'eur', 21 | bool useStripeSdk = true, 22 | }) async { 23 | final url = Uri.parse(ENDPOINT_METHOD_ID_URL); 24 | final response = await client.post( 25 | url, 26 | headers: { 27 | 'Content-Type': 'application/json', 28 | }, 29 | body: json.encode({ 30 | 'paymentMethodId': paymentMethodId, 31 | 'items': items, 32 | 'currency': currency, 33 | 'useStripeSdk': useStripeSdk, 34 | }), 35 | ); 36 | return json.decode(response.body); 37 | } 38 | 39 | Future> confirmPayment({ 40 | required String paymentIntentId, 41 | }) async { 42 | final url = Uri.parse(ENDPOINT_INTENT_ID_URL); 43 | 44 | final response = await http.post( 45 | url, 46 | headers: { 47 | 'Content-Type': 'application/json', 48 | }, 49 | body: json.encode({'paymentIntentId': paymentIntentId}), 50 | ); 51 | 52 | return json.decode(response.body); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /packages/payment_client/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: payment_client 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | 6 | environment: 7 | sdk: '>=3.1.5 <4.0.0' 8 | flutter: ">=1.17.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | http: ^1.1.0 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^2.0.0 19 | 20 | # For information on the generic Dart part of this file, see the 21 | # following page: https://dart.dev/tools/pub/pubspec 22 | 23 | # The following section is specific to Flutter packages. 24 | flutter: 25 | 26 | # To add assets to your package, add an assets section, like this: 27 | # assets: 28 | # - images/a_dot_burr.jpeg 29 | # - images/a_dot_ham.jpeg 30 | # 31 | # For details regarding assets in packages, see 32 | # https://flutter.dev/assets-and-images/#from-packages 33 | # 34 | # An image asset can refer to one or more resolution-specific "variants", see 35 | # https://flutter.dev/assets-and-images/#resolution-aware 36 | 37 | # To add custom fonts to your package, add a fonts section here, 38 | # in this "flutter" section. Each entry in this list should have a 39 | # "family" key with the font family name, and a "fonts" key with a 40 | # list giving the asset and other descriptors for the font. For 41 | # example: 42 | # fonts: 43 | # - family: Schyler 44 | # fonts: 45 | # - asset: fonts/Schyler-Regular.ttf 46 | # - asset: fonts/Schyler-Italic.ttf 47 | # style: italic 48 | # - family: Trajan Pro 49 | # fonts: 50 | # - asset: fonts/TrajanPro.ttf 51 | # - asset: fonts/TrajanPro_Bold.ttf 52 | # weight: 700 53 | # 54 | # For details regarding fonts in packages, see 55 | # https://flutter.dev/custom-fonts/#from-packages 56 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _flutterfire_internals: 5 | dependency: transitive 6 | description: 7 | name: _flutterfire_internals 8 | sha256: f5628cd9c92ed11083f425fd1f8f1bc60ecdda458c81d73b143aeda036c35fe7 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "1.3.16" 12 | async: 13 | dependency: transitive 14 | description: 15 | name: async 16 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.11.0" 20 | boolean_selector: 21 | dependency: transitive 22 | description: 23 | name: boolean_selector 24 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.1.1" 28 | characters: 29 | dependency: transitive 30 | description: 31 | name: characters 32 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.3.0" 36 | clock: 37 | dependency: transitive 38 | description: 39 | name: clock 40 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.1.1" 44 | cloud_firestore: 45 | dependency: "direct main" 46 | description: 47 | name: cloud_firestore 48 | sha256: cb978c7512624144f24f3d06e4312b2f4ac00b016f2fed62dc8f6d56b8585d78 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "4.13.6" 52 | cloud_firestore_platform_interface: 53 | dependency: transitive 54 | description: 55 | name: cloud_firestore_platform_interface 56 | sha256: fa177fa85f7665c76e1ebec252a5b280b4b47612b4d70fe286944814fff1d4f2 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "6.0.10" 60 | cloud_firestore_web: 61 | dependency: transitive 62 | description: 63 | name: cloud_firestore_web 64 | sha256: d0ebbf0927e627c0d7d2f3177d3b6f0050e5d811c08c2b646b0c746a2b502cb7 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "3.8.10" 68 | collection: 69 | dependency: transitive 70 | description: 71 | name: collection 72 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "1.18.0" 76 | crypto: 77 | dependency: transitive 78 | description: 79 | name: crypto 80 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "3.0.3" 84 | cupertino_icons: 85 | dependency: "direct main" 86 | description: 87 | name: cupertino_icons 88 | sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "1.0.6" 92 | db_client: 93 | dependency: "direct main" 94 | description: 95 | path: "packages/db_client" 96 | relative: true 97 | source: path 98 | version: "0.0.1" 99 | equatable: 100 | dependency: "direct main" 101 | description: 102 | name: equatable 103 | sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 104 | url: "https://pub.dev" 105 | source: hosted 106 | version: "2.0.5" 107 | fake_async: 108 | dependency: transitive 109 | description: 110 | name: fake_async 111 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 112 | url: "https://pub.dev" 113 | source: hosted 114 | version: "1.3.1" 115 | firebase_core: 116 | dependency: "direct main" 117 | description: 118 | name: firebase_core 119 | sha256: "96607c0e829a581c2a483c658f04e8b159964c3bae2730f73297070bc85d40bb" 120 | url: "https://pub.dev" 121 | source: hosted 122 | version: "2.24.2" 123 | firebase_core_platform_interface: 124 | dependency: transitive 125 | description: 126 | name: firebase_core_platform_interface 127 | sha256: c437ae5d17e6b5cc7981cf6fd458a5db4d12979905f9aafd1fea930428a9fe63 128 | url: "https://pub.dev" 129 | source: hosted 130 | version: "5.0.0" 131 | firebase_core_web: 132 | dependency: transitive 133 | description: 134 | name: firebase_core_web 135 | sha256: d585bdf3c656c3f7821ba1bd44da5f13365d22fcecaf5eb75c4295246aaa83c0 136 | url: "https://pub.dev" 137 | source: hosted 138 | version: "2.10.0" 139 | flutter: 140 | dependency: "direct main" 141 | description: flutter 142 | source: sdk 143 | version: "0.0.0" 144 | flutter_lints: 145 | dependency: "direct dev" 146 | description: 147 | name: flutter_lints 148 | sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 149 | url: "https://pub.dev" 150 | source: hosted 151 | version: "2.0.3" 152 | flutter_staggered_grid_view: 153 | dependency: "direct main" 154 | description: 155 | name: flutter_staggered_grid_view 156 | sha256: "19e7abb550c96fbfeb546b23f3ff356ee7c59a019a651f8f102a4ba9b7349395" 157 | url: "https://pub.dev" 158 | source: hosted 159 | version: "0.7.0" 160 | flutter_stripe: 161 | dependency: "direct main" 162 | description: 163 | name: flutter_stripe 164 | sha256: "3a88b6001e62d93588a8d11294027a8ad43a56ae94a65a98623edb368d5b2a06" 165 | url: "https://pub.dev" 166 | source: hosted 167 | version: "10.0.0" 168 | flutter_test: 169 | dependency: "direct dev" 170 | description: flutter 171 | source: sdk 172 | version: "0.0.0" 173 | flutter_web_plugins: 174 | dependency: transitive 175 | description: flutter 176 | source: sdk 177 | version: "0.0.0" 178 | freezed_annotation: 179 | dependency: transitive 180 | description: 181 | name: freezed_annotation 182 | sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d 183 | url: "https://pub.dev" 184 | source: hosted 185 | version: "2.4.1" 186 | http: 187 | dependency: transitive 188 | description: 189 | name: http 190 | sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" 191 | url: "https://pub.dev" 192 | source: hosted 193 | version: "1.1.0" 194 | http_parser: 195 | dependency: transitive 196 | description: 197 | name: http_parser 198 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 199 | url: "https://pub.dev" 200 | source: hosted 201 | version: "4.0.2" 202 | js: 203 | dependency: transitive 204 | description: 205 | name: js 206 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 207 | url: "https://pub.dev" 208 | source: hosted 209 | version: "0.6.7" 210 | json_annotation: 211 | dependency: transitive 212 | description: 213 | name: json_annotation 214 | sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 215 | url: "https://pub.dev" 216 | source: hosted 217 | version: "4.8.1" 218 | lints: 219 | dependency: transitive 220 | description: 221 | name: lints 222 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" 223 | url: "https://pub.dev" 224 | source: hosted 225 | version: "2.1.1" 226 | matcher: 227 | dependency: transitive 228 | description: 229 | name: matcher 230 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" 231 | url: "https://pub.dev" 232 | source: hosted 233 | version: "0.12.16" 234 | material_color_utilities: 235 | dependency: transitive 236 | description: 237 | name: material_color_utilities 238 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" 239 | url: "https://pub.dev" 240 | source: hosted 241 | version: "0.5.0" 242 | meta: 243 | dependency: transitive 244 | description: 245 | name: meta 246 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e 247 | url: "https://pub.dev" 248 | source: hosted 249 | version: "1.10.0" 250 | path: 251 | dependency: transitive 252 | description: 253 | name: path 254 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 255 | url: "https://pub.dev" 256 | source: hosted 257 | version: "1.8.3" 258 | payment_client: 259 | dependency: "direct main" 260 | description: 261 | path: "packages/payment_client" 262 | relative: true 263 | source: path 264 | version: "0.0.1" 265 | plugin_platform_interface: 266 | dependency: transitive 267 | description: 268 | name: plugin_platform_interface 269 | sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8 270 | url: "https://pub.dev" 271 | source: hosted 272 | version: "2.1.7" 273 | sky_engine: 274 | dependency: transitive 275 | description: flutter 276 | source: sdk 277 | version: "0.0.99" 278 | source_span: 279 | dependency: transitive 280 | description: 281 | name: source_span 282 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 283 | url: "https://pub.dev" 284 | source: hosted 285 | version: "1.10.0" 286 | sprintf: 287 | dependency: transitive 288 | description: 289 | name: sprintf 290 | sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" 291 | url: "https://pub.dev" 292 | source: hosted 293 | version: "7.0.0" 294 | stack_trace: 295 | dependency: transitive 296 | description: 297 | name: stack_trace 298 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 299 | url: "https://pub.dev" 300 | source: hosted 301 | version: "1.11.1" 302 | stream_channel: 303 | dependency: transitive 304 | description: 305 | name: stream_channel 306 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 307 | url: "https://pub.dev" 308 | source: hosted 309 | version: "2.1.2" 310 | string_scanner: 311 | dependency: transitive 312 | description: 313 | name: string_scanner 314 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 315 | url: "https://pub.dev" 316 | source: hosted 317 | version: "1.2.0" 318 | stripe_android: 319 | dependency: transitive 320 | description: 321 | name: stripe_android 322 | sha256: "5602ebef79e013dec95403abfd4a3bcb5428cce6b9b92675bd9624fafc3b197e" 323 | url: "https://pub.dev" 324 | source: hosted 325 | version: "10.0.0" 326 | stripe_ios: 327 | dependency: transitive 328 | description: 329 | name: stripe_ios 330 | sha256: dbacecab6c77148835a5c9875d74f6f4f7bfb867bfbe88a3ca089b8f0abc2fd2 331 | url: "https://pub.dev" 332 | source: hosted 333 | version: "10.0.0" 334 | stripe_platform_interface: 335 | dependency: transitive 336 | description: 337 | name: stripe_platform_interface 338 | sha256: "62b87be6e11c0bdbdb463cf491780da34e6c23b7eea4e9d458f748dc22a42ef9" 339 | url: "https://pub.dev" 340 | source: hosted 341 | version: "10.0.0" 342 | term_glyph: 343 | dependency: transitive 344 | description: 345 | name: term_glyph 346 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 347 | url: "https://pub.dev" 348 | source: hosted 349 | version: "1.2.1" 350 | test_api: 351 | dependency: transitive 352 | description: 353 | name: test_api 354 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" 355 | url: "https://pub.dev" 356 | source: hosted 357 | version: "0.6.1" 358 | typed_data: 359 | dependency: transitive 360 | description: 361 | name: typed_data 362 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 363 | url: "https://pub.dev" 364 | source: hosted 365 | version: "1.3.2" 366 | uuid: 367 | dependency: "direct main" 368 | description: 369 | name: uuid 370 | sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" 371 | url: "https://pub.dev" 372 | source: hosted 373 | version: "4.2.2" 374 | vector_math: 375 | dependency: transitive 376 | description: 377 | name: vector_math 378 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 379 | url: "https://pub.dev" 380 | source: hosted 381 | version: "2.1.4" 382 | web: 383 | dependency: transitive 384 | description: 385 | name: web 386 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 387 | url: "https://pub.dev" 388 | source: hosted 389 | version: "0.3.0" 390 | sdks: 391 | dart: ">=3.2.0-194.0.dev <4.0.0" 392 | flutter: ">=3.7.0" 393 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ecommerce_with_flutter_firebase_and_stripe 2 | description: A new Flutter project. 3 | publish_to: 'none' 4 | 5 | version: 1.0.0+1 6 | 7 | environment: 8 | sdk: '>=3.1.5 <4.0.0' 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | db_client: 14 | path: packages/db_client 15 | payment_client: 16 | path: packages/payment_client 17 | cupertino_icons: ^1.0.2 18 | flutter_staggered_grid_view: ^0.7.0 19 | equatable: ^2.0.5 20 | firebase_core: ^2.24.2 21 | cloud_firestore: ^4.13.6 22 | uuid: ^4.2.2 23 | flutter_stripe: ^10.0.0 24 | 25 | dev_dependencies: 26 | flutter_test: 27 | sdk: flutter 28 | 29 | 30 | 31 | 32 | 33 | 34 | flutter_lints: ^2.0.0 35 | 36 | 37 | flutter: 38 | 39 | 40 | 41 | 42 | uses-material-design: true 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /screenshots/ecommerce-cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-cart.png -------------------------------------------------------------------------------- /screenshots/ecommerce-catalog-screen-empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-catalog-screen-empty.png -------------------------------------------------------------------------------- /screenshots/ecommerce-catalog-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-catalog-screen.png -------------------------------------------------------------------------------- /screenshots/ecommerce-categories.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-categories.png -------------------------------------------------------------------------------- /screenshots/ecommerce-checkout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-checkout.png -------------------------------------------------------------------------------- /screenshots/ecommerce-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-home.png -------------------------------------------------------------------------------- /screenshots/ecommerce-login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-login.png -------------------------------------------------------------------------------- /screenshots/ecommerce-product-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-product-screen.png -------------------------------------------------------------------------------- /screenshots/ecommerce-register.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-register.png -------------------------------------------------------------------------------- /screenshots/ecommerce-user-account-address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-user-account-address.png -------------------------------------------------------------------------------- /screenshots/ecommerce-user-account-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-user-account-details.png -------------------------------------------------------------------------------- /screenshots/ecommerce-user-account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce-user-account.png -------------------------------------------------------------------------------- /screenshots/ecommerce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxonflutter/eCommerce-App-with-Flutter-Firebase-and-Stripe/ad32fa637b19d2df1d313d4a0f4032718eabd937/screenshots/ecommerce.png --------------------------------------------------------------------------------