├── .github
└── workflows
│ └── main.yml
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── sinasys
│ │ │ │ └── e_commerce_flutter
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable-mdpi
│ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── ic_launcher_foreground.png
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ └── launcher_icon.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── home_screen.png
└── images
│ ├── a53_1.png
│ ├── a53_2.png
│ ├── a53_3.png
│ ├── apple_watch_series_7_1.png
│ ├── apple_watch_series_7_2.png
│ ├── apple_watch_series_7_3.png
│ ├── beats_studio_3-1.png
│ ├── beats_studio_3-2.png
│ ├── beats_studio_3-3.png
│ ├── beats_studio_3-4.png
│ ├── empty_cart.png
│ ├── galaxy_watch_4_1.png
│ ├── galaxy_watch_4_2.png
│ ├── galaxy_watch_4_3.png
│ ├── github.png
│ ├── logo.png
│ ├── profile_pic.png
│ ├── samsung_q_60_a_1.png
│ ├── samsung_q_60_a_2.png
│ ├── shopping.png
│ ├── sony_x_80_j_1.png
│ ├── sony_x_80_j_2.png
│ ├── tab_s7_fe_1.png
│ ├── tab_s7_fe_2.png
│ ├── tab_s7_fe_3.png
│ ├── tab_s8_1.png
│ ├── tab_s8_2.png
│ └── tab_s8_3.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── 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
├── core
│ ├── app_color.dart
│ ├── app_data.dart
│ ├── app_theme.dart
│ └── extensions.dart
├── main.dart
└── src
│ ├── controller
│ └── product_controller.dart
│ ├── model
│ ├── bottom_nav_bar_item.dart
│ ├── categorical.dart
│ ├── numerical.dart
│ ├── product.dart
│ ├── product_category.dart
│ ├── product_size_type.dart
│ └── recommended_product.dart
│ └── view
│ ├── animation
│ ├── animated_switcher_wrapper.dart
│ ├── open_container_wrapper.dart
│ └── page_transition_switcher_wrapper.dart
│ ├── screen
│ ├── cart_screen.dart
│ ├── favorite_screen.dart
│ ├── home_screen.dart
│ ├── product_detail_screen.dart
│ ├── product_list_screen.dart
│ └── profile_screen.dart
│ └── widget
│ ├── carousel_slider.dart
│ ├── empty_cart.dart
│ ├── list_item_selector.dart
│ └── product_grid_view.dart
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── cart_screen.png
├── detail_screen.png
├── home_screen.png
├── preview.gif
└── screenshot.png
└── web
├── favicon.png
├── icons
├── Icon-192.png
├── Icon-512.png
├── Icon-maskable-192.png
└── Icon-maskable-512.png
├── index.html
└── manifest.json
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | on:
2 | push:
3 | branches:
4 | - master
5 |
6 | name: "Build & Release"
7 | jobs:
8 | build:
9 | name: Build & Release
10 | runs-on: ubuntu-latest
11 | steps:
12 | - uses: actions/checkout@v1
13 | - uses: actions/setup-java@v1
14 | with:
15 | java-version: '17.x'
16 | - uses: subosito/flutter-action@v1
17 | with:
18 | flutter-version: '3.27.0'
19 | - run: flutter pub get
20 | - run: flutter analyze
21 | - run: flutter build apk
22 | # - name: Push to Releases
23 | # uses: ncipollo/release-action@v1.12.0
24 | # with:
25 | # artifacts: "build/app/outputs/flutter-apk/app-release.apk"
26 | # tag: v1.2.1
27 | # token: ${{ secrets.TOKEN }}
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: adda8e93881d681680de2f7f33bfc021dac20c9d
8 | channel: master
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
17 | base_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
18 | - platform: android
19 | create_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
20 | base_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
21 | - platform: ios
22 | create_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
23 | base_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
24 | - platform: web
25 | create_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
26 | base_revision: adda8e93881d681680de2f7f33bfc021dac20c9d
27 |
28 | # User provided section
29 |
30 | # List of Local paths (relative to this file) that should be
31 | # ignored by the migrate tool.
32 | #
33 | # Files that are not part of the templates will be ignored by default.
34 | unmanaged_files:
35 | - 'lib/main.dart'
36 | - 'ios/Runner.xcodeproj/project.pbxproj'
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 2-Clause License
2 |
3 | Copyright (c) 2022, SinaSys
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 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | E-Commerce app is a design implementation of [E-commerce App](https://dribbble.com/shots/15550702-E-commerce-Mobile-App) designed by [Billah](https://dribbble.com/designermasum)
14 |
15 | 
16 |
17 |
18 | ## Screenshots
19 |
20 | Preview | Home screen | Product Detail Screen | Cart Screen
21 | :-------------------------:|:-------------------------:|:-------------------------:|:-------------------------:
22 | |||
23 |
24 |
25 |
26 | ## Directory Structure
27 | ```
28 | 📂lib
29 | │───main.dart
30 | │───📂core
31 | | │──app_data.dart
32 | | │──app_theme.dart
33 | | │──app_color.dart
34 | | └──extensions.dart
35 | └───📂src
36 | │────📂model
37 | │ │──product.dart
38 | | │──product_category.dart
39 | | │──product_size_type.dart
40 | | │──recommended_product.dart
41 | | │──categorical.dart
42 | | │──numerical.dart
43 | | └──bottom_nav_bar_item.dart
44 | └────📂view
45 | | │───📂screen
46 | | | |──home_screen.dart
47 | | | |──product_list_screen.dart
48 | | | |──product_detail_screen.dart
49 | | | |──favorite_screen.dart
50 | | | |──cart_screen.dart
51 | | | └──profile_screen.dart
52 | | │───📂widget
53 | | | |──carousel_slider.dart
54 | | | |──product_grid_view.dart
55 | | | |──list_item_selector.dart
56 | | | └──empty_cart.dart
57 | | └───📂animation
58 | | |──animated_switcher_wrapper.dart
59 | | |──open_container_wrapper.dart
60 | | └──page_transition_switcher_wrapper.dart
61 | └────📂controller
62 | └──product_controller.dart
63 | ```
64 |
65 |
66 |
67 | ## Dependencies
68 | Package Name |
69 | :-------------------------|
70 | |[GetX](https://pub.dev/packages/get)
71 | |[stylish_bottom_bar](https://pub.dev/packages/stylish_bottom_bar)
72 | |[smooth_page_indicator](https://pub.dev/packages/smooth_page_indicator)
73 | |[flutter_rating_bar](https://pub.dev/packages/flutter_rating_bar)
74 | |[font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
75 | |[animations](https://pub.dev/packages/animations)
76 | |[flutter_launcher_icons](https://pub.dev/packages/flutter_launcher_icons)
77 |
78 |
79 |
80 | ## Created & Maintained By
81 |
82 | [SinaSys](https://github.com/SinaSys)
83 |
84 |
85 | ## Contributors
86 | • [mufarrah](https://github.com/mufarrah)
87 |
88 |
89 |
90 | ## Other flutter projects
91 | Project Name |Stars
92 | :-------------------------|-------------------------
93 | [Go rest app](https://github.com/SinaSys/flutter_go_rest_app)|
94 | [Japanese restaurant app](https://github.com/SinaSys/flutter_japanese_restaurant_app)| 
95 | |[Office furniture store app](https://github.com/SinaSys/flutter_office_furniture_store_app) |
96 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion "23.1.7779620"
31 | namespace = "com.sinasys.e_commerce_flutter"
32 |
33 | compileOptions {
34 | sourceCompatibility JavaVersion.VERSION_1_8
35 | targetCompatibility JavaVersion.VERSION_1_8
36 | }
37 |
38 | kotlinOptions {
39 | jvmTarget = '1.8'
40 | }
41 |
42 | sourceSets {
43 | main.java.srcDirs += 'src/main/kotlin'
44 | }
45 |
46 | defaultConfig {
47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48 | applicationId "com.sinasys.e_commerce_flutter"
49 | // You can update the following values to match your application needs.
50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
51 | minSdkVersion flutter.minSdkVersion
52 | targetSdkVersion flutter.targetSdkVersion
53 | versionCode flutterVersionCode.toInteger()
54 | versionName flutterVersionName
55 | }
56 |
57 | buildTypes {
58 | release {
59 | // TODO: Add your own signing config for the release build.
60 | // Signing with the debug keys for now, so `flutter run --release` works.
61 | signingConfig signingConfigs.debug
62 | }
63 | }
64 | }
65 |
66 | flutter {
67 | source '../..'
68 | }
69 |
70 | dependencies {
71 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72 | }
73 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/sinasys/e_commerce_flutter/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.sinasys.e_commerce_flutter
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/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-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ffffff
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.21'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:8.1.4'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
6 |
--------------------------------------------------------------------------------
/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/home_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/home_screen.png
--------------------------------------------------------------------------------
/assets/images/a53_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/a53_1.png
--------------------------------------------------------------------------------
/assets/images/a53_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/a53_2.png
--------------------------------------------------------------------------------
/assets/images/a53_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/a53_3.png
--------------------------------------------------------------------------------
/assets/images/apple_watch_series_7_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/apple_watch_series_7_1.png
--------------------------------------------------------------------------------
/assets/images/apple_watch_series_7_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/apple_watch_series_7_2.png
--------------------------------------------------------------------------------
/assets/images/apple_watch_series_7_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/apple_watch_series_7_3.png
--------------------------------------------------------------------------------
/assets/images/beats_studio_3-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/beats_studio_3-1.png
--------------------------------------------------------------------------------
/assets/images/beats_studio_3-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/beats_studio_3-2.png
--------------------------------------------------------------------------------
/assets/images/beats_studio_3-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/beats_studio_3-3.png
--------------------------------------------------------------------------------
/assets/images/beats_studio_3-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/beats_studio_3-4.png
--------------------------------------------------------------------------------
/assets/images/empty_cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/empty_cart.png
--------------------------------------------------------------------------------
/assets/images/galaxy_watch_4_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/galaxy_watch_4_1.png
--------------------------------------------------------------------------------
/assets/images/galaxy_watch_4_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/galaxy_watch_4_2.png
--------------------------------------------------------------------------------
/assets/images/galaxy_watch_4_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/galaxy_watch_4_3.png
--------------------------------------------------------------------------------
/assets/images/github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/github.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/profile_pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/profile_pic.png
--------------------------------------------------------------------------------
/assets/images/samsung_q_60_a_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/samsung_q_60_a_1.png
--------------------------------------------------------------------------------
/assets/images/samsung_q_60_a_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/samsung_q_60_a_2.png
--------------------------------------------------------------------------------
/assets/images/shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/shopping.png
--------------------------------------------------------------------------------
/assets/images/sony_x_80_j_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/sony_x_80_j_1.png
--------------------------------------------------------------------------------
/assets/images/sony_x_80_j_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/sony_x_80_j_2.png
--------------------------------------------------------------------------------
/assets/images/tab_s7_fe_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s7_fe_1.png
--------------------------------------------------------------------------------
/assets/images/tab_s7_fe_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s7_fe_2.png
--------------------------------------------------------------------------------
/assets/images/tab_s7_fe_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s7_fe_3.png
--------------------------------------------------------------------------------
/assets/images/tab_s8_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s8_1.png
--------------------------------------------------------------------------------
/assets/images/tab_s8_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s8_2.png
--------------------------------------------------------------------------------
/assets/images/tab_s8_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/assets/images/tab_s8_3.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1300;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = (
294 | "$(inherited)",
295 | "@executable_path/Frameworks",
296 | );
297 | PRODUCT_BUNDLE_IDENTIFIER = com.sinasys.eCommerceFlutter;
298 | PRODUCT_NAME = "$(TARGET_NAME)";
299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
300 | SWIFT_VERSION = 5.0;
301 | VERSIONING_SYSTEM = "apple-generic";
302 | };
303 | name = Profile;
304 | };
305 | 97C147031CF9000F007C117D /* Debug */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = dwarf;
336 | ENABLE_STRICT_OBJC_MSGSEND = YES;
337 | ENABLE_TESTABILITY = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_DYNAMIC_NO_PIC = NO;
340 | GCC_NO_COMMON_BLOCKS = YES;
341 | GCC_OPTIMIZATION_LEVEL = 0;
342 | GCC_PREPROCESSOR_DEFINITIONS = (
343 | "DEBUG=1",
344 | "$(inherited)",
345 | );
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
353 | MTL_ENABLE_DEBUG_INFO = YES;
354 | ONLY_ACTIVE_ARCH = YES;
355 | SDKROOT = iphoneos;
356 | TARGETED_DEVICE_FAMILY = "1,2";
357 | };
358 | name = Debug;
359 | };
360 | 97C147041CF9000F007C117D /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ALWAYS_SEARCH_USER_PATHS = NO;
364 | CLANG_ANALYZER_NONNULL = YES;
365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
366 | CLANG_CXX_LIBRARY = "libc++";
367 | CLANG_ENABLE_MODULES = YES;
368 | CLANG_ENABLE_OBJC_ARC = YES;
369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_COMMA = YES;
372 | CLANG_WARN_CONSTANT_CONVERSION = YES;
373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
375 | CLANG_WARN_EMPTY_BODY = YES;
376 | CLANG_WARN_ENUM_CONVERSION = YES;
377 | CLANG_WARN_INFINITE_RECURSION = YES;
378 | CLANG_WARN_INT_CONVERSION = YES;
379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
384 | CLANG_WARN_STRICT_PROTOTYPES = YES;
385 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
386 | CLANG_WARN_UNREACHABLE_CODE = YES;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = NO;
390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
391 | ENABLE_NS_ASSERTIONS = NO;
392 | ENABLE_STRICT_OBJC_MSGSEND = YES;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_NO_COMMON_BLOCKS = YES;
395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
397 | GCC_WARN_UNDECLARED_SELECTOR = YES;
398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
399 | GCC_WARN_UNUSED_FUNCTION = YES;
400 | GCC_WARN_UNUSED_VARIABLE = YES;
401 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
402 | MTL_ENABLE_DEBUG_INFO = NO;
403 | SDKROOT = iphoneos;
404 | SUPPORTED_PLATFORMS = iphoneos;
405 | SWIFT_COMPILATION_MODE = wholemodule;
406 | SWIFT_OPTIMIZATION_LEVEL = "-O";
407 | TARGETED_DEVICE_FAMILY = "1,2";
408 | VALIDATE_PRODUCT = YES;
409 | };
410 | name = Release;
411 | };
412 | 97C147061CF9000F007C117D /* Debug */ = {
413 | isa = XCBuildConfiguration;
414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
415 | buildSettings = {
416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
417 | CLANG_ENABLE_MODULES = YES;
418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
419 | ENABLE_BITCODE = NO;
420 | INFOPLIST_FILE = Runner/Info.plist;
421 | LD_RUNPATH_SEARCH_PATHS = (
422 | "$(inherited)",
423 | "@executable_path/Frameworks",
424 | );
425 | PRODUCT_BUNDLE_IDENTIFIER = com.sinasys.eCommerceFlutter;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
429 | SWIFT_VERSION = 5.0;
430 | VERSIONING_SYSTEM = "apple-generic";
431 | };
432 | name = Debug;
433 | };
434 | 97C147071CF9000F007C117D /* Release */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CLANG_ENABLE_MODULES = YES;
440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
441 | ENABLE_BITCODE = NO;
442 | INFOPLIST_FILE = Runner/Info.plist;
443 | LD_RUNPATH_SEARCH_PATHS = (
444 | "$(inherited)",
445 | "@executable_path/Frameworks",
446 | );
447 | PRODUCT_BUNDLE_IDENTIFIER = com.sinasys.eCommerceFlutter;
448 | PRODUCT_NAME = "$(TARGET_NAME)";
449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
450 | SWIFT_VERSION = 5.0;
451 | VERSIONING_SYSTEM = "apple-generic";
452 | };
453 | name = Release;
454 | };
455 | /* End XCBuildConfiguration section */
456 |
457 | /* Begin XCConfigurationList section */
458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147031CF9000F007C117D /* Debug */,
462 | 97C147041CF9000F007C117D /* Release */,
463 | 249021D3217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
469 | isa = XCConfigurationList;
470 | buildConfigurations = (
471 | 97C147061CF9000F007C117D /* Debug */,
472 | 97C147071CF9000F007C117D /* Release */,
473 | 249021D4217E4FDB00AE95B9 /* Profile */,
474 | );
475 | defaultConfigurationIsVisible = 0;
476 | defaultConfigurationName = Release;
477 | };
478 | /* End XCConfigurationList section */
479 | };
480 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
481 | }
482 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/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/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | E Commerce Flutter
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | e_commerce_flutter
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/core/app_color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart' show Color;
2 |
3 | class AppColor {
4 | const AppColor._();
5 |
6 | static const darkOrange = Color(0xFFEC6813);
7 | static const lightOrange = Color(0xFFf8b89a);
8 |
9 | static const darkGrey = Color(0xFFA6A3A0);
10 | static const lightGrey = Color(0xFFE5E6E8);
11 | }
12 |
--------------------------------------------------------------------------------
/lib/core/app_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:e_commerce_flutter/src/model/product.dart';
3 | import 'package:e_commerce_flutter/src/model/numerical.dart';
4 | import 'package:e_commerce_flutter/src/model/categorical.dart';
5 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
6 | import 'package:e_commerce_flutter/src/model/product_category.dart';
7 | import 'package:e_commerce_flutter/src/model/product_size_type.dart';
8 | import 'package:e_commerce_flutter/src/model/recommended_product.dart';
9 | import 'package:e_commerce_flutter/src/model/bottom_nav_bar_item.dart';
10 |
11 | class AppData {
12 | const AppData._();
13 |
14 | static const String dummyText = 'Lorem Ipsum is simply dummy text of the printing and typesetting'
15 | ' industry. Lorem Ipsum has been the industry\'s standard dummy text'
16 | ' ever since the 1500s, when an unknown printer took a galley of type'
17 | ' and scrambled it to make a type specimen book.';
18 |
19 | static List products = [
20 | Product(
21 | name: 'Samsung Galaxy A53 5G',
22 | price: 460,
23 | isAvailable: true,
24 | off: 300,
25 | quantity: 0,
26 | images: [
27 | 'assets/images/a53_1.png',
28 | 'assets/images/a53_2.png',
29 | 'assets/images/a53_3.png',
30 | ],
31 | isFavorite: true,
32 | rating: 1,
33 | type: ProductType.mobile,
34 | ),
35 | Product(
36 | name: 'Samsung Galaxy Tab S7 FE',
37 | price: 380,
38 | isAvailable: false,
39 | off: 220,
40 | quantity: 0,
41 | images: [
42 | 'assets/images/tab_s7_fe_1.png',
43 | 'assets/images/tab_s7_fe_2.png',
44 | 'assets/images/tab_s7_fe_3.png',
45 | ],
46 | isFavorite: false,
47 | rating: 4,
48 | type: ProductType.tablet,
49 | ),
50 | Product(
51 | name: 'Samsung Galaxy Tab S8+',
52 | price: 650,
53 | isAvailable: true,
54 | off: null,
55 | quantity: 0,
56 | images: [
57 | 'assets/images/tab_s8_1.png',
58 | 'assets/images/tab_s8_2.png',
59 | 'assets/images/tab_s8_3.png',
60 | ],
61 | isFavorite: false,
62 | rating: 3,
63 | type: ProductType.tablet,
64 | ),
65 | Product(
66 | name: 'Samsung Galaxy Watch 4',
67 | price: 229,
68 | isAvailable: true,
69 | off: 200,
70 | quantity: 0,
71 | images: [
72 | 'assets/images/galaxy_watch_4_1.png',
73 | 'assets/images/galaxy_watch_4_2.png',
74 | 'assets/images/galaxy_watch_4_3.png',
75 | ],
76 | isFavorite: false,
77 | rating: 5,
78 | sizes: ProductSizeType(
79 | categorical: [
80 | Categorical(CategoricalType.small, true),
81 | Categorical(CategoricalType.medium, false),
82 | Categorical(CategoricalType.large, false),
83 | ],
84 | ),
85 | type: ProductType.watch,
86 | ),
87 | Product(
88 | name: 'Apple Watch 7',
89 | price: 330,
90 | isAvailable: true,
91 | off: null,
92 | quantity: 0,
93 | images: [
94 | 'assets/images/apple_watch_series_7_1.png',
95 | 'assets/images/apple_watch_series_7_2.png',
96 | 'assets/images/apple_watch_series_7_3.png',
97 | ],
98 | isFavorite: false,
99 | rating: 4,
100 | sizes: ProductSizeType(
101 | numerical: [
102 | Numerical('41', true),
103 | Numerical('45', false),
104 | ],
105 | ),
106 | type: ProductType.watch,
107 | ),
108 | Product(
109 | name: 'Beats studio 3',
110 | price: 230,
111 | isAvailable: true,
112 | off: null,
113 | quantity: 0,
114 | images: [
115 | 'assets/images/beats_studio_3-1.png',
116 | 'assets/images/beats_studio_3-2.png',
117 | 'assets/images/beats_studio_3-3.png',
118 | 'assets/images/beats_studio_3-4.png',
119 | ],
120 | isFavorite: false,
121 | rating: 2,
122 | type: ProductType.headphone,
123 | ),
124 | Product(
125 | name: 'Samsung Q60 A',
126 | price: 497,
127 | isAvailable: true,
128 | off: null,
129 | quantity: 0,
130 | images: [
131 | 'assets/images/samsung_q_60_a_1.png',
132 | 'assets/images/samsung_q_60_a_2.png',
133 | ],
134 | isFavorite: false,
135 | rating: 3,
136 | sizes: ProductSizeType(
137 | numerical: [
138 | Numerical('43', true),
139 | Numerical('50', false),
140 | Numerical('55', false),
141 | ],
142 | ),
143 | type: ProductType.tv,
144 | ),
145 | Product(
146 | name: 'Sony x 80 J',
147 | price: 498,
148 | isAvailable: true,
149 | off: null,
150 | quantity: 0,
151 | images: [
152 | 'assets/images/sony_x_80_j_1.png',
153 | 'assets/images/sony_x_80_j_2.png',
154 | ],
155 | isFavorite: false,
156 | sizes: ProductSizeType(
157 | numerical: [
158 | Numerical('50', true),
159 | Numerical('65', false),
160 | Numerical('85', false),
161 | ],
162 | ),
163 | rating: 2,
164 | type: ProductType.tv,
165 | ),
166 | ];
167 |
168 | static List categories = [
169 | ProductCategory(
170 | type: ProductType.all,
171 | icon: Icons.all_inclusive,
172 | ),
173 | ProductCategory(
174 | type: ProductType.mobile,
175 | icon: FontAwesomeIcons.mobileScreenButton,
176 | ),
177 | ProductCategory(
178 | type: ProductType.watch,
179 | icon: Icons.watch,
180 | ),
181 | ProductCategory(
182 | type: ProductType.tablet,
183 | icon: FontAwesomeIcons.tablet,
184 | ),
185 | ProductCategory(
186 | type: ProductType.headphone,
187 | icon: Icons.headphones,
188 | ),
189 | ProductCategory(
190 | type: ProductType.tv,
191 | icon: Icons.tv,
192 | ),
193 | ];
194 |
195 | static List randomColors = [
196 | const Color(0xFFFCE4EC),
197 | const Color(0xFFF3E5F5),
198 | const Color(0xFFEDE7F6),
199 | const Color(0xFFE3F2FD),
200 | const Color(0xFFE0F2F1),
201 | const Color(0xFFF1F8E9),
202 | const Color(0xFFFFF8E1),
203 | const Color(0xFFECEFF1),
204 | ];
205 |
206 | static const Color lightOrangeColor = Color(0xFFEC6813);
207 |
208 | static List bottomNavBarItems = [
209 | const BottomNavBarItem(
210 | "Home",
211 | Icon(Icons.home),
212 | ),
213 | const BottomNavBarItem(
214 | "Favorite",
215 | Icon(Icons.favorite),
216 | ),
217 | const BottomNavBarItem(
218 | "Cart",
219 | Icon(Icons.shopping_cart),
220 | ),
221 | const BottomNavBarItem(
222 | "Profile",
223 | Icon(Icons.person),
224 | ),
225 | ];
226 |
227 | static List recommendedProducts = [
228 | RecommendedProduct(
229 | cardBackgroundColor: const Color(0xFFEC6813),
230 | ),
231 | RecommendedProduct(
232 | cardBackgroundColor: const Color(0xFF3081E1),
233 | buttonBackgroundColor: const Color(0xFF9C46FF),
234 | buttonTextColor: Colors.white,
235 | ),
236 | ];
237 | }
238 |
--------------------------------------------------------------------------------
/lib/core/app_theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppTheme {
4 | const AppTheme._();
5 |
6 | static ThemeData lightAppTheme = ThemeData(
7 | elevatedButtonTheme: ElevatedButtonThemeData(
8 | style: ElevatedButton.styleFrom(
9 | padding: const EdgeInsets.all(12),
10 | backgroundColor: const Color(0xFFf16b26),
11 | shape: RoundedRectangleBorder(
12 | borderRadius: BorderRadius.circular(12),
13 | ),
14 | ),
15 | ),
16 | textButtonTheme: TextButtonThemeData(
17 | style: TextButton.styleFrom(foregroundColor: Colors.deepOrange),
18 | ),
19 | iconTheme: const IconThemeData(color: Color(0xFFA6A3A0)),
20 | textTheme: const TextTheme(
21 | displayLarge: TextStyle(
22 | fontSize: 20,
23 | fontWeight: FontWeight.bold,
24 | color: Colors.black,
25 | ),
26 | displayMedium: TextStyle(
27 | fontSize: 19,
28 | fontWeight: FontWeight.w500,
29 | color: Colors.black,
30 | ),
31 | displaySmall: TextStyle(
32 | fontSize: 18,
33 | fontWeight: FontWeight.w500,
34 | color: Colors.black,
35 | ),
36 | headlineMedium: TextStyle(
37 | fontSize: 16,
38 | fontWeight: FontWeight.w500,
39 | color: Colors.black,
40 | ),
41 | headlineSmall: TextStyle(fontSize: 15, color: Colors.grey),
42 | titleLarge: TextStyle(fontSize: 12),
43 | ),
44 | appBarTheme: const AppBarTheme(
45 | backgroundColor: Colors.transparent,
46 | elevation: 0,
47 | centerTitle: true,
48 | ),
49 | );
50 | }
51 |
--------------------------------------------------------------------------------
/lib/core/extensions.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math' show Random;
2 | import 'package:flutter/material.dart' show Color;
3 | import 'package:e_commerce_flutter/core/app_data.dart';
4 |
5 | extension ColorExtension on Color {
6 | static Color get randomColor {
7 | Random random = Random();
8 | int randNumber = random.nextInt(AppData.randomColors.length);
9 | return AppData.randomColors[randNumber];
10 | }
11 | }
12 |
13 | extension IterableExtension on Iterable {
14 | Iterable mapWithIndex(E Function(int index, T value) f) {
15 | return Iterable.generate(length).map((i) => f(i, elementAt(i)));
16 | }
17 | }
18 |
19 | extension StringExtension on String {
20 | String get nextLine {
21 | if (length < 15) {
22 | return this;
23 | } else {
24 | return "${substring(0, 15)} \n${substring(15, length)}";
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:ui' show PointerDeviceKind;
3 | import 'package:e_commerce_flutter/core/app_theme.dart';
4 | import 'package:e_commerce_flutter/src/view/screen/home_screen.dart';
5 |
6 | void main() => runApp(const MyApp());
7 |
8 | class MyApp extends StatelessWidget {
9 | const MyApp({super.key});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | scrollBehavior: const MaterialScrollBehavior().copyWith(
15 | dragDevices: {
16 | PointerDeviceKind.mouse,
17 | PointerDeviceKind.touch,
18 | },
19 | ),
20 | debugShowCheckedModeBanner: false,
21 | home: const HomeScreen(),
22 | theme: AppTheme.lightAppTheme,
23 | );
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/lib/src/controller/product_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get_rx/src/rx_types/rx_types.dart';
2 | import 'package:e_commerce_flutter/core/app_data.dart';
3 | import 'package:e_commerce_flutter/src/model/product.dart';
4 | import 'package:e_commerce_flutter/src/model/numerical.dart';
5 | import 'package:get/get_state_manager/get_state_manager.dart';
6 | import 'package:e_commerce_flutter/src/model/product_category.dart';
7 | import 'package:e_commerce_flutter/src/model/product_size_type.dart';
8 |
9 | class ProductController extends GetxController {
10 | List allProducts = AppData.products;
11 | RxList filteredProducts = AppData.products.obs;
12 | RxList cartProducts = [].obs;
13 | RxList categories = AppData.categories.obs;
14 | RxInt totalPrice = 0.obs;
15 |
16 | void filterItemsByCategory(int index) {
17 | for (ProductCategory element in categories) {
18 | element.isSelected = false;
19 | }
20 | categories[index].isSelected = true;
21 |
22 | if (categories[index].type == ProductType.all) {
23 | filteredProducts.assignAll(allProducts);
24 | } else {
25 | filteredProducts.assignAll(allProducts.where((item) {
26 | return item.type == categories[index].type;
27 | }).toList());
28 | }
29 | update();
30 | }
31 |
32 | void isFavorite(int index) {
33 | filteredProducts[index].isFavorite = !filteredProducts[index].isFavorite;
34 | update();
35 | }
36 |
37 | void addToCart(Product product) {
38 | product.quantity++;
39 | cartProducts.add(product);
40 | cartProducts.assignAll(cartProducts);
41 | calculateTotalPrice();
42 | }
43 |
44 | void increaseItemQuantity(Product product) {
45 | product.quantity++;
46 | calculateTotalPrice();
47 | update();
48 | }
49 |
50 | void decreaseItemQuantity(Product product) {
51 | product.quantity--;
52 | calculateTotalPrice();
53 | update();
54 | }
55 |
56 | bool isPriceOff(Product product) => product.off != null;
57 |
58 | bool get isEmptyCart => cartProducts.isEmpty;
59 |
60 | bool isNominal(Product product) => product.sizes?.numerical != null;
61 |
62 | void calculateTotalPrice() {
63 | totalPrice.value = 0;
64 | for (var element in cartProducts) {
65 | if (isPriceOff(element)) {
66 | totalPrice.value += element.quantity * element.off!;
67 | } else {
68 | totalPrice.value += element.quantity * element.price;
69 | }
70 | }
71 | }
72 |
73 | getFavoriteItems() {
74 | filteredProducts.assignAll(
75 | allProducts.where((item) => item.isFavorite),
76 | );
77 | }
78 |
79 | getCartItems() {
80 | cartProducts.assignAll(
81 | allProducts.where((item) => item.quantity > 0),
82 | );
83 | }
84 |
85 | getAllItems() {
86 | filteredProducts.assignAll(allProducts);
87 | }
88 |
89 | List sizeType(Product product) {
90 | ProductSizeType? productSize = product.sizes;
91 | List numericalList = [];
92 |
93 | if (productSize?.numerical != null) {
94 | for (var element in productSize!.numerical!) {
95 | numericalList.add(Numerical(element.numerical, element.isSelected));
96 | }
97 | }
98 |
99 | if (productSize?.categorical != null) {
100 | for (var element in productSize!.categorical!) {
101 | numericalList.add(
102 | Numerical(
103 | element.categorical.name,
104 | element.isSelected,
105 | ),
106 | );
107 | }
108 | }
109 |
110 | return numericalList;
111 | }
112 |
113 | void switchBetweenProductSizes(Product product, int index) {
114 | sizeType(product).forEach((element) {
115 | element.isSelected = false;
116 | });
117 |
118 | if (product.sizes?.categorical != null) {
119 | for (var element in product.sizes!.categorical!) {
120 | element.isSelected = false;
121 | }
122 |
123 | product.sizes?.categorical![index].isSelected = true;
124 | }
125 |
126 | if (product.sizes?.numerical != null) {
127 | for (var element in product.sizes!.numerical!) {
128 | element.isSelected = false;
129 | }
130 |
131 | product.sizes?.numerical![index].isSelected = true;
132 | }
133 |
134 | update();
135 | }
136 |
137 | String getCurrentSize(Product product) {
138 | String currentSize = "";
139 | if (product.sizes?.categorical != null) {
140 | for (var element in product.sizes!.categorical!) {
141 | if (element.isSelected) {
142 | currentSize = "Size: ${element.categorical.name}";
143 | }
144 | }
145 | }
146 |
147 | if (product.sizes?.numerical != null) {
148 | for (var element in product.sizes!.numerical!) {
149 | if (element.isSelected) {
150 | currentSize = "Size: ${element.numerical}";
151 | }
152 | }
153 | }
154 | return currentSize;
155 | }
156 | }
157 |
--------------------------------------------------------------------------------
/lib/src/model/bottom_nav_bar_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:e_commerce_flutter/core/app_data.dart';
2 | import 'package:flutter/foundation.dart' show immutable;
3 | import 'package:flutter/material.dart' show Color, Icon;
4 |
5 | @immutable
6 | class BottomNavBarItem {
7 | final String title;
8 | final Icon icon;
9 | final Color activeColor;
10 |
11 | const BottomNavBarItem(
12 | this.title,
13 | this.icon, {
14 | this.activeColor = AppData.lightOrangeColor,
15 | });
16 | }
17 |
--------------------------------------------------------------------------------
/lib/src/model/categorical.dart:
--------------------------------------------------------------------------------
1 | enum CategoricalType { small, medium, large }
2 |
3 | class Categorical {
4 | CategoricalType categorical;
5 | bool isSelected = false;
6 |
7 | Categorical(this.categorical, this.isSelected);
8 | }
9 |
--------------------------------------------------------------------------------
/lib/src/model/numerical.dart:
--------------------------------------------------------------------------------
1 | class Numerical {
2 | String numerical;
3 | bool isSelected = false;
4 |
5 | Numerical(this.numerical, this.isSelected);
6 | }
7 |
--------------------------------------------------------------------------------
/lib/src/model/product.dart:
--------------------------------------------------------------------------------
1 | import 'package:e_commerce_flutter/core/app_data.dart';
2 | import 'package:e_commerce_flutter/src/model/product_size_type.dart';
3 |
4 | enum ProductType { all, watch, mobile, headphone, tablet, tv }
5 |
6 | class Product {
7 | String name;
8 | int price;
9 | int? off;
10 | String about;
11 | bool isAvailable;
12 | ProductSizeType? sizes;
13 | int _quantity;
14 | List images;
15 | bool isFavorite;
16 | double rating;
17 | ProductType type;
18 |
19 | int get quantity => _quantity;
20 |
21 | set quantity(int newQuantity) {
22 | if (newQuantity >= 0) _quantity = newQuantity;
23 | }
24 |
25 | Product({
26 | this.sizes,
27 | this.about = AppData.dummyText,
28 | required this.name,
29 | required this.price,
30 | required this.isAvailable,
31 | required this.off,
32 | required int quantity,
33 | required this.images,
34 | required this.isFavorite,
35 | required this.rating,
36 | required this.type,
37 | }) : _quantity = quantity;
38 | }
39 |
--------------------------------------------------------------------------------
/lib/src/model/product_category.dart:
--------------------------------------------------------------------------------
1 | import 'package:e_commerce_flutter/src/model/product.dart';
2 | import 'package:flutter/material.dart' show IconData;
3 |
4 | class ProductCategory {
5 | ProductType type;
6 | bool isSelected;
7 | IconData icon;
8 |
9 | ProductCategory({
10 | required this.type,
11 | this.isSelected = false,
12 | required this.icon,
13 | });
14 | }
15 |
--------------------------------------------------------------------------------
/lib/src/model/product_size_type.dart:
--------------------------------------------------------------------------------
1 | import 'package:e_commerce_flutter/src/model/categorical.dart';
2 | import 'package:e_commerce_flutter/src/model/numerical.dart';
3 |
4 | class ProductSizeType {
5 | List? numerical;
6 | List? categorical;
7 |
8 | ProductSizeType({this.numerical, this.categorical});
9 | }
10 |
--------------------------------------------------------------------------------
/lib/src/model/recommended_product.dart:
--------------------------------------------------------------------------------
1 | import 'package:e_commerce_flutter/core/app_color.dart';
2 | import 'package:flutter/material.dart' show Color, Colors;
3 |
4 | class RecommendedProduct {
5 | Color? cardBackgroundColor;
6 | Color? buttonTextColor;
7 | Color? buttonBackgroundColor;
8 | String imagePath;
9 |
10 | RecommendedProduct({
11 | this.cardBackgroundColor,
12 | this.buttonTextColor = AppColor.darkOrange,
13 | this.buttonBackgroundColor = Colors.white,
14 | this.imagePath = "assets/images/shopping.png",
15 | });
16 | }
17 |
--------------------------------------------------------------------------------
/lib/src/view/animation/animated_switcher_wrapper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AnimatedSwitcherWrapper extends StatelessWidget {
4 | final Widget child;
5 |
6 | const AnimatedSwitcherWrapper({
7 | super.key,
8 | required this.child,
9 | });
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return AnimatedSwitcher(
14 | duration: const Duration(milliseconds: 500),
15 | transitionBuilder: (Widget child, Animation animation) {
16 | return ScaleTransition(scale: animation, child: child);
17 | },
18 | child: child,
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/src/view/animation/open_container_wrapper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:animations/animations.dart';
3 | import 'package:e_commerce_flutter/src/model/product.dart';
4 | import 'package:e_commerce_flutter/src/view/screen/product_detail_screen.dart';
5 |
6 | class OpenContainerWrapper extends StatelessWidget {
7 | const OpenContainerWrapper({
8 | super.key,
9 | required this.child,
10 | required this.product,
11 | });
12 |
13 | final Widget child;
14 | final Product product;
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return OpenContainer(
19 | closedShape: const RoundedRectangleBorder(
20 | borderRadius: BorderRadius.all(Radius.circular(25.0)),
21 | ),
22 | closedColor: const Color(0xFFE5E6E8),
23 | transitionType: ContainerTransitionType.fade,
24 | transitionDuration: const Duration(milliseconds: 850),
25 | closedBuilder: (_, VoidCallback openContainer) {
26 | return InkWell(onTap: openContainer, child: child);
27 | },
28 | openBuilder: (_, __) => ProductDetailScreen(product),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/src/view/animation/page_transition_switcher_wrapper.dart:
--------------------------------------------------------------------------------
1 | import 'package:animations/animations.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class PageTransitionSwitcherWrapper extends StatelessWidget {
5 | const PageTransitionSwitcherWrapper({
6 | super.key,
7 | required this.child,
8 | this.duration = const Duration(seconds: 1),
9 | });
10 |
11 | final Widget child;
12 | final Duration duration;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return PageTransitionSwitcher(
17 | duration: duration,
18 | transitionBuilder: (
19 | Widget child,
20 | Animation animation,
21 | Animation secondaryAnimation,
22 | ) {
23 | return FadeThroughTransition(
24 | animation: animation,
25 | secondaryAnimation: secondaryAnimation,
26 | child: child,
27 | );
28 | },
29 | child: child,
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/src/view/screen/cart_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:e_commerce_flutter/core/extensions.dart';
4 | import 'package:e_commerce_flutter/src/model/product.dart';
5 | import 'package:e_commerce_flutter/src/view/widget/empty_cart.dart';
6 | import 'package:e_commerce_flutter/src/controller/product_controller.dart';
7 | import 'package:e_commerce_flutter/src/view/animation/animated_switcher_wrapper.dart';
8 |
9 | final ProductController controller = Get.put(ProductController());
10 |
11 | class CartScreen extends StatelessWidget {
12 | const CartScreen({super.key});
13 |
14 | PreferredSizeWidget _appBar(BuildContext context) {
15 | return AppBar(
16 | title: Text(
17 | "My cart",
18 | style: Theme.of(context).textTheme.displayLarge,
19 | ),
20 | );
21 | }
22 |
23 | Widget cartList() {
24 | return SingleChildScrollView(
25 | child: Column(
26 | children: controller.cartProducts.mapWithIndex((index, _) {
27 | Product product = controller.cartProducts[index];
28 | return Container(
29 | width: double.infinity,
30 | margin: const EdgeInsets.all(15),
31 | padding: const EdgeInsets.symmetric(
32 | vertical: 15,
33 | horizontal: 5,
34 | ),
35 | decoration: BoxDecoration(
36 | color: Colors.grey[200]?.withValues(alpha: 0.6),
37 | borderRadius: BorderRadius.circular(10),
38 | ),
39 | child: Row(
40 | spacing: 5,
41 | children: [
42 | Expanded(
43 | child: Container(
44 | padding: const EdgeInsets.all(5),
45 | decoration: BoxDecoration(
46 | borderRadius: BorderRadius.circular(10),
47 | color: ColorExtension.randomColor,
48 | ),
49 | child: ClipRRect(
50 | borderRadius: const BorderRadius.all(Radius.circular(20)),
51 | child: ClipRRect(
52 | borderRadius: BorderRadius.circular(10),
53 | child: Padding(
54 | padding: const EdgeInsets.all(5),
55 | child: Image.asset(
56 | product.images[0],
57 | width: 100,
58 | height: 90,
59 | ),
60 | ),
61 | ),
62 | ),
63 | ),
64 | ),
65 | Expanded(
66 | child: Column(
67 | crossAxisAlignment: CrossAxisAlignment.start,
68 | children: [
69 | Text(
70 | product.name.nextLine,
71 | maxLines: 3,
72 | overflow: TextOverflow.ellipsis,
73 | style: const TextStyle(
74 | fontWeight: FontWeight.w600,
75 | fontSize: 15,
76 | ),
77 | ),
78 | const SizedBox(height: 5),
79 | Text(
80 | controller.getCurrentSize(product),
81 | style: TextStyle(
82 | color: Colors.black.withValues(alpha: 0.5),
83 | fontWeight: FontWeight.w400,
84 | ),
85 | ),
86 | const SizedBox(height: 5),
87 | Text(
88 | controller.isPriceOff(product) ? "\$${product.off}" : "\$${product.price}",
89 | style: const TextStyle(
90 | fontWeight: FontWeight.w900,
91 | fontSize: 23,
92 | ),
93 | ),
94 | ],
95 | ),
96 | ),
97 | Container(
98 | decoration: BoxDecoration(
99 | color: Colors.white,
100 | borderRadius: BorderRadius.circular(10),
101 | ),
102 | child: Row(
103 | mainAxisAlignment: MainAxisAlignment.center,
104 | mainAxisSize: MainAxisSize.min,
105 | children: [
106 | IconButton(
107 | splashRadius: 10.0,
108 | onPressed: () => controller.decreaseItemQuantity(product),
109 | icon: const Icon(
110 | Icons.remove,
111 | color: Color(0xFFEC6813),
112 | ),
113 | ),
114 | GetBuilder(
115 | builder: (ProductController controller) {
116 | return AnimatedSwitcherWrapper(
117 | child: Text(
118 | '${controller.cartProducts[index].quantity}',
119 | key: ValueKey(
120 | controller.cartProducts[index].quantity,
121 | ),
122 | style: const TextStyle(
123 | fontSize: 18,
124 | fontWeight: FontWeight.w700,
125 | ),
126 | ),
127 | );
128 | },
129 | ),
130 | IconButton(
131 | splashRadius: 10.0,
132 | onPressed: () => controller.increaseItemQuantity(product),
133 | icon: const Icon(Icons.add, color: Color(0xFFEC6813)),
134 | ),
135 | ],
136 | ),
137 | )
138 | ],
139 | ),
140 | );
141 | }).toList(),
142 | ),
143 | );
144 | }
145 |
146 | Widget bottomBarTitle() {
147 | return Container(
148 | margin: const EdgeInsets.only(bottom: 15),
149 | padding: const EdgeInsets.symmetric(horizontal: 30),
150 | child: Row(
151 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
152 | children: [
153 | const Text(
154 | "Total",
155 | style: TextStyle(fontSize: 22, fontWeight: FontWeight.w400),
156 | ),
157 | Obx(
158 | () {
159 | return AnimatedSwitcherWrapper(
160 | child: Text(
161 | "\$${controller.totalPrice.value}",
162 | key: ValueKey(controller.totalPrice.value),
163 | style: const TextStyle(
164 | fontSize: 25,
165 | fontWeight: FontWeight.w900,
166 | color: Color(0xFFEC6813),
167 | ),
168 | ),
169 | );
170 | },
171 | )
172 | ],
173 | ),
174 | );
175 | }
176 |
177 | Widget bottomBarButton() {
178 | return SizedBox(
179 | width: double.infinity,
180 | child: Padding(
181 | padding: const EdgeInsets.only(left: 30, right: 30, bottom: 20),
182 | child: ElevatedButton(
183 | style: ElevatedButton.styleFrom(padding: const EdgeInsets.all(20)),
184 | onPressed: controller.isEmptyCart ? null : () {},
185 | child: const Text("Buy Now"),
186 | ),
187 | ),
188 | );
189 | }
190 |
191 | @override
192 | Widget build(BuildContext context) {
193 | controller.getCartItems();
194 | return Scaffold(
195 | appBar: _appBar(context),
196 | body: Column(
197 | crossAxisAlignment: CrossAxisAlignment.center,
198 | children: [
199 | Expanded(
200 | child: !controller.isEmptyCart ? cartList() : const EmptyCart(),
201 | ),
202 | bottomBarTitle(),
203 | bottomBarButton()
204 | ],
205 | ),
206 | );
207 | }
208 | }
209 |
--------------------------------------------------------------------------------
/lib/src/view/screen/favorite_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:e_commerce_flutter/src/view/screen/cart_screen.dart';
4 | import 'package:e_commerce_flutter/src/controller/product_controller.dart';
5 | import 'package:e_commerce_flutter/src/view/widget/product_grid_view.dart';
6 |
7 | class FavoriteScreen extends StatelessWidget {
8 | const FavoriteScreen({super.key});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | controller.getFavoriteItems();
13 | return Scaffold(
14 | appBar: AppBar(
15 | title: Text(
16 | "Favorites",
17 | style: Theme.of(context).textTheme.displayLarge,
18 | ),
19 | ),
20 | body: Padding(
21 | padding: const EdgeInsets.all(20),
22 | child: GetBuilder(
23 | builder: (ProductController controller) {
24 | return ProductGridView(
25 | items: controller.filteredProducts,
26 | likeButtonPressed: (index) => controller.isFavorite(index),
27 | isPriceOff: (product) => controller.isPriceOff(product),
28 | );
29 | },
30 | ),
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/src/view/screen/home_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:e_commerce_flutter/core/app_data.dart';
3 | import 'package:stylish_bottom_bar/stylish_bottom_bar.dart';
4 | import 'package:e_commerce_flutter/src/view/screen/cart_screen.dart';
5 | import 'package:e_commerce_flutter/src/view/screen/profile_screen.dart';
6 | import 'package:e_commerce_flutter/src/view/screen/favorite_screen.dart';
7 | import 'package:e_commerce_flutter/src/view/screen/product_list_screen.dart';
8 | import 'package:e_commerce_flutter/src/view/animation/page_transition_switcher_wrapper.dart';
9 |
10 | class HomeScreen extends StatefulWidget {
11 | const HomeScreen({super.key});
12 |
13 | static const List screens = [
14 | ProductListScreen(),
15 | FavoriteScreen(),
16 | CartScreen(),
17 | ProfileScreen(),
18 | ];
19 |
20 | @override
21 | State createState() => _HomeScreenState();
22 | }
23 |
24 | class _HomeScreenState extends State {
25 | int newIndex = 0;
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return Center(
30 | child: ConstrainedBox(
31 | constraints: const BoxConstraints(maxWidth: 800),
32 | child: Scaffold(
33 | bottomNavigationBar: StylishBottomBar(
34 | currentIndex: newIndex,
35 | onTap: (index) {
36 | newIndex = index;
37 | setState(() {});
38 | },
39 | items: AppData.bottomNavBarItems
40 | .map(
41 | (item) => BottomBarItem(
42 | backgroundColor: item.activeColor,
43 | icon: item.icon,
44 | title: Text(
45 | item.title,
46 | style: TextStyle(
47 | color: item.activeColor,
48 | ),
49 | ),
50 | ),
51 | )
52 | .toList(),
53 | option: BubbleBarOptions(
54 | opacity: 0.3,
55 | unselectedIconColor: Colors.grey,
56 | borderRadius: BorderRadius.circular(
57 | 15.0,
58 | ),
59 | ),
60 | ),
61 | body: PageTransitionSwitcherWrapper(
62 | child: HomeScreen.screens[newIndex],
63 | ),
64 | ),
65 | ),
66 | );
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/src/view/screen/product_detail_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:e_commerce_flutter/core/app_color.dart';
4 | import 'package:e_commerce_flutter/src/model/product.dart';
5 | import 'package:flutter_rating_bar/flutter_rating_bar.dart';
6 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
7 | import 'package:e_commerce_flutter/src/view/widget/carousel_slider.dart';
8 | import 'package:e_commerce_flutter/src/controller/product_controller.dart';
9 |
10 | final ProductController controller = Get.put(ProductController());
11 |
12 | class ProductDetailScreen extends StatelessWidget {
13 | final Product product;
14 |
15 | const ProductDetailScreen(this.product, {super.key});
16 |
17 | PreferredSizeWidget _appBar(BuildContext context) {
18 | return AppBar(
19 | backgroundColor: Colors.transparent,
20 | elevation: 0,
21 | leading: IconButton(
22 | onPressed: () => Navigator.pop(context),
23 | icon: const Icon(Icons.arrow_back, color: Colors.black),
24 | ),
25 | );
26 | }
27 |
28 | Widget productPageView(double width, double height) {
29 | return Container(
30 | height: height * 0.42,
31 | width: width,
32 | decoration: const BoxDecoration(
33 | color: Color(0xFFE5E6E8),
34 | borderRadius: BorderRadius.only(
35 | bottomRight: Radius.circular(200),
36 | bottomLeft: Radius.circular(200),
37 | ),
38 | ),
39 | child: CarouselSlider(items: product.images),
40 | );
41 | }
42 |
43 | Widget _ratingBar(BuildContext context) {
44 | return Wrap(
45 | spacing: 30,
46 | crossAxisAlignment: WrapCrossAlignment.center,
47 | children: [
48 | RatingBar.builder(
49 | initialRating: product.rating,
50 | direction: Axis.horizontal,
51 | itemBuilder: (_, __) => const FaIcon(
52 | FontAwesomeIcons.solidStar,
53 | color: Colors.amber,
54 | ),
55 | onRatingUpdate: (_) {},
56 | ),
57 | Text(
58 | "(4500 Reviews)",
59 | style: Theme.of(context).textTheme.displaySmall?.copyWith(
60 | fontWeight: FontWeight.w300,
61 | ),
62 | )
63 | ],
64 | );
65 | }
66 |
67 | Widget productSizesListView() {
68 | return ListView.builder(
69 | scrollDirection: Axis.horizontal,
70 | itemCount: controller.sizeType(product).length,
71 | itemBuilder: (_, index) {
72 | return InkWell(
73 | onTap: () => controller.switchBetweenProductSizes(product, index),
74 | child: AnimatedContainer(
75 | margin: const EdgeInsets.only(right: 5, left: 5),
76 | alignment: Alignment.center,
77 | width: controller.isNominal(product) ? 40 : 70,
78 | decoration: BoxDecoration(
79 | color: controller.sizeType(product)[index].isSelected == false ? Colors.white : AppColor.lightOrange,
80 | borderRadius: BorderRadius.circular(10),
81 | border: Border.all(
82 | color: Colors.grey,
83 | width: 0.4,
84 | ),
85 | ),
86 | duration: const Duration(milliseconds: 300),
87 | child: FittedBox(
88 | child: Text(
89 | controller.sizeType(product)[index].numerical,
90 | style: const TextStyle(
91 | fontWeight: FontWeight.w500,
92 | fontSize: 15,
93 | ),
94 | ),
95 | ),
96 | ),
97 | );
98 | },
99 | );
100 | }
101 |
102 | @override
103 | Widget build(BuildContext context) {
104 | double height = MediaQuery.of(context).size.height;
105 | double width = MediaQuery.of(context).size.width;
106 | return SafeArea(
107 | child: Scaffold(
108 | extendBodyBehindAppBar: true,
109 | appBar: _appBar(context),
110 | body: SingleChildScrollView(
111 | child: Center(
112 | child: ConstrainedBox(
113 | constraints: const BoxConstraints(maxWidth: 800),
114 | child: Column(
115 | crossAxisAlignment: CrossAxisAlignment.start,
116 | children: [
117 | productPageView(width, height),
118 | const SizedBox(height: 20),
119 | Padding(
120 | padding: const EdgeInsets.all(20),
121 | child: Column(
122 | crossAxisAlignment: CrossAxisAlignment.start,
123 | children: [
124 | Text(
125 | product.name,
126 | style: Theme.of(context).textTheme.displayMedium,
127 | ),
128 | const SizedBox(height: 10),
129 | _ratingBar(context),
130 | const SizedBox(height: 10),
131 | Row(
132 | children: [
133 | Text(
134 | product.off != null ? "\$${product.off}" : "\$${product.price}",
135 | style: Theme.of(context).textTheme.displayLarge,
136 | ),
137 | const SizedBox(width: 3),
138 | Visibility(
139 | visible: product.off != null ? true : false,
140 | child: Text(
141 | "\$${product.price}",
142 | style: const TextStyle(
143 | decoration: TextDecoration.lineThrough,
144 | color: Colors.grey,
145 | fontWeight: FontWeight.w500,
146 | ),
147 | ),
148 | ),
149 | const Spacer(),
150 | Text(
151 | product.isAvailable ? "Available in stock" : "Not available",
152 | style: const TextStyle(fontWeight: FontWeight.w500),
153 | )
154 | ],
155 | ),
156 | const SizedBox(height: 30),
157 | Text(
158 | "About",
159 | style: Theme.of(context).textTheme.headlineMedium,
160 | ),
161 | const SizedBox(height: 10),
162 | Text(product.about),
163 | const SizedBox(height: 20),
164 | SizedBox(
165 | height: 40,
166 | child: GetBuilder(
167 | builder: (_) => productSizesListView(),
168 | ),
169 | ),
170 | const SizedBox(height: 20),
171 | SizedBox(
172 | width: double.infinity,
173 | child: ElevatedButton(
174 | onPressed: product.isAvailable ? () => controller.addToCart(product) : null,
175 | child: const Text("Add to cart"),
176 | ),
177 | )
178 | ],
179 | ),
180 | )
181 | ],
182 | ),
183 | ),
184 | ),
185 | ),
186 | ),
187 | );
188 | }
189 | }
190 |
--------------------------------------------------------------------------------
/lib/src/view/screen/product_list_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:e_commerce_flutter/core/app_data.dart';
4 | import 'package:e_commerce_flutter/core/app_color.dart';
5 | import 'package:e_commerce_flutter/src/controller/product_controller.dart';
6 | import 'package:e_commerce_flutter/src/view/widget/product_grid_view.dart';
7 | import 'package:e_commerce_flutter/src/view/widget/list_item_selector.dart';
8 |
9 | enum AppbarActionType { leading, trailing }
10 |
11 | final ProductController controller = Get.put(ProductController());
12 |
13 | class ProductListScreen extends StatelessWidget {
14 | const ProductListScreen({super.key});
15 |
16 | Widget appBarActionButton(AppbarActionType type) {
17 | IconData icon = Icons.ac_unit_outlined;
18 |
19 | if (type == AppbarActionType.trailing) {
20 | icon = Icons.search;
21 | }
22 |
23 | return Container(
24 | margin: const EdgeInsets.all(8),
25 | decoration: BoxDecoration(
26 | borderRadius: BorderRadius.circular(10),
27 | color: AppColor.lightGrey,
28 | ),
29 | child: IconButton(
30 | padding: const EdgeInsets.all(8),
31 | constraints: const BoxConstraints(),
32 | onPressed: () {},
33 | icon: Icon(icon, color: Colors.black),
34 | ),
35 | );
36 | }
37 |
38 | PreferredSize get _appBar {
39 | return PreferredSize(
40 | preferredSize: const Size.fromHeight(100),
41 | child: SafeArea(
42 | child: Padding(
43 | padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
44 | child: Row(
45 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
46 | children: [
47 | appBarActionButton(AppbarActionType.leading),
48 | appBarActionButton(AppbarActionType.trailing),
49 | ],
50 | ),
51 | ),
52 | ),
53 | );
54 | }
55 |
56 | Widget _recommendedProductListView(BuildContext context) {
57 | return SizedBox(
58 | height: 170,
59 | child: ListView.builder(
60 | padding: const EdgeInsets.symmetric(vertical: 10),
61 | shrinkWrap: true,
62 | scrollDirection: Axis.horizontal,
63 | itemCount: AppData.recommendedProducts.length,
64 | itemBuilder: (_, index) {
65 | return Padding(
66 | padding: const EdgeInsets.only(right: 20),
67 | child: Container(
68 | width: 300,
69 | decoration: BoxDecoration(
70 | color: AppData.recommendedProducts[index].cardBackgroundColor,
71 | borderRadius: BorderRadius.circular(15),
72 | ),
73 | child: Row(
74 | children: [
75 | Padding(
76 | padding: const EdgeInsets.only(left: 20),
77 | child: Column(
78 | crossAxisAlignment: CrossAxisAlignment.start,
79 | mainAxisAlignment: MainAxisAlignment.center,
80 | children: [
81 | Text(
82 | '30% OFF DURING \nCOVID 19',
83 | style: Theme.of(context).textTheme.displaySmall?.copyWith(
84 | color: Colors.white,
85 | ),
86 | ),
87 | const SizedBox(height: 8),
88 | ElevatedButton(
89 | onPressed: () {},
90 | style: ElevatedButton.styleFrom(
91 | backgroundColor: AppData.recommendedProducts[index].buttonBackgroundColor,
92 | elevation: 0,
93 | padding: const EdgeInsets.symmetric(horizontal: 18),
94 | shape: RoundedRectangleBorder(
95 | borderRadius: BorderRadius.circular(18),
96 | ),
97 | ),
98 | child: Text(
99 | "Get Now",
100 | style: TextStyle(
101 | color: AppData.recommendedProducts[index].buttonTextColor!,
102 | ),
103 | ),
104 | )
105 | ],
106 | ),
107 | ),
108 | const Spacer(),
109 | Image.asset(
110 | AppData.recommendedProducts[index].imagePath,
111 | height: 125,
112 | fit: BoxFit.cover,
113 | )
114 | ],
115 | ),
116 | ),
117 | );
118 | },
119 | ),
120 | );
121 | }
122 |
123 | Widget _topCategoriesHeader(BuildContext context) {
124 | return Padding(
125 | padding: const EdgeInsets.only(top: 10),
126 | child: Row(
127 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
128 | children: [
129 | Text(
130 | "Top categories",
131 | style: Theme.of(context).textTheme.headlineMedium,
132 | ),
133 | TextButton(
134 | onPressed: () {},
135 | style: TextButton.styleFrom(foregroundColor: AppColor.darkOrange),
136 | child: Text(
137 | "SEE ALL",
138 | style: Theme.of(context).textTheme.titleLarge?.copyWith(
139 | color: Colors.deepOrange.withValues(alpha: 0.7),
140 | ),
141 | ),
142 | )
143 | ],
144 | ),
145 | );
146 | }
147 |
148 | Widget _topCategoriesListView() {
149 | return ListItemSelector(
150 | categories: controller.categories,
151 | onItemPressed: (index) {
152 | controller.filterItemsByCategory(index);
153 | },
154 | );
155 | }
156 |
157 | @override
158 | Widget build(BuildContext context) {
159 | controller.getAllItems();
160 | return Scaffold(
161 | extendBodyBehindAppBar: true,
162 | appBar: _appBar,
163 | body: SafeArea(
164 | child: SingleChildScrollView(
165 | child: Padding(
166 | padding: const EdgeInsets.all(20),
167 | child: Column(
168 | crossAxisAlignment: CrossAxisAlignment.start,
169 | children: [
170 | Text(
171 | "Hello Sina",
172 | style: Theme.of(context).textTheme.displayLarge,
173 | ),
174 | Text(
175 | "Lets gets somethings?",
176 | style: Theme.of(context).textTheme.headlineSmall,
177 | ),
178 | _recommendedProductListView(context),
179 | _topCategoriesHeader(context),
180 | _topCategoriesListView(),
181 | GetBuilder(
182 | builder: (ProductController controller) {
183 | return ProductGridView(
184 | items: controller.filteredProducts,
185 | likeButtonPressed: (index) => controller.isFavorite(index),
186 | isPriceOff: (product) => controller.isPriceOff(product),
187 | );
188 | },
189 | ),
190 | ],
191 | ),
192 | ),
193 | ),
194 | ),
195 | );
196 | }
197 | }
198 |
--------------------------------------------------------------------------------
/lib/src/view/screen/profile_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ProfileScreen extends StatelessWidget {
4 | const ProfileScreen({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | body: Column(
10 | mainAxisAlignment: MainAxisAlignment.center,
11 | children: [
12 | Expanded(child: Image.asset('assets/images/profile_pic.png')),
13 | const Text(
14 | "Hello Sina!",
15 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 25),
16 | ),
17 | Row(
18 | mainAxisAlignment: MainAxisAlignment.center,
19 | children: [
20 | Image.asset('assets/images/github.png', width: 60),
21 | const SizedBox(width: 10),
22 | const Text(
23 | "https://github.com/SinaSys",
24 | style: TextStyle(fontSize: 20),
25 | )
26 | ],
27 | )
28 | ],
29 | ),
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/src/view/widget/carousel_slider.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:e_commerce_flutter/core/app_color.dart';
3 | import 'package:smooth_page_indicator/smooth_page_indicator.dart';
4 |
5 | class CarouselSlider extends StatefulWidget {
6 | const CarouselSlider({
7 | super.key,
8 | required this.items,
9 | });
10 |
11 | final List items;
12 |
13 | @override
14 | State createState() => _CarouselSliderState();
15 | }
16 |
17 | class _CarouselSliderState extends State {
18 | int newIndex = 0;
19 |
20 | @override
21 | Widget build(BuildContext context) {
22 | var height = MediaQuery.of(context).size.height;
23 | return Column(
24 | children: [
25 | SizedBox(
26 | height: height * 0.32,
27 | child: PageView.builder(
28 | itemCount: widget.items.length,
29 | onPageChanged: (int currentIndex) {
30 | newIndex = currentIndex;
31 | setState(() {});
32 | },
33 | itemBuilder: (_, index) {
34 | return FittedBox(
35 | fit: BoxFit.none,
36 | child: Image.asset(widget.items[index], scale: 3),
37 | );
38 | },
39 | ),
40 | ),
41 | AnimatedSmoothIndicator(
42 | effect: const WormEffect(
43 | dotColor: Colors.white,
44 | activeDotColor: AppColor.darkOrange,
45 | ),
46 | count: widget.items.length,
47 | activeIndex: newIndex,
48 | )
49 | ],
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/src/view/widget/empty_cart.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class EmptyCart extends StatelessWidget {
4 | const EmptyCart({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Column(
9 | children: [
10 | Expanded(
11 | child: Center(
12 | child: Image.asset('assets/images/empty_cart.png'),
13 | ),
14 | ),
15 | const Text(
16 | "Empty cart",
17 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
18 | )
19 | ],
20 | );
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lib/src/view/widget/list_item_selector.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
4 | import 'package:e_commerce_flutter/src/model/product_category.dart';
5 |
6 | class ListItemSelector extends StatefulWidget {
7 | const ListItemSelector({
8 | super.key,
9 | required this.categories,
10 | required this.onItemPressed,
11 | });
12 |
13 | final List categories;
14 | final Function(int) onItemPressed;
15 |
16 | @override
17 | State createState() => _ListItemSelectorState();
18 | }
19 |
20 | class _ListItemSelectorState extends State {
21 | Widget item(ProductCategory item, int index) {
22 | return Tooltip(
23 | message: item.type.name.capitalizeFirst,
24 | child: AnimatedContainer(
25 | margin: const EdgeInsets.only(left: 5),
26 | duration: const Duration(milliseconds: 500),
27 | width: 50,
28 | height: 100,
29 | decoration: BoxDecoration(
30 | color: item.isSelected == false
31 | ? const Color(0xFFE5E6E8)
32 | : const Color(0xFFf16b26),
33 | borderRadius: BorderRadius.circular(10),
34 | ),
35 | child: IconButton(
36 | splashRadius: 0.1,
37 | icon: FaIcon(
38 | item.icon,
39 | color: item.isSelected == false
40 | ? const Color(0xFFA6A3A0)
41 | : Colors.white,
42 | ),
43 | onPressed: () {
44 | widget.onItemPressed(index);
45 | for (var element in widget.categories) {
46 | element.isSelected = false;
47 | }
48 |
49 | item.isSelected = true;
50 | setState(() {});
51 | },
52 | ),
53 | ),
54 | );
55 | }
56 |
57 | @override
58 | Widget build(BuildContext context) {
59 | return SizedBox(
60 | height: 50,
61 | child: ListView.builder(
62 | scrollDirection: Axis.horizontal,
63 | itemCount: widget.categories.length,
64 | itemBuilder: (_, index) => item(widget.categories[index], index),
65 | ),
66 | );
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/src/view/widget/product_grid_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:e_commerce_flutter/src/model/product.dart';
3 | import 'package:e_commerce_flutter/src/view/animation/open_container_wrapper.dart';
4 |
5 | class ProductGridView extends StatelessWidget {
6 | const ProductGridView({
7 | super.key,
8 | required this.items,
9 | required this.isPriceOff,
10 | required this.likeButtonPressed,
11 | });
12 |
13 | final List items;
14 | final bool Function(Product product) isPriceOff;
15 | final void Function(int index) likeButtonPressed;
16 |
17 | Widget _gridItemHeader(Product product, int index) {
18 | return Padding(
19 | padding: const EdgeInsets.all(10.0),
20 | child: Row(
21 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
22 | children: [
23 | Visibility(
24 | visible: isPriceOff(product),
25 | child: Container(
26 | decoration: BoxDecoration(
27 | borderRadius: BorderRadius.circular(30),
28 | color: Colors.white,
29 | ),
30 | width: 80,
31 | height: 30,
32 | alignment: Alignment.center,
33 | child: const Text(
34 | "30% OFF",
35 | style: TextStyle(fontWeight: FontWeight.w600),
36 | ),
37 | ),
38 | ),
39 | IconButton(
40 | icon: Icon(
41 | Icons.favorite,
42 | color: items[index].isFavorite
43 | ? Colors.redAccent
44 | : const Color(0xFFA6A3A0),
45 | ),
46 | onPressed: () => likeButtonPressed(index),
47 | ),
48 | ],
49 | ),
50 | );
51 | }
52 |
53 | Widget _gridItemBody(Product product) {
54 | return Container(
55 | padding: const EdgeInsets.all(15),
56 | decoration: BoxDecoration(
57 | color: const Color(0xFFE5E6E8),
58 | borderRadius: BorderRadius.circular(20),
59 | ),
60 | child: Image.asset(product.images[0], scale: 3),
61 | );
62 | }
63 |
64 | Widget _gridItemFooter(Product product, BuildContext context) {
65 | return Padding(
66 | padding: const EdgeInsets.all(8.0),
67 | child: Container(
68 | padding: const EdgeInsets.all(10),
69 | height: 70,
70 | decoration: const BoxDecoration(
71 | color: Colors.white,
72 | borderRadius: BorderRadius.only(
73 | bottomLeft: Radius.circular(15),
74 | bottomRight: Radius.circular(15),
75 | ),
76 | ),
77 | child: Column(
78 | mainAxisAlignment: MainAxisAlignment.center,
79 | crossAxisAlignment: CrossAxisAlignment.start,
80 | children: [
81 | FittedBox(
82 | child: Text(
83 | product.name,
84 | overflow: TextOverflow.ellipsis,
85 | maxLines: 1,
86 | style: const TextStyle(
87 | fontWeight: FontWeight.w500,
88 | color: Colors.grey,
89 | ),
90 | ),
91 | ),
92 | const SizedBox(height: 5),
93 | Row(
94 | children: [
95 | Text(
96 | product.off != null
97 | ? "\$${product.off}"
98 | : "\$${product.price}",
99 | style: Theme.of(context).textTheme.headlineMedium,
100 | ),
101 | const SizedBox(width: 3),
102 | Visibility(
103 | visible: product.off != null ? true : false,
104 | child: Text(
105 | "\$${product.price}",
106 | style: const TextStyle(
107 | decoration: TextDecoration.lineThrough,
108 | color: Colors.grey,
109 | fontWeight: FontWeight.w500,
110 | ),
111 | ),
112 | )
113 | ],
114 | )
115 | ],
116 | ),
117 | ),
118 | );
119 | }
120 |
121 | @override
122 | Widget build(BuildContext context) {
123 | return Padding(
124 | padding: const EdgeInsets.only(top: 20),
125 | child: GridView.builder(
126 | itemCount: items.length,
127 | shrinkWrap: true,
128 | physics: const ScrollPhysics(),
129 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
130 | childAspectRatio: 10 / 16,
131 | crossAxisCount: 2,
132 | mainAxisSpacing: 10,
133 | crossAxisSpacing: 10,
134 | ),
135 | itemBuilder: (_, index) {
136 | Product product = items[index];
137 | return OpenContainerWrapper(
138 | product: product,
139 | child: GridTile(
140 | header: _gridItemHeader(product, index),
141 | footer: _gridItemFooter(product, context),
142 | child: _gridItemBody(product),
143 | ),
144 | );
145 | },
146 | ),
147 | );
148 | }
149 | }
150 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | animations:
5 | dependency: "direct main"
6 | description:
7 | name: animations
8 | sha256: d3d6dcfb218225bbe68e87ccf6378bbb2e32a94900722c5f81611dad089911cb
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.0.11"
12 | archive:
13 | dependency: transitive
14 | description:
15 | name: archive
16 | sha256: "6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "4.0.2"
20 | args:
21 | dependency: transitive
22 | description:
23 | name: args
24 | sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.5.0"
28 | async:
29 | dependency: transitive
30 | description:
31 | name: async
32 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "2.11.0"
36 | boolean_selector:
37 | dependency: transitive
38 | description:
39 | name: boolean_selector
40 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "2.1.1"
44 | characters:
45 | dependency: transitive
46 | description:
47 | name: characters
48 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.3.0"
52 | checked_yaml:
53 | dependency: transitive
54 | description:
55 | name: checked_yaml
56 | sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "2.0.3"
60 | cli_util:
61 | dependency: transitive
62 | description:
63 | name: cli_util
64 | sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "0.4.1"
68 | clock:
69 | dependency: transitive
70 | description:
71 | name: clock
72 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "1.1.1"
76 | collection:
77 | dependency: transitive
78 | description:
79 | name: collection
80 | sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "1.19.0"
84 | crypto:
85 | dependency: transitive
86 | description:
87 | name: crypto
88 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "3.0.3"
92 | fake_async:
93 | dependency: transitive
94 | description:
95 | name: fake_async
96 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "1.3.1"
100 | ffi:
101 | dependency: transitive
102 | description:
103 | name: ffi
104 | sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "2.1.3"
108 | flutter:
109 | dependency: "direct main"
110 | description: flutter
111 | source: sdk
112 | version: "0.0.0"
113 | flutter_launcher_icons:
114 | dependency: "direct dev"
115 | description:
116 | name: flutter_launcher_icons
117 | sha256: "31cd0885738e87c72d6f055564d37fabcdacee743b396b78c7636c169cac64f5"
118 | url: "https://pub.dev"
119 | source: hosted
120 | version: "0.14.2"
121 | flutter_lints:
122 | dependency: "direct dev"
123 | description:
124 | name: flutter_lints
125 | sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
126 | url: "https://pub.dev"
127 | source: hosted
128 | version: "5.0.0"
129 | flutter_rating_bar:
130 | dependency: "direct main"
131 | description:
132 | name: flutter_rating_bar
133 | sha256: d2af03469eac832c591a1eba47c91ecc871fe5708e69967073c043b2d775ed93
134 | url: "https://pub.dev"
135 | source: hosted
136 | version: "4.0.1"
137 | flutter_test:
138 | dependency: "direct dev"
139 | description: flutter
140 | source: sdk
141 | version: "0.0.0"
142 | font_awesome_flutter:
143 | dependency: "direct main"
144 | description:
145 | name: font_awesome_flutter
146 | sha256: d3a89184101baec7f4600d58840a764d2ef760fe1c5a20ef9e6b0e9b24a07a3a
147 | url: "https://pub.dev"
148 | source: hosted
149 | version: "10.8.0"
150 | get:
151 | dependency: "direct main"
152 | description:
153 | name: get
154 | sha256: e4e7335ede17452b391ed3b2ede016545706c01a02292a6c97619705e7d2a85e
155 | url: "https://pub.dev"
156 | source: hosted
157 | version: "4.6.6"
158 | image:
159 | dependency: transitive
160 | description:
161 | name: image
162 | sha256: "8346ad4b5173924b5ddddab782fc7d8a6300178c8b1dc427775405a01701c4a6"
163 | url: "https://pub.dev"
164 | source: hosted
165 | version: "4.5.2"
166 | json_annotation:
167 | dependency: transitive
168 | description:
169 | name: json_annotation
170 | sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
171 | url: "https://pub.dev"
172 | source: hosted
173 | version: "4.9.0"
174 | leak_tracker:
175 | dependency: transitive
176 | description:
177 | name: leak_tracker
178 | sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
179 | url: "https://pub.dev"
180 | source: hosted
181 | version: "10.0.7"
182 | leak_tracker_flutter_testing:
183 | dependency: transitive
184 | description:
185 | name: leak_tracker_flutter_testing
186 | sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
187 | url: "https://pub.dev"
188 | source: hosted
189 | version: "3.0.8"
190 | leak_tracker_testing:
191 | dependency: transitive
192 | description:
193 | name: leak_tracker_testing
194 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
195 | url: "https://pub.dev"
196 | source: hosted
197 | version: "3.0.1"
198 | lints:
199 | dependency: transitive
200 | description:
201 | name: lints
202 | sha256: "4a16b3f03741e1252fda5de3ce712666d010ba2122f8e912c94f9f7b90e1a4c3"
203 | url: "https://pub.dev"
204 | source: hosted
205 | version: "5.1.0"
206 | matcher:
207 | dependency: transitive
208 | description:
209 | name: matcher
210 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
211 | url: "https://pub.dev"
212 | source: hosted
213 | version: "0.12.16+1"
214 | material_color_utilities:
215 | dependency: transitive
216 | description:
217 | name: material_color_utilities
218 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
219 | url: "https://pub.dev"
220 | source: hosted
221 | version: "0.11.1"
222 | meta:
223 | dependency: transitive
224 | description:
225 | name: meta
226 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
227 | url: "https://pub.dev"
228 | source: hosted
229 | version: "1.15.0"
230 | path:
231 | dependency: transitive
232 | description:
233 | name: path
234 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
235 | url: "https://pub.dev"
236 | source: hosted
237 | version: "1.9.0"
238 | petitparser:
239 | dependency: transitive
240 | description:
241 | name: petitparser
242 | sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
243 | url: "https://pub.dev"
244 | source: hosted
245 | version: "6.0.2"
246 | posix:
247 | dependency: transitive
248 | description:
249 | name: posix
250 | sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a
251 | url: "https://pub.dev"
252 | source: hosted
253 | version: "6.0.1"
254 | sky_engine:
255 | dependency: transitive
256 | description: flutter
257 | source: sdk
258 | version: "0.0.0"
259 | smooth_page_indicator:
260 | dependency: "direct main"
261 | description:
262 | name: smooth_page_indicator
263 | sha256: "3b28b0c545fa67ed9e5997d9f9720d486f54c0c607e056a1094544e36934dff3"
264 | url: "https://pub.dev"
265 | source: hosted
266 | version: "1.2.0+3"
267 | source_span:
268 | dependency: transitive
269 | description:
270 | name: source_span
271 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
272 | url: "https://pub.dev"
273 | source: hosted
274 | version: "1.10.0"
275 | stack_trace:
276 | dependency: transitive
277 | description:
278 | name: stack_trace
279 | sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
280 | url: "https://pub.dev"
281 | source: hosted
282 | version: "1.12.0"
283 | stream_channel:
284 | dependency: transitive
285 | description:
286 | name: stream_channel
287 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
288 | url: "https://pub.dev"
289 | source: hosted
290 | version: "2.1.2"
291 | string_scanner:
292 | dependency: transitive
293 | description:
294 | name: string_scanner
295 | sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
296 | url: "https://pub.dev"
297 | source: hosted
298 | version: "1.3.0"
299 | stylish_bottom_bar:
300 | dependency: "direct main"
301 | description:
302 | name: stylish_bottom_bar
303 | sha256: ca72557a5bd8f44caae9017eb3a73002e9189d7a9d2fac598fa55be13724f32b
304 | url: "https://pub.dev"
305 | source: hosted
306 | version: "1.1.0"
307 | term_glyph:
308 | dependency: transitive
309 | description:
310 | name: term_glyph
311 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
312 | url: "https://pub.dev"
313 | source: hosted
314 | version: "1.2.1"
315 | test_api:
316 | dependency: transitive
317 | description:
318 | name: test_api
319 | sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
320 | url: "https://pub.dev"
321 | source: hosted
322 | version: "0.7.3"
323 | typed_data:
324 | dependency: transitive
325 | description:
326 | name: typed_data
327 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "1.3.2"
331 | vector_math:
332 | dependency: transitive
333 | description:
334 | name: vector_math
335 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "2.1.4"
339 | vm_service:
340 | dependency: transitive
341 | description:
342 | name: vm_service
343 | sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "14.3.0"
347 | xml:
348 | dependency: transitive
349 | description:
350 | name: xml
351 | sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "6.5.0"
355 | yaml:
356 | dependency: transitive
357 | description:
358 | name: yaml
359 | sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "3.1.2"
363 | sdks:
364 | dart: ">=3.6.0-0 <4.0.0"
365 | flutter: ">=3.18.0-18.0.pre.54"
366 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: e_commerce_flutter
2 | description: E-Commerce App built in flutter using GetX
3 |
4 |
5 | publish_to: 'none'
6 |
7 | version: 1.0.0+1
8 |
9 | environment:
10 | sdk: '>=3.0.0 <4.0.0'
11 |
12 | dependencies:
13 | flutter:
14 | sdk: flutter
15 |
16 |
17 | get: ^4.6.6
18 | smooth_page_indicator: ^1.2.0+3
19 | flutter_rating_bar: ^4.0.1
20 | font_awesome_flutter: ^10.8.0
21 | animations: ^2.0.11
22 | stylish_bottom_bar: ^1.1.0
23 |
24 | dev_dependencies:
25 | flutter_lints: ^5.0.0
26 | flutter_test:
27 | sdk: flutter
28 | flutter_launcher_icons: ^0.14.2
29 |
30 | flutter_launcher_icons:
31 | android: "launcher_icon"
32 | image_path: "assets/images/logo.png"
33 | adaptive_icon_background : "#ffffff"
34 | adaptive_icon_foreground : "assets/images/logo.png"
35 |
36 |
37 | flutter:
38 |
39 | uses-material-design: true
40 |
41 | assets:
42 | - assets/images/
43 |
--------------------------------------------------------------------------------
/screenshots/cart_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/screenshots/cart_screen.png
--------------------------------------------------------------------------------
/screenshots/detail_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/screenshots/detail_screen.png
--------------------------------------------------------------------------------
/screenshots/home_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/screenshots/home_screen.png
--------------------------------------------------------------------------------
/screenshots/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/screenshots/preview.gif
--------------------------------------------------------------------------------
/screenshots/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/screenshots/screenshot.png
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SinaSys/flutter_ecommerce_app/a71ea6c45e110529992bc607275521fb37993607/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | e_commerce_flutter
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "e_commerce_flutter",
3 | "short_name": "e_commerce_flutter",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------