├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ └── dart.yml
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── thealphamerc
│ │ │ │ └── flutter_ecommerce_app
│ │ │ │ └── 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
├── assets
├── jacket.png
├── shoe_thumb_1.png
├── shoe_thumb_2.png
├── shoe_thumb_3.png
├── shoe_thumb_4.png
├── shoe_thumb_5.png
├── shoe_tilt_2.png
├── shooe_tilt_1.png
├── show_1.png
├── small_tilt_shoe_1.png
├── small_tilt_shoe_2.png
├── small_tilt_shoe_3.png
├── user.png
└── watch.png
├── 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
├── lib
├── main.dart
└── src
│ ├── config
│ └── route.dart
│ ├── model
│ ├── category.dart
│ ├── data.dart
│ └── product.dart
│ ├── pages
│ ├── home_page.dart
│ ├── mainPage.dart
│ ├── product_detail.dart
│ └── shopping_cart_page.dart
│ ├── themes
│ ├── light_color.dart
│ └── theme.dart
│ └── widgets
│ ├── BottomNavigationBar
│ ├── bottom_curved_Painter.dart
│ ├── bottom_navigation_bar.dart
│ └── centered_elasticIn_curve.dart
│ ├── customRoute.dart
│ ├── extentions.dart
│ ├── product_card.dart
│ ├── product_icon.dart
│ └── title_text.dart
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── screenshot_1.jpg
├── screenshot_2.jpg
├── screenshot_3.jpg
├── screenshot_ios_1.png
├── screenshot_ios_2.png
└── screenshot_ios_3.png
└── test
└── widget_test.dart
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [thealphamerc]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: ['https://www.paypal.me/TheAlphamerc', 'https://www.buymeacoffee.com/thealphamerc']
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/workflows/dart.yml:
--------------------------------------------------------------------------------
1 | name: Dart CI
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build-and-test:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: actions/checkout@v1
10 | - uses: actions/setup-java@v1
11 | with:
12 | java-version: '12.x'
13 | - uses: subosito/flutter-action@v1
14 | with:
15 | channel: 'stable'
16 | # Get flutter packages
17 | - run: flutter pub get
18 | # Build :D
19 | - run: flutter build
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Exceptions to above rules.
37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
38 |
--------------------------------------------------------------------------------
/.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: 0b8abb4724aa590dd0f429683339b1e045a1594d
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 2-Clause License
2 |
3 | Copyright (c) 2020, Sonu Sharma
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | 2. Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## flutter_ecommerce_app
2 |
3 | E-Commerce app is a design implementaion of [E-commerce App](https://dribbble.com/shots/10446127-E-commerce-App-Exploration/attachments/2283107?mode=media) designed by [Imran](https://dribbble.com/Saif_Uddin_Imran)
4 |
5 | [](https://hits.seeyoufarm.com)  [](https://github.com/Thealphamerc/flutter_ecommerce_app)  [](https://github.com/login?return_to=%2FTheAlphamerc%flutter_ecommerce_app) 
6 |
7 |
8 |
9 | ## Download App 
10 |
11 |
12 |
13 | ## Android Screenshots
14 |
15 | HomePage | Product Detail Page | Cart Page
16 | :-------------------------:|:-------------------------:|:-------------------------:
17 | ||
18 |
19 | ## iOS Screenshots
20 | HomePage | Product Detail Page | Cart Page
21 | :-------------------------:|:-------------------------:|:-------------------------:
22 | ||
23 |
24 | ## Directory Structure
25 | ```
26 | lib
27 | │───main.dart
28 | └───src
29 | │───config
30 | | └──route.dart
31 | │───model
32 | │ │──category.dart
33 | | │──data.dart
34 | | └──product.dart
35 | │───pages
36 | | │──homePage.dart
37 | | │──mainPage.dart
38 | | │──product_detail.dart
39 | | └──shoping_cart_page.dart
40 | │───theme
41 | | │──light_color.dart
42 | | └──theme.dart
43 | └───widgets
44 | │──BottomNavigationBar
45 | | |──bootom_navigation_bar.dart
46 | | |──bottom_curved_Painter.dart
47 | | └──centered_elasticIn_curve.dart
48 | |──bottom_navigation_bar.dart
49 | | customRoute.dart
50 | | prduct_icon.dart
51 | │──product_card.dart
52 | └──title_text.dart
53 | ```
54 | ## Pull Requests
55 |
56 | I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request.
57 |
58 | ## Flutter projects
59 | Project Name |Stars
60 | :-------------------------|-------------------------
61 | [Twitter clone](https://github.com/TheAlphamerc/flutter_twitter_clone)| [](https://github.com/login?return_to=%2FTheAlphamerc%flutter_twitter_clone)
62 | |[Healthcare App](https://github.com/TheAlphamerc/flutter_healthcare_app) |[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_healthcare_app)
63 | |[Smart course](https://github.com/TheAlphamerc/flutter_smart_course) |[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_smart_course)
64 | |[Pokedex](https://github.com/TheAlphamerc/flutter_pokedex)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_pokedex)
65 | |[Authentication](https://github.com/TheAlphamerc/flutter_login_signup)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_login_signup)
66 | |[Wallet App](https://github.com/TheAlphamerc/flutter_wallet_app)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_wallet_app)
67 | |[News App](https://github.com/TheAlphamerc/flutter_news_app)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_news_app)
68 | |[Watch App](https://github.com/TheAlphamerc/flutter_SoftUI_watchApp)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_SoftUI_watchApp)
69 | |[Smart Home App](https://github.com/TheAlphamerc/flutter_smart_home_app)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_smart_home_app)
70 | |[Yatch Booking App](https://github.com/TheAlphamerc/flutter_yatch_booking)|[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_yatch_booking)
71 |
72 | ## Flutter plugins
73 | Plugin Name | Stars
74 | :-------------------------|-------------------------
75 | |[Empty widget](https://github.com/TheAlphamerc/empty_widget) |[](https://github.com/login?return_to=%2FTheAlphamerc%empty_widget)
76 | |[Add Thumbnail](https://github.com/TheAlphamerc/flutter_plugin_add_thumbnail) |[](https://github.com/login?return_to=%2FTheAlphamerc%flutter_plugin_add_thumbnail)
77 | |[Filter List](https://github.com/TheAlphamerc/flutter_plugin_filter_list)| [](https://github.com/login?return_to=%2FTheAlphamerc%flutter_plugin_filter_list)
78 |
79 | ## Created & Maintained By
80 |
81 | [Sonu Sharma](https://github.com/TheAlphamerc) ([Twitter](https://www.twitter.com/TheAlphamerc)) ([Youtube](https://www.youtube.com/user/sonusharma045sonu/)) ([Insta](https://www.instagram.com/_sonu_sharma__)) ([Dev.to](https://dev.to/thealphamerc))
82 | 
83 |
84 |
85 | > If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:
86 | >
87 | > * [PayPal](https://www.paypal.me/TheAlphamerc/)
88 |
89 | > You can also nominate me for Github Star developer program
90 | > https://stars.github.com/nominate
91 |
92 | ## Visitors Count
93 |
94 |
95 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.thealphamerc.flutter_ecommerce_app"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/thealphamerc/flutter_ecommerce_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.thealphamerc.flutter_ecommerce_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/jacket.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/jacket.png
--------------------------------------------------------------------------------
/assets/shoe_thumb_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_thumb_1.png
--------------------------------------------------------------------------------
/assets/shoe_thumb_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_thumb_2.png
--------------------------------------------------------------------------------
/assets/shoe_thumb_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_thumb_3.png
--------------------------------------------------------------------------------
/assets/shoe_thumb_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_thumb_4.png
--------------------------------------------------------------------------------
/assets/shoe_thumb_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_thumb_5.png
--------------------------------------------------------------------------------
/assets/shoe_tilt_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shoe_tilt_2.png
--------------------------------------------------------------------------------
/assets/shooe_tilt_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/shooe_tilt_1.png
--------------------------------------------------------------------------------
/assets/show_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/show_1.png
--------------------------------------------------------------------------------
/assets/small_tilt_shoe_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/small_tilt_shoe_1.png
--------------------------------------------------------------------------------
/assets/small_tilt_shoe_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/small_tilt_shoe_2.png
--------------------------------------------------------------------------------
/assets/small_tilt_shoe_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/small_tilt_shoe_3.png
--------------------------------------------------------------------------------
/assets/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/user.png
--------------------------------------------------------------------------------
/assets/watch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/assets/watch.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
34 | /build
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - path_provider (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | path_provider:
14 | :path: ".symlinks/plugins/path_provider/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
18 | path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
19 |
20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
21 |
22 | COCOAPODS: 1.10.1
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 25461F214FF5ABE6CA29FF13 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49EF3AF1AF70AA389463A3DA /* Pods_Runner.framework */; };
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 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 0FED9A9116C8E246175F290D /* 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 = ""; };
34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 49EF3AF1AF70AA389463A3DA /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
38 | 4F6EEC4D6C63566F60F050A0 /* 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 = ""; };
39 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
40 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
41 | 7AE9004C3808AA7BF768A7E3 /* 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 = ""; };
42 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
43 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
44 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
45 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
46 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 25461F214FF5ABE6CA29FF13 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 9740EEB11CF90186004384FC /* Flutter */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
68 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
69 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
70 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
71 | );
72 | name = Flutter;
73 | sourceTree = "";
74 | };
75 | 97C146E51CF9000F007C117D = {
76 | isa = PBXGroup;
77 | children = (
78 | 9740EEB11CF90186004384FC /* Flutter */,
79 | 97C146F01CF9000F007C117D /* Runner */,
80 | 97C146EF1CF9000F007C117D /* Products */,
81 | B4B5FC5EC6FE24CE65012B16 /* Pods */,
82 | F61362FBEDFEBE1FF92BD2E2 /* Frameworks */,
83 | );
84 | sourceTree = "";
85 | };
86 | 97C146EF1CF9000F007C117D /* Products */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146EE1CF9000F007C117D /* Runner.app */,
90 | );
91 | name = Products;
92 | sourceTree = "";
93 | };
94 | 97C146F01CF9000F007C117D /* Runner */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
98 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
99 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
100 | 97C147021CF9000F007C117D /* Info.plist */,
101 | 97C146F11CF9000F007C117D /* Supporting Files */,
102 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
103 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
104 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
105 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
106 | );
107 | path = Runner;
108 | sourceTree = "";
109 | };
110 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | );
114 | name = "Supporting Files";
115 | sourceTree = "";
116 | };
117 | B4B5FC5EC6FE24CE65012B16 /* Pods */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 4F6EEC4D6C63566F60F050A0 /* Pods-Runner.debug.xcconfig */,
121 | 0FED9A9116C8E246175F290D /* Pods-Runner.release.xcconfig */,
122 | 7AE9004C3808AA7BF768A7E3 /* Pods-Runner.profile.xcconfig */,
123 | );
124 | name = Pods;
125 | path = Pods;
126 | sourceTree = "";
127 | };
128 | F61362FBEDFEBE1FF92BD2E2 /* Frameworks */ = {
129 | isa = PBXGroup;
130 | children = (
131 | 49EF3AF1AF70AA389463A3DA /* Pods_Runner.framework */,
132 | );
133 | name = Frameworks;
134 | sourceTree = "";
135 | };
136 | /* End PBXGroup section */
137 |
138 | /* Begin PBXNativeTarget section */
139 | 97C146ED1CF9000F007C117D /* Runner */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
142 | buildPhases = (
143 | 5B5BDE3827B746DC88F7E129 /* [CP] Check Pods Manifest.lock */,
144 | 9740EEB61CF901F6004384FC /* Run Script */,
145 | 97C146EA1CF9000F007C117D /* Sources */,
146 | 97C146EB1CF9000F007C117D /* Frameworks */,
147 | 97C146EC1CF9000F007C117D /* Resources */,
148 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
150 | A9D06BD0DFC247BD7BC7AA24 /* [CP] Embed Pods Frameworks */,
151 | );
152 | buildRules = (
153 | );
154 | dependencies = (
155 | );
156 | name = Runner;
157 | productName = Runner;
158 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
159 | productType = "com.apple.product-type.application";
160 | };
161 | /* End PBXNativeTarget section */
162 |
163 | /* Begin PBXProject section */
164 | 97C146E61CF9000F007C117D /* Project object */ = {
165 | isa = PBXProject;
166 | attributes = {
167 | LastUpgradeCheck = 1020;
168 | ORGANIZATIONNAME = "The Chromium Authors";
169 | TargetAttributes = {
170 | 97C146ED1CF9000F007C117D = {
171 | CreatedOnToolsVersion = 7.3.1;
172 | LastSwiftMigration = 1100;
173 | };
174 | };
175 | };
176 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
177 | compatibilityVersion = "Xcode 3.2";
178 | developmentRegion = en;
179 | hasScannedForEncodings = 0;
180 | knownRegions = (
181 | en,
182 | Base,
183 | );
184 | mainGroup = 97C146E51CF9000F007C117D;
185 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
186 | projectDirPath = "";
187 | projectRoot = "";
188 | targets = (
189 | 97C146ED1CF9000F007C117D /* Runner */,
190 | );
191 | };
192 | /* End PBXProject section */
193 |
194 | /* Begin PBXResourcesBuildPhase section */
195 | 97C146EC1CF9000F007C117D /* Resources */ = {
196 | isa = PBXResourcesBuildPhase;
197 | buildActionMask = 2147483647;
198 | files = (
199 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
200 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
201 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
202 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | };
206 | /* End PBXResourcesBuildPhase section */
207 |
208 | /* Begin PBXShellScriptBuildPhase section */
209 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
210 | isa = PBXShellScriptBuildPhase;
211 | buildActionMask = 2147483647;
212 | files = (
213 | );
214 | inputPaths = (
215 | );
216 | name = "Thin Binary";
217 | outputPaths = (
218 | );
219 | runOnlyForDeploymentPostprocessing = 0;
220 | shellPath = /bin/sh;
221 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
222 | };
223 | 5B5BDE3827B746DC88F7E129 /* [CP] Check Pods Manifest.lock */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputFileListPaths = (
229 | );
230 | inputPaths = (
231 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
232 | "${PODS_ROOT}/Manifest.lock",
233 | );
234 | name = "[CP] Check Pods Manifest.lock";
235 | outputFileListPaths = (
236 | );
237 | outputPaths = (
238 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | shellPath = /bin/sh;
242 | 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";
243 | showEnvVarsInLog = 0;
244 | };
245 | 9740EEB61CF901F6004384FC /* Run Script */ = {
246 | isa = PBXShellScriptBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | );
250 | inputPaths = (
251 | );
252 | name = "Run Script";
253 | outputPaths = (
254 | );
255 | runOnlyForDeploymentPostprocessing = 0;
256 | shellPath = /bin/sh;
257 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
258 | };
259 | A9D06BD0DFC247BD7BC7AA24 /* [CP] Embed Pods Frameworks */ = {
260 | isa = PBXShellScriptBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | );
264 | inputPaths = (
265 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
266 | "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
267 | );
268 | name = "[CP] Embed Pods Frameworks";
269 | outputPaths = (
270 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
271 | );
272 | runOnlyForDeploymentPostprocessing = 0;
273 | shellPath = /bin/sh;
274 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
275 | showEnvVarsInLog = 0;
276 | };
277 | /* End PBXShellScriptBuildPhase section */
278 |
279 | /* Begin PBXSourcesBuildPhase section */
280 | 97C146EA1CF9000F007C117D /* Sources */ = {
281 | isa = PBXSourcesBuildPhase;
282 | buildActionMask = 2147483647;
283 | files = (
284 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
285 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
286 | );
287 | runOnlyForDeploymentPostprocessing = 0;
288 | };
289 | /* End PBXSourcesBuildPhase section */
290 |
291 | /* Begin PBXVariantGroup section */
292 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
293 | isa = PBXVariantGroup;
294 | children = (
295 | 97C146FB1CF9000F007C117D /* Base */,
296 | );
297 | name = Main.storyboard;
298 | sourceTree = "";
299 | };
300 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
301 | isa = PBXVariantGroup;
302 | children = (
303 | 97C147001CF9000F007C117D /* Base */,
304 | );
305 | name = LaunchScreen.storyboard;
306 | sourceTree = "";
307 | };
308 | /* End PBXVariantGroup section */
309 |
310 | /* Begin XCBuildConfiguration section */
311 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
312 | isa = XCBuildConfiguration;
313 | buildSettings = {
314 | ALWAYS_SEARCH_USER_PATHS = NO;
315 | CLANG_ANALYZER_NONNULL = YES;
316 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
317 | CLANG_CXX_LIBRARY = "libc++";
318 | CLANG_ENABLE_MODULES = YES;
319 | CLANG_ENABLE_OBJC_ARC = YES;
320 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
321 | CLANG_WARN_BOOL_CONVERSION = YES;
322 | CLANG_WARN_COMMA = YES;
323 | CLANG_WARN_CONSTANT_CONVERSION = YES;
324 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
325 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
326 | CLANG_WARN_EMPTY_BODY = YES;
327 | CLANG_WARN_ENUM_CONVERSION = YES;
328 | CLANG_WARN_INFINITE_RECURSION = YES;
329 | CLANG_WARN_INT_CONVERSION = YES;
330 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
331 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
332 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
333 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
334 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
335 | CLANG_WARN_STRICT_PROTOTYPES = YES;
336 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
337 | CLANG_WARN_UNREACHABLE_CODE = YES;
338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
339 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
340 | COPY_PHASE_STRIP = NO;
341 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
342 | ENABLE_NS_ASSERTIONS = NO;
343 | ENABLE_STRICT_OBJC_MSGSEND = YES;
344 | GCC_C_LANGUAGE_STANDARD = gnu99;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
353 | MTL_ENABLE_DEBUG_INFO = NO;
354 | SDKROOT = iphoneos;
355 | SUPPORTED_PLATFORMS = iphoneos;
356 | TARGETED_DEVICE_FAMILY = "1,2";
357 | VALIDATE_PRODUCT = YES;
358 | };
359 | name = Profile;
360 | };
361 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
362 | isa = XCBuildConfiguration;
363 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
364 | buildSettings = {
365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
366 | CLANG_ENABLE_MODULES = YES;
367 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
368 | ENABLE_BITCODE = NO;
369 | FRAMEWORK_SEARCH_PATHS = (
370 | "$(inherited)",
371 | "$(PROJECT_DIR)/Flutter",
372 | );
373 | INFOPLIST_FILE = Runner/Info.plist;
374 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
375 | LIBRARY_SEARCH_PATHS = (
376 | "$(inherited)",
377 | "$(PROJECT_DIR)/Flutter",
378 | );
379 | PRODUCT_BUNDLE_IDENTIFIER = com.thealphamerc.flutterEcommerceApp;
380 | PRODUCT_NAME = "$(TARGET_NAME)";
381 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
382 | SWIFT_VERSION = 5.0;
383 | VERSIONING_SYSTEM = "apple-generic";
384 | };
385 | name = Profile;
386 | };
387 | 97C147031CF9000F007C117D /* Debug */ = {
388 | isa = XCBuildConfiguration;
389 | buildSettings = {
390 | ALWAYS_SEARCH_USER_PATHS = NO;
391 | CLANG_ANALYZER_NONNULL = YES;
392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
393 | CLANG_CXX_LIBRARY = "libc++";
394 | CLANG_ENABLE_MODULES = YES;
395 | CLANG_ENABLE_OBJC_ARC = YES;
396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
397 | CLANG_WARN_BOOL_CONVERSION = YES;
398 | CLANG_WARN_COMMA = YES;
399 | CLANG_WARN_CONSTANT_CONVERSION = YES;
400 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
401 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
402 | CLANG_WARN_EMPTY_BODY = YES;
403 | CLANG_WARN_ENUM_CONVERSION = YES;
404 | CLANG_WARN_INFINITE_RECURSION = YES;
405 | CLANG_WARN_INT_CONVERSION = YES;
406 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
407 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
408 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
409 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
410 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
411 | CLANG_WARN_STRICT_PROTOTYPES = YES;
412 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
413 | CLANG_WARN_UNREACHABLE_CODE = YES;
414 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
415 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
416 | COPY_PHASE_STRIP = NO;
417 | DEBUG_INFORMATION_FORMAT = dwarf;
418 | ENABLE_STRICT_OBJC_MSGSEND = YES;
419 | ENABLE_TESTABILITY = YES;
420 | GCC_C_LANGUAGE_STANDARD = gnu99;
421 | GCC_DYNAMIC_NO_PIC = NO;
422 | GCC_NO_COMMON_BLOCKS = YES;
423 | GCC_OPTIMIZATION_LEVEL = 0;
424 | GCC_PREPROCESSOR_DEFINITIONS = (
425 | "DEBUG=1",
426 | "$(inherited)",
427 | );
428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
430 | GCC_WARN_UNDECLARED_SELECTOR = YES;
431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
432 | GCC_WARN_UNUSED_FUNCTION = YES;
433 | GCC_WARN_UNUSED_VARIABLE = YES;
434 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
435 | MTL_ENABLE_DEBUG_INFO = YES;
436 | ONLY_ACTIVE_ARCH = YES;
437 | SDKROOT = iphoneos;
438 | TARGETED_DEVICE_FAMILY = "1,2";
439 | };
440 | name = Debug;
441 | };
442 | 97C147041CF9000F007C117D /* Release */ = {
443 | isa = XCBuildConfiguration;
444 | buildSettings = {
445 | ALWAYS_SEARCH_USER_PATHS = NO;
446 | CLANG_ANALYZER_NONNULL = YES;
447 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
448 | CLANG_CXX_LIBRARY = "libc++";
449 | CLANG_ENABLE_MODULES = YES;
450 | CLANG_ENABLE_OBJC_ARC = YES;
451 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
452 | CLANG_WARN_BOOL_CONVERSION = YES;
453 | CLANG_WARN_COMMA = YES;
454 | CLANG_WARN_CONSTANT_CONVERSION = YES;
455 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
456 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
457 | CLANG_WARN_EMPTY_BODY = YES;
458 | CLANG_WARN_ENUM_CONVERSION = YES;
459 | CLANG_WARN_INFINITE_RECURSION = YES;
460 | CLANG_WARN_INT_CONVERSION = YES;
461 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
462 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
463 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
464 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
465 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
466 | CLANG_WARN_STRICT_PROTOTYPES = YES;
467 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
468 | CLANG_WARN_UNREACHABLE_CODE = YES;
469 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
470 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
471 | COPY_PHASE_STRIP = NO;
472 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
473 | ENABLE_NS_ASSERTIONS = NO;
474 | ENABLE_STRICT_OBJC_MSGSEND = YES;
475 | GCC_C_LANGUAGE_STANDARD = gnu99;
476 | GCC_NO_COMMON_BLOCKS = YES;
477 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
478 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
479 | GCC_WARN_UNDECLARED_SELECTOR = YES;
480 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
481 | GCC_WARN_UNUSED_FUNCTION = YES;
482 | GCC_WARN_UNUSED_VARIABLE = YES;
483 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
484 | MTL_ENABLE_DEBUG_INFO = NO;
485 | SDKROOT = iphoneos;
486 | SUPPORTED_PLATFORMS = iphoneos;
487 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
488 | TARGETED_DEVICE_FAMILY = "1,2";
489 | VALIDATE_PRODUCT = YES;
490 | };
491 | name = Release;
492 | };
493 | 97C147061CF9000F007C117D /* Debug */ = {
494 | isa = XCBuildConfiguration;
495 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
496 | buildSettings = {
497 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
498 | CLANG_ENABLE_MODULES = YES;
499 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
500 | ENABLE_BITCODE = NO;
501 | FRAMEWORK_SEARCH_PATHS = (
502 | "$(inherited)",
503 | "$(PROJECT_DIR)/Flutter",
504 | );
505 | INFOPLIST_FILE = Runner/Info.plist;
506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
507 | LIBRARY_SEARCH_PATHS = (
508 | "$(inherited)",
509 | "$(PROJECT_DIR)/Flutter",
510 | );
511 | PRODUCT_BUNDLE_IDENTIFIER = com.thealphamerc.flutterEcommerceApp;
512 | PRODUCT_NAME = "$(TARGET_NAME)";
513 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
514 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
515 | SWIFT_VERSION = 5.0;
516 | VERSIONING_SYSTEM = "apple-generic";
517 | };
518 | name = Debug;
519 | };
520 | 97C147071CF9000F007C117D /* Release */ = {
521 | isa = XCBuildConfiguration;
522 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
523 | buildSettings = {
524 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
525 | CLANG_ENABLE_MODULES = YES;
526 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
527 | ENABLE_BITCODE = NO;
528 | FRAMEWORK_SEARCH_PATHS = (
529 | "$(inherited)",
530 | "$(PROJECT_DIR)/Flutter",
531 | );
532 | INFOPLIST_FILE = Runner/Info.plist;
533 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
534 | LIBRARY_SEARCH_PATHS = (
535 | "$(inherited)",
536 | "$(PROJECT_DIR)/Flutter",
537 | );
538 | PRODUCT_BUNDLE_IDENTIFIER = com.thealphamerc.flutterEcommerceApp;
539 | PRODUCT_NAME = "$(TARGET_NAME)";
540 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
541 | SWIFT_VERSION = 5.0;
542 | VERSIONING_SYSTEM = "apple-generic";
543 | };
544 | name = Release;
545 | };
546 | /* End XCBuildConfiguration section */
547 |
548 | /* Begin XCConfigurationList section */
549 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
550 | isa = XCConfigurationList;
551 | buildConfigurations = (
552 | 97C147031CF9000F007C117D /* Debug */,
553 | 97C147041CF9000F007C117D /* Release */,
554 | 249021D3217E4FDB00AE95B9 /* Profile */,
555 | );
556 | defaultConfigurationIsVisible = 0;
557 | defaultConfigurationName = Release;
558 | };
559 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
560 | isa = XCConfigurationList;
561 | buildConfigurations = (
562 | 97C147061CF9000F007C117D /* Debug */,
563 | 97C147071CF9000F007C117D /* Release */,
564 | 249021D4217E4FDB00AE95B9 /* Profile */,
565 | );
566 | defaultConfigurationIsVisible = 0;
567 | defaultConfigurationName = Release;
568 | };
569 | /* End XCConfigurationList section */
570 | };
571 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
572 | }
573 |
--------------------------------------------------------------------------------
/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 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/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 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_ecommerce_app
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/config/route.dart';
3 | import 'package:flutter_ecommerce_app/src/pages/mainPage.dart';
4 | import 'package:flutter_ecommerce_app/src/pages/product_detail.dart';
5 | import 'package:flutter_ecommerce_app/src/widgets/customRoute.dart';
6 | import 'package:google_fonts/google_fonts.dart';
7 |
8 | import 'src/themes/theme.dart';
9 |
10 | void main() => runApp(MyApp());
11 |
12 | class MyApp extends StatelessWidget {
13 | @override
14 | Widget build(BuildContext context) {
15 | return MaterialApp(
16 | title: 'E-Commerce ',
17 | theme: AppTheme.lightTheme.copyWith(
18 | textTheme: GoogleFonts.mulishTextTheme(
19 | Theme.of(context).textTheme,
20 | ),
21 | ),
22 | debugShowCheckedModeBanner: false,
23 | routes: Routes.getRoute(),
24 | onGenerateRoute: (RouteSettings settings) {
25 | if (settings.name.contains('detail')) {
26 | return CustomRoute(
27 | builder: (BuildContext context) => ProductDetailPage());
28 | } else {
29 | return CustomRoute(
30 | builder: (BuildContext context) => MainPage());
31 | }
32 | },
33 | initialRoute: "MainPage",
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/src/config/route.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/pages/mainPage.dart';
3 |
4 | class Routes {
5 | static Map getRoute() {
6 | return {
7 | '/': (_) => MainPage(),
8 | // '/detail': (_) => ProductDetailPage()
9 | };
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lib/src/model/category.dart:
--------------------------------------------------------------------------------
1 | class Category{
2 | int id ;
3 | String name ;
4 | String image ;
5 | bool isSelected ;
6 | Category({this.id,this.name,this.isSelected = false,this.image});
7 | }
--------------------------------------------------------------------------------
/lib/src/model/data.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_ecommerce_app/src/model/category.dart';
2 | import 'package:flutter_ecommerce_app/src/model/product.dart';
3 |
4 | class AppData {
5 | static List productList = [
6 | Product(
7 | id: 1,
8 | name: 'Nike Air Max 200',
9 | price: 240.00,
10 | isSelected: true,
11 | isliked: false,
12 | image: 'assets/shooe_tilt_1.png',
13 | category: "Trending Now"),
14 | Product(
15 | id: 2,
16 | name: 'Nike Air Max 97',
17 | price: 220.00,
18 | isliked: false,
19 | image: 'assets/shoe_tilt_2.png',
20 | category: "Trending Now"),
21 | ];
22 | static List cartList = [
23 | Product(
24 | id: 1,
25 | name: 'Nike Air Max 200',
26 | price: 240.00,
27 | isSelected: true,
28 | isliked: false,
29 | image: 'assets/small_tilt_shoe_1.png',
30 | category: "Trending Now"),
31 | Product(
32 | id: 2,
33 | name: 'Nike Air Max 97',
34 | price: 190.00,
35 | isliked: false,
36 | image: 'assets/small_tilt_shoe_2.png',
37 | category: "Trending Now"),
38 | Product(
39 | id: 1,
40 | name: 'Nike Air Max 92607',
41 | price: 220.00,
42 | isliked: false,
43 | image: 'assets/small_tilt_shoe_3.png',
44 | category: "Trending Now"),
45 | Product(
46 | id: 2,
47 | name: 'Nike Air Max 200',
48 | price: 240.00,
49 | isSelected: true,
50 | isliked: false,
51 | image: 'assets/small_tilt_shoe_1.png',
52 | category: "Trending Now"),
53 | // Product(
54 | // id:1,
55 | // name: 'Nike Air Max 97',
56 | // price: 190.00,
57 | // isliked: false,
58 | // image: 'assets/small_tilt_shoe_2.png',
59 | // category: "Trending Now"),
60 | ];
61 | static List categoryList = [
62 | Category(),
63 | Category(
64 | id: 1,
65 | name: "Sneakers",
66 | image: 'assets/shoe_thumb_2.png',
67 | isSelected: true),
68 | Category(id: 2, name: "Jacket", image: 'assets/jacket.png'),
69 | Category(id: 3, name: "Watch", image: 'assets/watch.png'),
70 | Category(id: 4, name: "Watch", image: 'assets/watch.png'),
71 | ];
72 | static List showThumbnailList = [
73 | "assets/shoe_thumb_5.png",
74 | "assets/shoe_thumb_1.png",
75 | "assets/shoe_thumb_4.png",
76 | "assets/shoe_thumb_3.png",
77 | ];
78 | static String description =
79 | "Clean lines, versatile and timeless—the people shoe returns with the Nike Air Max 90. Featuring the same iconic Waffle sole, stitched overlays and classic TPU accents you come to love, it lets you walk among the pantheon of Air. ßNothing as fly, nothing as comfortable, nothing as proven. The Nike Air Max 90 stays true to its OG running roots with the iconic Waffle sole, stitched overlays and classic TPU details. Classic colours celebrate your fresh look while Max Air cushioning adds comfort to the journey.";
80 | }
81 |
--------------------------------------------------------------------------------
/lib/src/model/product.dart:
--------------------------------------------------------------------------------
1 | class Product{
2 | int id;
3 | String name ;
4 | String category ;
5 | String image ;
6 | double price ;
7 | bool isliked ;
8 | bool isSelected ;
9 | Product({this.id,this.name, this.category, this.price, this.isliked,this.isSelected = false,this.image});
10 | }
--------------------------------------------------------------------------------
/lib/src/pages/home_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/gestures.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_ecommerce_app/src/model/data.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
5 | import 'package:flutter_ecommerce_app/src/themes/theme.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/product_card.dart';
7 | import 'package:flutter_ecommerce_app/src/widgets/product_icon.dart';
8 | import 'package:flutter_ecommerce_app/src/widgets/extentions.dart';
9 |
10 | class MyHomePage extends StatefulWidget {
11 | MyHomePage({Key key, this.title}) : super(key: key);
12 |
13 | final String title;
14 |
15 | @override
16 | _MyHomePageState createState() => _MyHomePageState();
17 | }
18 |
19 | class _MyHomePageState extends State {
20 | Widget _icon(IconData icon, {Color color = LightColor.iconColor}) {
21 | return Container(
22 | padding: EdgeInsets.all(10),
23 | decoration: BoxDecoration(
24 | borderRadius: BorderRadius.all(Radius.circular(13)),
25 | color: Theme.of(context).backgroundColor,
26 | boxShadow: AppTheme.shadow),
27 | child: Icon(
28 | icon,
29 | color: color,
30 | ),
31 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13)));
32 | }
33 |
34 | Widget _categoryWidget() {
35 | return Container(
36 | margin: EdgeInsets.symmetric(vertical: 10),
37 | width: AppTheme.fullWidth(context),
38 | height: 80,
39 | child: ListView(
40 | scrollDirection: Axis.horizontal,
41 | children: AppData.categoryList
42 | .map(
43 | (category) => ProductIcon(
44 | model: category,
45 | onSelected: (model) {
46 | setState(() {
47 | AppData.categoryList.forEach((item) {
48 | item.isSelected = false;
49 | });
50 | model.isSelected = true;
51 | });
52 | },
53 | ),
54 | )
55 | .toList(),
56 | ),
57 | );
58 | }
59 |
60 | Widget _productWidget() {
61 | return Container(
62 | margin: EdgeInsets.symmetric(vertical: 10),
63 | width: AppTheme.fullWidth(context),
64 | height: AppTheme.fullWidth(context) * .7,
65 | child: GridView(
66 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
67 | crossAxisCount: 1,
68 | childAspectRatio: 4 / 3,
69 | mainAxisSpacing: 30,
70 | crossAxisSpacing: 20),
71 | padding: EdgeInsets.only(left: 20),
72 | scrollDirection: Axis.horizontal,
73 | children: AppData.productList
74 | .map(
75 | (product) => ProductCard(
76 | product: product,
77 | onSelected: (model) {
78 | setState(() {
79 | AppData.productList.forEach((item) {
80 | item.isSelected = false;
81 | });
82 | model.isSelected = true;
83 | });
84 | },
85 | ),
86 | )
87 | .toList(),
88 | ),
89 | );
90 | }
91 |
92 | Widget _search() {
93 | return Container(
94 | margin: AppTheme.padding,
95 | child: Row(
96 | children: [
97 | Expanded(
98 | child: Container(
99 | height: 40,
100 | alignment: Alignment.center,
101 | decoration: BoxDecoration(
102 | color: LightColor.lightGrey.withAlpha(100),
103 | borderRadius: BorderRadius.all(Radius.circular(10))),
104 | child: TextField(
105 | decoration: InputDecoration(
106 | border: InputBorder.none,
107 | hintText: "Search Products",
108 | hintStyle: TextStyle(fontSize: 12),
109 | contentPadding:
110 | EdgeInsets.only(left: 10, right: 10, bottom: 0, top: 5),
111 | prefixIcon: Icon(Icons.search, color: Colors.black54)),
112 | ),
113 | ),
114 | ),
115 | SizedBox(width: 20),
116 | _icon(Icons.filter_list, color: Colors.black54)
117 | ],
118 | ),
119 | );
120 | }
121 |
122 | @override
123 | Widget build(BuildContext context) {
124 | return Container(
125 | height: MediaQuery.of(context).size.height - 210,
126 | child: SingleChildScrollView(
127 | physics: BouncingScrollPhysics(),
128 | dragStartBehavior: DragStartBehavior.down,
129 | child: Column(
130 | crossAxisAlignment: CrossAxisAlignment.start,
131 | mainAxisAlignment: MainAxisAlignment.start,
132 | children: [
133 | _search(),
134 | _categoryWidget(),
135 | _productWidget(),
136 | ],
137 | ),
138 | ),
139 | );
140 | }
141 | }
142 |
--------------------------------------------------------------------------------
/lib/src/pages/mainPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/pages/home_page.dart';
3 | import 'package:flutter_ecommerce_app/src/pages/shopping_cart_page.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
5 | import 'package:flutter_ecommerce_app/src/themes/theme.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/BottomNavigationBar/bottom_navigation_bar.dart';
7 | import 'package:flutter_ecommerce_app/src/widgets/title_text.dart';
8 | import 'package:flutter_ecommerce_app/src/widgets/extentions.dart';
9 |
10 | class MainPage extends StatefulWidget {
11 | MainPage({Key key, this.title}) : super(key: key);
12 |
13 | final String title;
14 |
15 | @override
16 | _MainPageState createState() => _MainPageState();
17 | }
18 |
19 | class _MainPageState extends State {
20 | bool isHomePageSelected = true;
21 | Widget _appBar() {
22 | return Container(
23 | padding: AppTheme.padding,
24 | child: Row(
25 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
26 | children: [
27 | RotatedBox(
28 | quarterTurns: 4,
29 | child: _icon(Icons.sort, color: Colors.black54),
30 | ),
31 | ClipRRect(
32 | borderRadius: BorderRadius.all(Radius.circular(13)),
33 | child: Container(
34 | decoration: BoxDecoration(
35 | color: Theme.of(context).backgroundColor,
36 | boxShadow: [
37 | BoxShadow(
38 | color: Color(0xfff8f8f8),
39 | blurRadius: 10,
40 | spreadRadius: 10),
41 | ],
42 | ),
43 | child: Image.asset("assets/user.png"),
44 | ),
45 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13)))
46 | ],
47 | ),
48 | );
49 | }
50 |
51 | Widget _icon(IconData icon, {Color color = LightColor.iconColor}) {
52 | return Container(
53 | padding: EdgeInsets.all(10),
54 | decoration: BoxDecoration(
55 | borderRadius: BorderRadius.all(Radius.circular(13)),
56 | color: Theme.of(context).backgroundColor,
57 | boxShadow: AppTheme.shadow),
58 | child: Icon(
59 | icon,
60 | color: color,
61 | ),
62 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13)));
63 | }
64 |
65 | Widget _title() {
66 | return Container(
67 | margin: AppTheme.padding,
68 | child: Row(
69 | crossAxisAlignment: CrossAxisAlignment.center,
70 | children: [
71 | Column(
72 | crossAxisAlignment: CrossAxisAlignment.start,
73 | children: [
74 | TitleText(
75 | text: isHomePageSelected ? 'Our' : 'Shopping',
76 | fontSize: 27,
77 | fontWeight: FontWeight.w400,
78 | ),
79 | TitleText(
80 | text: isHomePageSelected ? 'Products' : 'Cart',
81 | fontSize: 27,
82 | fontWeight: FontWeight.w700,
83 | ),
84 | ],
85 | ),
86 | Spacer(),
87 | !isHomePageSelected
88 | ? Container(
89 | padding: EdgeInsets.all(10),
90 | child: Icon(
91 | Icons.delete_outline,
92 | color: LightColor.orange,
93 | ),
94 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13)))
95 | : SizedBox()
96 | ],
97 | ));
98 | }
99 |
100 | void onBottomIconPressed(int index) {
101 | if (index == 0 || index == 1) {
102 | setState(() {
103 | isHomePageSelected = true;
104 | });
105 | } else {
106 | setState(() {
107 | isHomePageSelected = false;
108 | });
109 | }
110 | }
111 |
112 | @override
113 | Widget build(BuildContext context) {
114 | return Scaffold(
115 | body: SafeArea(
116 | child: Stack(
117 | fit: StackFit.expand,
118 | children: [
119 | SingleChildScrollView(
120 | child: Container(
121 | height: AppTheme.fullHeight(context) - 50,
122 | decoration: BoxDecoration(
123 | gradient: LinearGradient(
124 | colors: [
125 | Color(0xfffbfbfb),
126 | Color(0xfff7f7f7),
127 | ],
128 | begin: Alignment.topCenter,
129 | end: Alignment.bottomCenter,
130 | ),
131 | ),
132 | child: Column(
133 | crossAxisAlignment: CrossAxisAlignment.start,
134 | children: [
135 | _appBar(),
136 | _title(),
137 | Expanded(
138 | child: AnimatedSwitcher(
139 | duration: Duration(milliseconds: 300),
140 | switchInCurve: Curves.easeInToLinear,
141 | switchOutCurve: Curves.easeOutBack,
142 | child: isHomePageSelected
143 | ? MyHomePage()
144 | : Align(
145 | alignment: Alignment.topCenter,
146 | child: ShoppingCartPage(),
147 | ),
148 | ),
149 | )
150 | ],
151 | ),
152 | ),
153 | ),
154 | Positioned(
155 | bottom: 0,
156 | right: 0,
157 | child: CustomBottomNavigationBar(
158 | onIconPresedCallback: onBottomIconPressed,
159 | ),
160 | )
161 | ],
162 | ),
163 | ),
164 | );
165 | }
166 | }
167 |
--------------------------------------------------------------------------------
/lib/src/pages/product_detail.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/model/data.dart';
3 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/theme.dart';
5 | import 'package:flutter_ecommerce_app/src/widgets/title_text.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/extentions.dart';
7 |
8 | class ProductDetailPage extends StatefulWidget {
9 | ProductDetailPage({Key key}) : super(key: key);
10 |
11 | @override
12 | _ProductDetailPageState createState() => _ProductDetailPageState();
13 | }
14 |
15 | class _ProductDetailPageState extends State
16 | with TickerProviderStateMixin {
17 | AnimationController controller;
18 | Animation animation;
19 | @override
20 | void initState() {
21 | super.initState();
22 | controller =
23 | AnimationController(vsync: this, duration: Duration(milliseconds: 300));
24 | animation = Tween(begin: 0, end: 1).animate(
25 | CurvedAnimation(parent: controller, curve: Curves.easeInToLinear));
26 | controller.forward();
27 | }
28 |
29 | @override
30 | void dispose() {
31 | controller.dispose();
32 | super.dispose();
33 | }
34 |
35 | bool isLiked = true;
36 | Widget _appBar() {
37 | return Container(
38 | padding: AppTheme.padding,
39 | child: Row(
40 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
41 | children: [
42 | _icon(
43 | Icons.arrow_back_ios,
44 | color: Colors.black54,
45 | size: 15,
46 | padding: 12,
47 | isOutLine: true,
48 | onPressed: () {
49 | Navigator.of(context).pop();
50 | },
51 | ),
52 | _icon(isLiked ? Icons.favorite : Icons.favorite_border,
53 | color: isLiked ? LightColor.red : LightColor.lightGrey,
54 | size: 15,
55 | padding: 12,
56 | isOutLine: false, onPressed: () {
57 | setState(() {
58 | isLiked = !isLiked;
59 | });
60 | }),
61 | ],
62 | ),
63 | );
64 | }
65 |
66 | Widget _icon(
67 | IconData icon, {
68 | Color color = LightColor.iconColor,
69 | double size = 20,
70 | double padding = 10,
71 | bool isOutLine = false,
72 | Function onPressed,
73 | }) {
74 | return Container(
75 | height: 40,
76 | width: 40,
77 | padding: EdgeInsets.all(padding),
78 | // margin: EdgeInsets.all(padding),
79 | decoration: BoxDecoration(
80 | border: Border.all(
81 | color: LightColor.iconColor,
82 | style: isOutLine ? BorderStyle.solid : BorderStyle.none),
83 | borderRadius: BorderRadius.all(Radius.circular(13)),
84 | color:
85 | isOutLine ? Colors.transparent : Theme.of(context).backgroundColor,
86 | boxShadow: [
87 | BoxShadow(
88 | color: Color(0xfff8f8f8),
89 | blurRadius: 5,
90 | spreadRadius: 10,
91 | offset: Offset(5, 5)),
92 | ],
93 | ),
94 | child: Icon(icon, color: color, size: size),
95 | ).ripple(() {
96 | if (onPressed != null) {
97 | onPressed();
98 | }
99 | }, borderRadius: BorderRadius.all(Radius.circular(13)));
100 | }
101 |
102 | Widget _productImage() {
103 | return AnimatedBuilder(
104 | builder: (context, child) {
105 | return AnimatedOpacity(
106 | duration: Duration(milliseconds: 500),
107 | opacity: animation.value,
108 | child: child,
109 | );
110 | },
111 | animation: animation,
112 | child: Stack(
113 | alignment: Alignment.bottomCenter,
114 | children: [
115 | TitleText(
116 | text: "AIP",
117 | fontSize: 160,
118 | color: LightColor.lightGrey,
119 | ),
120 | Image.asset('assets/show_1.png')
121 | ],
122 | ),
123 | );
124 | }
125 |
126 | Widget _categoryWidget() {
127 | return Container(
128 | margin: EdgeInsets.symmetric(vertical: 0),
129 | width: AppTheme.fullWidth(context),
130 | height: 80,
131 | child: Row(
132 | crossAxisAlignment: CrossAxisAlignment.start,
133 | mainAxisAlignment: MainAxisAlignment.center,
134 | children:
135 | AppData.showThumbnailList.map((x) => _thumbnail(x)).toList()),
136 | );
137 | }
138 |
139 | Widget _thumbnail(String image) {
140 | return AnimatedBuilder(
141 | animation: animation,
142 | // builder: null,
143 | builder: (context, child) => AnimatedOpacity(
144 | opacity: animation.value,
145 | duration: Duration(milliseconds: 500),
146 | child: child,
147 | ),
148 | child: Container(
149 | margin: EdgeInsets.symmetric(horizontal: 10),
150 | child: Container(
151 | height: 40,
152 | width: 50,
153 | decoration: BoxDecoration(
154 | border: Border.all(
155 | color: LightColor.grey,
156 | ),
157 | borderRadius: BorderRadius.all(Radius.circular(13)),
158 | // color: Theme.of(context).backgroundColor,
159 | ),
160 | child: Image.asset(image),
161 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13))),
162 | ),
163 | );
164 | }
165 |
166 | Widget _detailWidget() {
167 | return DraggableScrollableSheet(
168 | maxChildSize: .8,
169 | initialChildSize: .53,
170 | minChildSize: .53,
171 | builder: (context, scrollController) {
172 | return Container(
173 | padding: AppTheme.padding.copyWith(bottom: 0),
174 | decoration: BoxDecoration(
175 | borderRadius: BorderRadius.only(
176 | topLeft: Radius.circular(40),
177 | topRight: Radius.circular(40),
178 | ),
179 | color: Colors.white),
180 | child: SingleChildScrollView(
181 | controller: scrollController,
182 | child: Column(
183 | crossAxisAlignment: CrossAxisAlignment.start,
184 | mainAxisSize: MainAxisSize.max,
185 | children: [
186 | SizedBox(height: 5),
187 | Container(
188 | alignment: Alignment.center,
189 | child: Container(
190 | width: 50,
191 | height: 5,
192 | decoration: BoxDecoration(
193 | color: LightColor.iconColor,
194 | borderRadius: BorderRadius.all(Radius.circular(10))),
195 | ),
196 | ),
197 | SizedBox(height: 10),
198 | Container(
199 | child: Row(
200 | crossAxisAlignment: CrossAxisAlignment.start,
201 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
202 | children: [
203 | TitleText(text: "NIKE AIR MAX 200", fontSize: 25),
204 | Column(
205 | crossAxisAlignment: CrossAxisAlignment.end,
206 | children: [
207 | Row(
208 | crossAxisAlignment: CrossAxisAlignment.center,
209 | children: [
210 | TitleText(
211 | text: "\$ ",
212 | fontSize: 18,
213 | color: LightColor.red,
214 | ),
215 | TitleText(
216 | text: "240",
217 | fontSize: 25,
218 | ),
219 | ],
220 | ),
221 | Row(
222 | children: [
223 | Icon(Icons.star,
224 | color: LightColor.yellowColor, size: 17),
225 | Icon(Icons.star,
226 | color: LightColor.yellowColor, size: 17),
227 | Icon(Icons.star,
228 | color: LightColor.yellowColor, size: 17),
229 | Icon(Icons.star,
230 | color: LightColor.yellowColor, size: 17),
231 | Icon(Icons.star_border, size: 17),
232 | ],
233 | ),
234 | ],
235 | ),
236 | ],
237 | ),
238 | ),
239 | SizedBox(
240 | height: 20,
241 | ),
242 | _availableSize(),
243 | SizedBox(
244 | height: 20,
245 | ),
246 | _availableColor(),
247 | SizedBox(
248 | height: 20,
249 | ),
250 | _description(),
251 | ],
252 | ),
253 | ),
254 | );
255 | },
256 | );
257 | }
258 |
259 | Widget _availableSize() {
260 | return Column(
261 | crossAxisAlignment: CrossAxisAlignment.start,
262 | children: [
263 | TitleText(
264 | text: "Available Size",
265 | fontSize: 14,
266 | ),
267 | SizedBox(height: 20),
268 | Row(
269 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
270 | children: [
271 | _sizeWidget("US 6"),
272 | _sizeWidget("US 7", isSelected: true),
273 | _sizeWidget("US 8"),
274 | _sizeWidget("US 9"),
275 | ],
276 | )
277 | ],
278 | );
279 | }
280 |
281 | Widget _sizeWidget(String text, {bool isSelected = false}) {
282 | return Container(
283 | padding: EdgeInsets.all(10),
284 | decoration: BoxDecoration(
285 | border: Border.all(
286 | color: LightColor.iconColor,
287 | style: !isSelected ? BorderStyle.solid : BorderStyle.none),
288 | borderRadius: BorderRadius.all(Radius.circular(13)),
289 | color:
290 | isSelected ? LightColor.orange : Theme.of(context).backgroundColor,
291 | ),
292 | child: TitleText(
293 | text: text,
294 | fontSize: 16,
295 | color: isSelected ? LightColor.background : LightColor.titleTextColor,
296 | ),
297 | ).ripple(() {}, borderRadius: BorderRadius.all(Radius.circular(13)));
298 | }
299 |
300 | Widget _availableColor() {
301 | return Column(
302 | crossAxisAlignment: CrossAxisAlignment.start,
303 | children: [
304 | TitleText(
305 | text: "Available Size",
306 | fontSize: 14,
307 | ),
308 | SizedBox(height: 20),
309 | Row(
310 | mainAxisAlignment: MainAxisAlignment.start,
311 | children: [
312 | _colorWidget(LightColor.yellowColor, isSelected: true),
313 | SizedBox(
314 | width: 30,
315 | ),
316 | _colorWidget(LightColor.lightBlue),
317 | SizedBox(
318 | width: 30,
319 | ),
320 | _colorWidget(LightColor.black),
321 | SizedBox(
322 | width: 30,
323 | ),
324 | _colorWidget(LightColor.red),
325 | SizedBox(
326 | width: 30,
327 | ),
328 | _colorWidget(LightColor.skyBlue),
329 | ],
330 | )
331 | ],
332 | );
333 | }
334 |
335 | Widget _colorWidget(Color color, {bool isSelected = false}) {
336 | return CircleAvatar(
337 | radius: 12,
338 | backgroundColor: color.withAlpha(150),
339 | child: isSelected
340 | ? Icon(
341 | Icons.check_circle,
342 | color: color,
343 | size: 18,
344 | )
345 | : CircleAvatar(radius: 7, backgroundColor: color),
346 | );
347 | }
348 |
349 | Widget _description() {
350 | return Column(
351 | crossAxisAlignment: CrossAxisAlignment.start,
352 | children: [
353 | TitleText(
354 | text: "Available Size",
355 | fontSize: 14,
356 | ),
357 | SizedBox(height: 20),
358 | Text(AppData.description),
359 | ],
360 | );
361 | }
362 |
363 | FloatingActionButton _flotingButton() {
364 | return FloatingActionButton(
365 | onPressed: () {},
366 | backgroundColor: LightColor.orange,
367 | child: Icon(Icons.shopping_basket,
368 | color: Theme.of(context).floatingActionButtonTheme.backgroundColor),
369 | );
370 | }
371 |
372 | @override
373 | Widget build(BuildContext context) {
374 | return Scaffold(
375 | floatingActionButton: _flotingButton(),
376 | body: SafeArea(
377 | child: Container(
378 | decoration: BoxDecoration(
379 | gradient: LinearGradient(
380 | colors: [
381 | Color(0xfffbfbfb),
382 | Color(0xfff7f7f7),
383 | ],
384 | begin: Alignment.topCenter,
385 | end: Alignment.bottomCenter,
386 | )),
387 | child: Stack(
388 | children: [
389 | Column(
390 | children: [
391 | _appBar(),
392 | _productImage(),
393 | _categoryWidget(),
394 | ],
395 | ),
396 | _detailWidget()
397 | ],
398 | ),
399 | ),
400 | ),
401 | );
402 | }
403 | }
404 |
--------------------------------------------------------------------------------
/lib/src/pages/shopping_cart_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/model/data.dart';
3 | import 'package:flutter_ecommerce_app/src/model/product.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
5 | import 'package:flutter_ecommerce_app/src/themes/theme.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/title_text.dart';
7 |
8 | class ShoppingCartPage extends StatelessWidget {
9 | const ShoppingCartPage({Key key}) : super(key: key);
10 |
11 | Widget _cartItems() {
12 | return Column(children: AppData.cartList.map((x) => _item(x)).toList());
13 | }
14 |
15 | Widget _item(Product model) {
16 | return Container(
17 | height: 80,
18 | child: Row(
19 | children: [
20 | AspectRatio(
21 | aspectRatio: 1.2,
22 | child: Stack(
23 | children: [
24 | Align(
25 | alignment: Alignment.bottomLeft,
26 | child: Container(
27 | height: 70,
28 | width: 70,
29 | child: Stack(
30 | children: [
31 | Align(
32 | alignment: Alignment.bottomLeft,
33 | child: Container(
34 | decoration: BoxDecoration(
35 | color: LightColor.lightGrey,
36 | borderRadius: BorderRadius.circular(10)),
37 | ),
38 | ),
39 | ],
40 | ),
41 | ),
42 | ),
43 | Positioned(
44 | left: -20,
45 | bottom: -20,
46 | child: Image.asset(model.image),
47 | )
48 | ],
49 | ),
50 | ),
51 | Expanded(
52 | child: ListTile(
53 | title: TitleText(
54 | text: model.name,
55 | fontSize: 15,
56 | fontWeight: FontWeight.w700,
57 | ),
58 | subtitle: Row(
59 | children: [
60 | TitleText(
61 | text: '\$ ',
62 | color: LightColor.red,
63 | fontSize: 12,
64 | ),
65 | TitleText(
66 | text: model.price.toString(),
67 | fontSize: 14,
68 | ),
69 | ],
70 | ),
71 | trailing: Container(
72 | width: 35,
73 | height: 35,
74 | alignment: Alignment.center,
75 | decoration: BoxDecoration(
76 | color: LightColor.lightGrey.withAlpha(150),
77 | borderRadius: BorderRadius.circular(10)),
78 | child: TitleText(
79 | text: 'x${model.id}',
80 | fontSize: 12,
81 | ),
82 | )))
83 | ],
84 | ),
85 | );
86 | }
87 |
88 | Widget _price() {
89 | return Row(
90 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
91 | children: [
92 | TitleText(
93 | text: '${AppData.cartList.length} Items',
94 | color: LightColor.grey,
95 | fontSize: 14,
96 | fontWeight: FontWeight.w500,
97 | ),
98 | TitleText(
99 | text: '\$${getPrice()}',
100 | fontSize: 18,
101 | ),
102 | ],
103 | );
104 | }
105 |
106 | Widget _submitButton(BuildContext context) {
107 | return TextButton(
108 | onPressed: () {},
109 | style: ButtonStyle(
110 | shape: MaterialStateProperty.all(
111 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
112 | ),
113 | backgroundColor: MaterialStateProperty.all(LightColor.orange),
114 | ),
115 | child: Container(
116 | alignment: Alignment.center,
117 | padding: EdgeInsets.symmetric(vertical: 4),
118 | width: AppTheme.fullWidth(context) * .75,
119 | child: TitleText(
120 | text: 'Next',
121 | color: LightColor.background,
122 | fontWeight: FontWeight.w500,
123 | ),
124 | ),
125 | );
126 | }
127 |
128 | double getPrice() {
129 | double price = 0;
130 | AppData.cartList.forEach((x) {
131 | price += x.price * x.id;
132 | });
133 | return price;
134 | }
135 |
136 | @override
137 | Widget build(BuildContext context) {
138 | return Container(
139 | padding: AppTheme.padding,
140 | child: SingleChildScrollView(
141 | child: Column(
142 | children: [
143 | _cartItems(),
144 | Divider(
145 | thickness: 1,
146 | height: 70,
147 | ),
148 | _price(),
149 | SizedBox(height: 30),
150 | _submitButton(context),
151 | ],
152 | ),
153 | ),
154 | );
155 | }
156 | }
157 |
--------------------------------------------------------------------------------
/lib/src/themes/light_color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class LightColor {
4 | static const Color background = Color(0XFFFFFFFF);
5 |
6 | static const Color titleTextColor = const Color(0xff1d2635);
7 | static const Color subTitleTextColor = const Color(0xff797878);
8 |
9 | static const Color skyBlue = Color(0xff2890c8);
10 | static const Color lightBlue = Color(0xff5c3dff);
11 |
12 |
13 | static const Color orange = Color(0xffE65829);
14 | static const Color red = Color(0xffF72804);
15 |
16 | static const Color lightGrey = Color(0xffE1E2E4);
17 | static const Color grey = Color(0xffA1A3A6);
18 | static const Color darkgrey = Color(0xff747F8F);
19 |
20 | static const Color iconColor = Color(0xffa8a09b);
21 | static const Color yellowColor = Color(0xfffbba01);
22 |
23 | static const Color black = Color(0xff20262C);
24 | static const Color lightblack = Color(0xff5F5F60);
25 | }
--------------------------------------------------------------------------------
/lib/src/themes/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'light_color.dart';
4 |
5 | class AppTheme {
6 | const AppTheme();
7 | static ThemeData lightTheme = ThemeData(
8 | backgroundColor: LightColor.background,
9 | primaryColor: LightColor.background,
10 | cardTheme: CardTheme(color: LightColor.background),
11 | textTheme: TextTheme(bodyText1: TextStyle(color: LightColor.black)),
12 | iconTheme: IconThemeData(color: LightColor.iconColor),
13 | bottomAppBarColor: LightColor.background,
14 | dividerColor: LightColor.lightGrey,
15 | primaryTextTheme:
16 | TextTheme(bodyText1: TextStyle(color: LightColor.titleTextColor)));
17 |
18 | static TextStyle titleStyle =
19 | const TextStyle(color: LightColor.titleTextColor, fontSize: 16);
20 | static TextStyle subTitleStyle =
21 | const TextStyle(color: LightColor.subTitleTextColor, fontSize: 12);
22 |
23 | static TextStyle h1Style =
24 | const TextStyle(fontSize: 24, fontWeight: FontWeight.bold);
25 | static TextStyle h2Style = const TextStyle(fontSize: 22);
26 | static TextStyle h3Style = const TextStyle(fontSize: 20);
27 | static TextStyle h4Style = const TextStyle(fontSize: 18);
28 | static TextStyle h5Style = const TextStyle(fontSize: 16);
29 | static TextStyle h6Style = const TextStyle(fontSize: 14);
30 |
31 | static List shadow = [
32 | BoxShadow(color: Color(0xfff8f8f8), blurRadius: 10, spreadRadius: 15),
33 | ];
34 |
35 | static EdgeInsets padding =
36 | const EdgeInsets.symmetric(horizontal: 20, vertical: 10);
37 | static EdgeInsets hPadding = const EdgeInsets.symmetric(
38 | horizontal: 10,
39 | );
40 |
41 | static double fullWidth(BuildContext context) {
42 | return MediaQuery.of(context).size.width;
43 | }
44 |
45 | static double fullHeight(BuildContext context) {
46 | return MediaQuery.of(context).size.height;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/lib/src/widgets/BottomNavigationBar/bottom_curved_Painter.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/widgets/BottomNavigationBar/centered_elasticIn_curve.dart';
3 |
4 | class BackgroundCurvePainter extends CustomPainter {
5 | static const _radiusTop = 50.0;
6 | static const _radiusBottom = 30.0;
7 | static const _horizontalControlTop = 0.6;
8 | static const _horizontalControlBottom = 0.5;
9 | static const _pointControlTop = 0.35;
10 | static const _pointControlBottom = 0.85;
11 | static const _topY = -60.0;
12 | static const _bottomY = 0.0;
13 | static const _topDistance = 0.0;
14 | static const _bottomDistance = 10.0;
15 |
16 | final double _x;
17 | final double _normalizedY;
18 | final Color _color;
19 |
20 | BackgroundCurvePainter(double x, double normalizedY, Color color)
21 | : _x = x,
22 | _normalizedY = normalizedY,
23 | _color = color;
24 |
25 | @override
26 | void paint(canvas, size) {
27 | // Paint two cubic bezier curves using various linear interpolations based off of the `_normalizedY` value
28 | final norm = LinearPointCurve(0.5, 2.0).transform(_normalizedY) / 5;
29 |
30 | final radius =
31 | Tween(begin: _radiusTop, end: _radiusBottom).transform(norm);
32 | // Point colinear to the top edge of the background pane
33 | final anchorControlOffset = Tween(
34 | begin: radius * _horizontalControlTop,
35 | end: radius * _horizontalControlBottom)
36 | .transform(LinearPointCurve(0.5, 0.75).transform(norm));
37 | // Point that slides up and down depending on distance for the target x position
38 | final dipControlOffset = Tween(
39 | begin: radius * _pointControlTop, end: radius * _pointControlBottom)
40 | .transform(LinearPointCurve(0.5, 0.8).transform(norm));
41 | final y = Tween(begin: _topY, end: _bottomY)
42 | .transform(LinearPointCurve(0.2, 0.7).transform(norm));
43 | final dist = Tween(begin: _topDistance, end: _bottomDistance)
44 | .transform(LinearPointCurve(0.5, 0.0).transform(norm));
45 | final x0 = _x - dist / 2;
46 | final x1 = _x + dist / 2;
47 |
48 | final path = Path()
49 | ..moveTo(0, 0)
50 | ..lineTo(x0 - radius, 0)
51 | ..cubicTo(
52 | x0 - radius + anchorControlOffset, 0, x0 - dipControlOffset, y, x0, y)
53 | ..lineTo(x1, y)
54 | ..cubicTo(x1 + dipControlOffset, y, x1 + radius - anchorControlOffset, 0,
55 | x1 + radius, 0)
56 | ..lineTo(size.width, 0)
57 | ..lineTo(size.width, size.height)
58 | ..lineTo(0, size.height);
59 |
60 | final paint = Paint()..color = _color;
61 |
62 | canvas.drawPath(path, paint);
63 | }
64 |
65 | @override
66 | bool shouldRepaint(BackgroundCurvePainter oldPainter) {
67 | return _x != oldPainter._x ||
68 | _normalizedY != oldPainter._normalizedY ||
69 | _color != oldPainter._color;
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/lib/src/widgets/BottomNavigationBar/bottom_navigation_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
3 | import 'package:flutter_ecommerce_app/src/widgets/BottomNavigationBar/bottom_curved_Painter.dart';
4 |
5 | class CustomBottomNavigationBar extends StatefulWidget {
6 | final Function(int) onIconPresedCallback;
7 | CustomBottomNavigationBar({Key key, this.onIconPresedCallback})
8 | : super(key: key);
9 |
10 | @override
11 | _CustomBottomNavigationBarState createState() =>
12 | _CustomBottomNavigationBarState();
13 | }
14 |
15 | class _CustomBottomNavigationBarState extends State
16 | with TickerProviderStateMixin {
17 | int _selectedIndex = 0;
18 |
19 | AnimationController _xController;
20 | AnimationController _yController;
21 | @override
22 | void initState() {
23 | _xController = AnimationController(
24 | vsync: this, animationBehavior: AnimationBehavior.preserve);
25 | _yController = AnimationController(
26 | vsync: this, animationBehavior: AnimationBehavior.preserve);
27 |
28 | Listenable.merge([_xController, _yController]).addListener(() {
29 | setState(() {});
30 | });
31 |
32 | super.initState();
33 | }
34 |
35 | @override
36 | void didChangeDependencies() {
37 | _xController.value =
38 | _indexToPosition(_selectedIndex) / MediaQuery.of(context).size.width;
39 | _yController.value = 1.0;
40 |
41 | super.didChangeDependencies();
42 | }
43 |
44 | double _indexToPosition(int index) {
45 | // Calculate button positions based off of their
46 | // index (works with `MainAxisAlignment.spaceAround`)
47 | const buttonCount = 4.0;
48 | final appWidth = MediaQuery.of(context).size.width;
49 | final buttonsWidth = _getButtonContainerWidth();
50 | final startX = (appWidth - buttonsWidth) / 2;
51 | return startX +
52 | index.toDouble() * buttonsWidth / buttonCount +
53 | buttonsWidth / (buttonCount * 2.0);
54 | }
55 |
56 | @override
57 | void dispose() {
58 | _xController.dispose();
59 | _yController.dispose();
60 | super.dispose();
61 | }
62 |
63 | Widget _icon(IconData icon, bool isEnable, int index) {
64 | return Expanded(
65 | child: InkWell(
66 | borderRadius: BorderRadius.all(Radius.circular(50)),
67 | onTap: () {
68 | _handlePressed(index);
69 | },
70 | child: AnimatedContainer(
71 | duration: Duration(milliseconds: 500),
72 | alignment: isEnable ? Alignment.topCenter : Alignment.center,
73 | child: AnimatedContainer(
74 | height: isEnable ? 40 : 20,
75 | duration: Duration(milliseconds: 300),
76 | alignment: Alignment.center,
77 | decoration: BoxDecoration(
78 | color: isEnable ? LightColor.orange : Colors.white,
79 | boxShadow: [
80 | BoxShadow(
81 | color: isEnable ? Color(0xfffeece2) : Colors.white,
82 | blurRadius: 10,
83 | spreadRadius: 5,
84 | offset: Offset(5, 5),
85 | ),
86 | ],
87 | shape: BoxShape.circle),
88 | child: Opacity(
89 | opacity: isEnable ? _yController.value : 1,
90 | child: Icon(icon,
91 | color: isEnable
92 | ? LightColor.background
93 | : Theme.of(context).iconTheme.color),
94 | )),
95 | ),
96 | ),
97 | );
98 | }
99 |
100 | Widget _buildBackground() {
101 | final inCurve = ElasticOutCurve(0.38);
102 | return CustomPaint(
103 | painter: BackgroundCurvePainter(
104 | _xController.value * MediaQuery.of(context).size.width,
105 | Tween(
106 | begin: Curves.easeInExpo.transform(_yController.value),
107 | end: inCurve.transform(_yController.value),
108 | ).transform(_yController.velocity.sign * 0.5 + 0.5),
109 | Theme.of(context).backgroundColor),
110 | );
111 | }
112 |
113 | double _getButtonContainerWidth() {
114 | double width = MediaQuery.of(context).size.width;
115 | if (width > 400.0) {
116 | width = 400.0;
117 | }
118 | return width;
119 | }
120 |
121 | void _handlePressed(int index) {
122 | if (_selectedIndex == index || _xController.isAnimating) return;
123 | widget.onIconPresedCallback(index);
124 | setState(() {
125 | _selectedIndex = index;
126 | });
127 |
128 | _yController.value = 1.0;
129 | _xController.animateTo(
130 | _indexToPosition(index) / MediaQuery.of(context).size.width,
131 | duration: Duration(milliseconds: 620));
132 | Future.delayed(
133 | Duration(milliseconds: 500),
134 | () {
135 | _yController.animateTo(1.0, duration: Duration(milliseconds: 1200));
136 | },
137 | );
138 | _yController.animateTo(0.0, duration: Duration(milliseconds: 300));
139 | }
140 |
141 | @override
142 | Widget build(BuildContext context) {
143 | final appSize = MediaQuery.of(context).size;
144 | final height = 60.0;
145 | return Container(
146 | width: appSize.width,
147 | height: 60,
148 | child: Stack(
149 | children: [
150 | Positioned(
151 | left: 0,
152 | bottom: 0,
153 | width: appSize.width,
154 | height: height - 10,
155 | child: _buildBackground(),
156 | ),
157 | Positioned(
158 | left: (appSize.width - _getButtonContainerWidth()) / 2,
159 | top: 0,
160 | width: _getButtonContainerWidth(),
161 | height: height,
162 | child: Row(
163 | mainAxisAlignment: MainAxisAlignment.spaceAround,
164 | children: [
165 | _icon(Icons.home, _selectedIndex == 0, 0),
166 | _icon(Icons.search, _selectedIndex == 1, 1),
167 | _icon(Icons.card_travel, _selectedIndex == 2, 2),
168 | _icon(Icons.favorite_border, _selectedIndex == 3, 3),
169 | ],
170 | ),
171 | ),
172 | ],
173 | ),
174 | );
175 | }
176 | }
177 |
--------------------------------------------------------------------------------
/lib/src/widgets/BottomNavigationBar/centered_elasticIn_curve.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math' as math;
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | class CenteredElasticOutCurve extends Curve {
6 | final double period;
7 |
8 | CenteredElasticOutCurve([this.period = 0.4]);
9 |
10 | @override
11 | double transform(double x) {
12 | // Bascially just a slightly modified version of the built in ElasticOutCurve
13 | return math.pow(2.0, -10.0 * x) * math.sin(x * 2.0 * math.pi / period) +
14 | 0.5;
15 | }
16 | }
17 |
18 | class CenteredElasticInCurve extends Curve {
19 | final double period;
20 |
21 | CenteredElasticInCurve([this.period = 0.4]);
22 |
23 | @override
24 | double transform(double x) {
25 | // Bascially just a slightly modified version of the built in ElasticInCurve
26 | return -math.pow(2.0, 10.0 * (x - 1.0)) *
27 | math.sin((x - 1.0) * 2.0 * math.pi / period) +
28 | 0.5;
29 | }
30 | }
31 |
32 | class LinearPointCurve extends Curve {
33 | final double pIn;
34 | final double pOut;
35 |
36 | LinearPointCurve(this.pIn, this.pOut);
37 |
38 | @override
39 | double transform(double x) {
40 | // Just a simple bit of linear interpolation math
41 | final lowerScale = pOut / pIn;
42 | final upperScale = (1.0 - pOut) / (1.0 - pIn);
43 | final upperOffset = 1.0 - upperScale;
44 | return x < pIn ? x * lowerScale : x * upperScale + upperOffset;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/src/widgets/customRoute.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomRoute extends MaterialPageRoute {
4 | CustomRoute({WidgetBuilder builder, RouteSettings settings})
5 | : super(builder: builder, settings: settings);
6 | @override
7 | Widget buildTransitions(BuildContext context, Animation animation,
8 | Animation secondaryAnimation, Widget child) {
9 | if (settings.name == "MainPage") {
10 | return child;
11 | }
12 | return FadeTransition(
13 | opacity: animation,
14 | child: child,
15 | );
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/src/widgets/extentions.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | extension OnPressed on Widget {
4 | Widget ripple(Function onPressed,
5 | {BorderRadiusGeometry borderRadius =
6 | const BorderRadius.all(Radius.circular(5))}) =>
7 | Stack(
8 | children: [
9 | this,
10 | Positioned(
11 | left: 0,
12 | right: 0,
13 | top: 0,
14 | bottom: 0,
15 | child: TextButton(
16 | style: ButtonStyle(
17 | shape: MaterialStateProperty.all(
18 | RoundedRectangleBorder(borderRadius: borderRadius),
19 | )),
20 | onPressed: () {
21 | if (onPressed != null) {
22 | onPressed();
23 | }
24 | },
25 | child: Container()),
26 | )
27 | ],
28 | );
29 | }
30 |
--------------------------------------------------------------------------------
/lib/src/widgets/product_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'package:flutter_ecommerce_app/src/model/product.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
5 | import 'package:flutter_ecommerce_app/src/widgets/title_text.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/extentions.dart';
7 |
8 | class ProductCard extends StatelessWidget {
9 | final Product product;
10 | final ValueChanged onSelected;
11 | ProductCard({Key key, this.product, this.onSelected}) : super(key: key);
12 |
13 | // @override
14 | // _ProductCardState createState() => _ProductCardState();
15 | // }
16 |
17 | // class _ProductCardState extends State {
18 | // Product product;
19 | // @override
20 | // void initState() {
21 | // product = widget.product;
22 | // super.initState();
23 | // }
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 | return Container(
28 | decoration: BoxDecoration(
29 | color: LightColor.background,
30 | borderRadius: BorderRadius.all(Radius.circular(20)),
31 | boxShadow: [
32 | BoxShadow(color: Color(0xfff8f8f8), blurRadius: 15, spreadRadius: 10),
33 | ],
34 | ),
35 | margin: EdgeInsets.symmetric(vertical: !product.isSelected ? 20 : 0),
36 | child: Container(
37 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
38 | child: Stack(
39 | alignment: Alignment.center,
40 | children: [
41 | Positioned(
42 | left: 0,
43 | top: 0,
44 | child: IconButton(
45 | icon: Icon(
46 | product.isliked ? Icons.favorite : Icons.favorite_border,
47 | color:
48 | product.isliked ? LightColor.red : LightColor.iconColor,
49 | ),
50 | onPressed: () {},
51 | ),
52 | ),
53 | Column(
54 | crossAxisAlignment: CrossAxisAlignment.center,
55 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
56 | children: [
57 | SizedBox(height: product.isSelected ? 15 : 0),
58 | Expanded(
59 | child: Stack(
60 | alignment: Alignment.center,
61 | children: [
62 | CircleAvatar(
63 | radius: 40,
64 | backgroundColor: LightColor.orange.withAlpha(40),
65 | ),
66 | Image.asset(product.image)
67 | ],
68 | ),
69 | ),
70 | // SizedBox(height: 5),
71 | TitleText(
72 | text: product.name,
73 | fontSize: product.isSelected ? 16 : 14,
74 | ),
75 | TitleText(
76 | text: product.category,
77 | fontSize: product.isSelected ? 14 : 12,
78 | color: LightColor.orange,
79 | ),
80 | TitleText(
81 | text: product.price.toString(),
82 | fontSize: product.isSelected ? 18 : 16,
83 | ),
84 | ],
85 | ),
86 | ],
87 | ),
88 | ).ripple(() {
89 | Navigator.of(context).pushNamed('/detail');
90 | onSelected(product);
91 | }, borderRadius: BorderRadius.all(Radius.circular(20))),
92 | );
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/lib/src/widgets/product_icon.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/model/category.dart';
3 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
4 | import 'package:flutter_ecommerce_app/src/themes/theme.dart';
5 | import 'package:flutter_ecommerce_app/src/widgets/title_text.dart';
6 | import 'package:flutter_ecommerce_app/src/widgets/extentions.dart';
7 |
8 | class ProductIcon extends StatelessWidget {
9 | // final String imagePath;
10 | // final String text;
11 | final ValueChanged onSelected;
12 | final Category model;
13 | ProductIcon({Key key, this.model, this.onSelected}) : super(key: key);
14 |
15 | Widget build(BuildContext context) {
16 | return model.id == null
17 | ? Container(width: 5)
18 | : Container(
19 | margin: EdgeInsets.symmetric(horizontal: 10, vertical: 15),
20 | child: Container(
21 | padding: AppTheme.hPadding,
22 | alignment: Alignment.center,
23 | decoration: BoxDecoration(
24 | borderRadius: BorderRadius.all(Radius.circular(10)),
25 | color: model.isSelected
26 | ? LightColor.background
27 | : Colors.transparent,
28 | border: Border.all(
29 | color: model.isSelected ? LightColor.orange : LightColor.grey,
30 | width: model.isSelected ? 2 : 1,
31 | ),
32 | boxShadow: [
33 | BoxShadow(
34 | color: model.isSelected ? Color(0xfffbf2ef) : Colors.white,
35 | blurRadius: 10,
36 | spreadRadius: 5,
37 | offset: Offset(5, 5),
38 | ),
39 | ],
40 | ),
41 | child: Row(
42 | children: [
43 | model.image != null ? Image.asset(model.image) : SizedBox(),
44 | model.name == null
45 | ? Container()
46 | : Container(
47 | child: TitleText(
48 | text: model.name,
49 | fontWeight: FontWeight.w700,
50 | fontSize: 15,
51 | ),
52 | )
53 | ],
54 | ),
55 | ).ripple(
56 | () {
57 | onSelected(model);
58 | },
59 | borderRadius: BorderRadius.all(Radius.circular(10)),
60 | ),
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/src/widgets/title_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ecommerce_app/src/themes/light_color.dart';
3 | import 'package:google_fonts/google_fonts.dart';
4 |
5 | class TitleText extends StatelessWidget {
6 | final String text;
7 | final double fontSize;
8 | final Color color;
9 | final FontWeight fontWeight;
10 | const TitleText(
11 | {Key key,
12 | this.text,
13 | this.fontSize = 18,
14 | this.color = LightColor.titleTextColor,
15 | this.fontWeight = FontWeight.w800})
16 | : super(key: key);
17 | @override
18 | Widget build(BuildContext context) {
19 | return Text(text,
20 | style: GoogleFonts.mulish(
21 | fontSize: fontSize, fontWeight: fontWeight, color: color));
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.2"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.0"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.3.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.15.0"
46 | crypto:
47 | dependency: transitive
48 | description:
49 | name: crypto
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "3.0.1"
53 | cupertino_icons:
54 | dependency: "direct main"
55 | description:
56 | name: cupertino_icons
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.4"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.2.0"
67 | ffi:
68 | dependency: transitive
69 | description:
70 | name: ffi
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.1.2"
74 | file:
75 | dependency: transitive
76 | description:
77 | name: file
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "6.1.2"
81 | flutter:
82 | dependency: "direct main"
83 | description: flutter
84 | source: sdk
85 | version: "0.0.0"
86 | flutter_test:
87 | dependency: "direct dev"
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | google_fonts:
92 | dependency: "direct main"
93 | description:
94 | name: google_fonts
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "2.3.1"
98 | http:
99 | dependency: transitive
100 | description:
101 | name: http
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "0.13.4"
105 | http_parser:
106 | dependency: transitive
107 | description:
108 | name: http_parser
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "4.0.0"
112 | matcher:
113 | dependency: transitive
114 | description:
115 | name: matcher
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "0.12.11"
119 | material_color_utilities:
120 | dependency: transitive
121 | description:
122 | name: material_color_utilities
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "0.1.3"
126 | meta:
127 | dependency: transitive
128 | description:
129 | name: meta
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "1.7.0"
133 | path:
134 | dependency: transitive
135 | description:
136 | name: path
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "1.8.0"
140 | path_provider:
141 | dependency: transitive
142 | description:
143 | name: path_provider
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "2.0.8"
147 | path_provider_android:
148 | dependency: transitive
149 | description:
150 | name: path_provider_android
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "2.0.11"
154 | path_provider_ios:
155 | dependency: transitive
156 | description:
157 | name: path_provider_ios
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "2.0.7"
161 | path_provider_linux:
162 | dependency: transitive
163 | description:
164 | name: path_provider_linux
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "2.1.5"
168 | path_provider_macos:
169 | dependency: transitive
170 | description:
171 | name: path_provider_macos
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "2.0.5"
175 | path_provider_platform_interface:
176 | dependency: transitive
177 | description:
178 | name: path_provider_platform_interface
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "2.0.3"
182 | path_provider_windows:
183 | dependency: transitive
184 | description:
185 | name: path_provider_windows
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "2.0.5"
189 | platform:
190 | dependency: transitive
191 | description:
192 | name: platform
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "3.1.0"
196 | plugin_platform_interface:
197 | dependency: transitive
198 | description:
199 | name: plugin_platform_interface
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.1.2"
203 | process:
204 | dependency: transitive
205 | description:
206 | name: process
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "4.2.4"
210 | sky_engine:
211 | dependency: transitive
212 | description: flutter
213 | source: sdk
214 | version: "0.0.99"
215 | source_span:
216 | dependency: transitive
217 | description:
218 | name: source_span
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "1.8.1"
222 | stack_trace:
223 | dependency: transitive
224 | description:
225 | name: stack_trace
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "1.10.0"
229 | stream_channel:
230 | dependency: transitive
231 | description:
232 | name: stream_channel
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.1.0"
236 | string_scanner:
237 | dependency: transitive
238 | description:
239 | name: string_scanner
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "1.1.0"
243 | term_glyph:
244 | dependency: transitive
245 | description:
246 | name: term_glyph
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.2.0"
250 | test_api:
251 | dependency: transitive
252 | description:
253 | name: test_api
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "0.4.8"
257 | typed_data:
258 | dependency: transitive
259 | description:
260 | name: typed_data
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.3.0"
264 | vector_math:
265 | dependency: transitive
266 | description:
267 | name: vector_math
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "2.1.1"
271 | win32:
272 | dependency: transitive
273 | description:
274 | name: win32
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "2.3.11"
278 | xdg_directories:
279 | dependency: transitive
280 | description:
281 | name: xdg_directories
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "0.2.0+1"
285 | sdks:
286 | dart: ">=2.15.0 <3.0.0"
287 | flutter: ">=2.10.0-0"
288 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_ecommerce_app
2 | description: A new Flutter project.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.6.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 |
23 | # The following adds the Cupertino Icons font to your application.
24 | # Use with the CupertinoIcons class for iOS style icons.
25 | cupertino_icons: ^1.0.3
26 | google_fonts: ^2.1.0
27 |
28 | dev_dependencies:
29 | flutter_test:
30 | sdk: flutter
31 |
32 |
33 | # For information on the generic Dart part of this file, see the
34 | # following page: https://dart.dev/tools/pub/pubspec
35 |
36 | # The following section is specific to Flutter.
37 | flutter:
38 |
39 | # The following line ensures that the Material Icons font is
40 | # included with your application, so that you can use the icons in
41 | # the material Icons class.
42 | uses-material-design: true
43 |
44 | # To add assets to your application, add an assets section, like this:
45 | assets:
46 | - assets/
47 | # - images/a_dot_ham.jpeg
48 |
49 | # An image asset can refer to one or more resolution-specific "variants", see
50 | # https://flutter.dev/assets-and-images/#resolution-aware.
51 |
52 | # For details regarding adding assets from package dependencies, see
53 | # https://flutter.dev/assets-and-images/#from-packages
54 |
55 | # To add custom fonts to your application, add a fonts section here,
56 | # in this "flutter" section. Each entry in this list should have a
57 | # "family" key with the font family name, and a "fonts" key with a
58 | # list giving the asset and other descriptors for the font. For
59 | # example:
60 | # fonts:
61 | # - family: Schyler
62 | # fonts:
63 | # - asset: fonts/Schyler-Regular.ttf
64 | # - asset: fonts/Schyler-Italic.ttf
65 | # style: italic
66 | # - family: Trajan Pro
67 | # fonts:
68 | # - asset: fonts/TrajanPro.ttf
69 | # - asset: fonts/TrajanPro_Bold.ttf
70 | # weight: 700
71 | #
72 | # For details regarding fonts from package dependencies,
73 | # see https://flutter.dev/custom-fonts/#from-packages
74 |
--------------------------------------------------------------------------------
/screenshots/screenshot_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_1.jpg
--------------------------------------------------------------------------------
/screenshots/screenshot_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_2.jpg
--------------------------------------------------------------------------------
/screenshots/screenshot_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_3.jpg
--------------------------------------------------------------------------------
/screenshots/screenshot_ios_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_ios_1.png
--------------------------------------------------------------------------------
/screenshots/screenshot_ios_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_ios_2.png
--------------------------------------------------------------------------------
/screenshots/screenshot_ios_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAlphamerc/flutter_ecommerce_app/f7622934ae310706bffc67c0c95c740b858077da/screenshots/screenshot_ios_3.png
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flutter_ecommerce_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------