├── .gitignore
├── .metadata
├── .vscode
└── settings.json
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── ecommerce_major_project
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.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
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── applepay.json
├── dialog_flow_auth.json
├── dialog_flow_key.json
├── fonts
│ └── Poppins
│ │ ├── Poppins-Black.ttf
│ │ ├── Poppins-BlackItalic.ttf
│ │ ├── Poppins-Bold.ttf
│ │ ├── Poppins-BoldItalic.ttf
│ │ ├── Poppins-ExtraBold.ttf
│ │ ├── Poppins-ExtraBoldItalic.ttf
│ │ ├── Poppins-ExtraLight.ttf
│ │ ├── Poppins-ExtraLightItalic.ttf
│ │ ├── Poppins-Italic.ttf
│ │ ├── Poppins-Light.ttf
│ │ ├── Poppins-LightItalic.ttf
│ │ ├── Poppins-Medium.ttf
│ │ ├── Poppins-MediumItalic.ttf
│ │ ├── Poppins-Regular.ttf
│ │ ├── Poppins-SemiBold.ttf
│ │ ├── Poppins-SemiBoldItalic.ttf
│ │ ├── Poppins-Thin.ttf
│ │ └── Poppins-ThinItalic.ttf
├── google_pay_config.json
└── images
│ ├── 4957136.jpg
│ ├── License free.txt
│ ├── License premium.txt
│ ├── amazon_in.png
│ ├── appliances-category.jpg
│ ├── appliances-category.png
│ ├── appliances-svg.svg
│ ├── appliances.jpeg
│ ├── books-category.jpg
│ ├── books-svg.svg
│ ├── books.jpeg
│ ├── camera.png
│ ├── chatbot-final.png
│ ├── chatbot2.png
│ ├── chatbott.jpg
│ ├── croppedsuccess.gif
│ ├── dealOfTheDaypng.png
│ ├── electronics.jpeg
│ ├── elite-without-bg.png
│ ├── elite.jpg
│ ├── elite.png
│ ├── elite.rar
│ ├── essentials-category.jpg
│ ├── essentials-dark-svg.svg
│ ├── essentials-svg.svg
│ ├── essentials.jpeg
│ ├── fashion-category.jpg
│ ├── fashion-svg.svg
│ ├── fashion.jpeg
│ ├── gallery.png
│ ├── login.svg
│ ├── loginBackground.png
│ ├── loginPage.png
│ ├── loginSvg.svg
│ ├── logo.png
│ ├── mobile-svg.svg
│ ├── mobiles-category.jpg
│ ├── mobiles.jpeg
│ ├── no-orders.png
│ ├── no-orderss.png
│ ├── register.svg
│ ├── search-svg.svg
│ ├── splash_1.png
│ ├── splash_2.png
│ ├── splash_3.png
│ └── successpayment.JPG
├── 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-50x50@1x.png
│ │ ├── Icon-App-50x50@2x.png
│ │ ├── Icon-App-57x57@1x.png
│ │ ├── Icon-App-57x57@2x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-72x72@1x.png
│ │ ├── Icon-App-72x72@2x.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
├── common
│ └── widgets
│ │ ├── bottom_bar.dart
│ │ ├── bottom_navbar.dart
│ │ ├── color_loader_2.dart
│ │ ├── color_loader_3.dart
│ │ ├── custom_appbar.dart
│ │ ├── custom_button.dart
│ │ ├── custom_textfield.dart
│ │ ├── loader.dart
│ │ └── stars.dart
├── constants
│ ├── error_handling.dart
│ ├── global_variables.dart
│ └── utils.dart
├── features
│ ├── account
│ │ ├── screens
│ │ │ ├── account_screen.dart
│ │ │ └── all_orders_screen.dart
│ │ ├── services
│ │ │ └── account_services.dart
│ │ └── widgets
│ │ │ ├── account_button.dart
│ │ │ ├── below_app_bar.dart
│ │ │ ├── orders.dart
│ │ │ ├── single_product.dart
│ │ │ └── top_buttons.dart
│ ├── address
│ │ ├── screens
│ │ │ ├── address_screen.dart
│ │ │ └── payment_screen.dart
│ │ ├── services
│ │ │ └── address_services.dart
│ │ └── widgets
│ │ │ └── delivery_product.dart
│ ├── admin
│ │ ├── models
│ │ │ └── sales.dart
│ │ ├── screens
│ │ │ ├── add_product_screen.dart
│ │ │ ├── admin_screen.dart
│ │ │ ├── analytics_screen.dart
│ │ │ ├── orders_screen.dart
│ │ │ └── posts_screen.dart
│ │ ├── services
│ │ │ └── admin_services.dart
│ │ └── widgets
│ │ │ ├── bar_graph
│ │ │ ├── bar_data.dart
│ │ │ ├── bar_graph.dart
│ │ │ └── individual_bar.dart
│ │ │ └── sales_graph
│ │ │ ├── individual_bar.dart
│ │ │ ├── sales_data.dart
│ │ │ └── sales_graph.dart
│ ├── auth
│ │ ├── screens
│ │ │ └── auth_screen.dart
│ │ └── services
│ │ │ └── auth_service.dart
│ ├── cart
│ │ ├── screens
│ │ │ └── cart_screen.dart
│ │ ├── services
│ │ │ └── cart_services.dart
│ │ └── widgets
│ │ │ ├── cart_product.dart
│ │ │ └── cart_subtotal.dart
│ ├── category_grid
│ │ └── category_grid_screen.dart
│ ├── chatbot
│ │ ├── chatbot_screen.dart
│ │ └── message_screen.dart
│ ├── home
│ │ ├── providers
│ │ │ ├── filter_provider.dart
│ │ │ └── search_provider.dart
│ │ ├── screens
│ │ │ ├── category_deals_screen.dart
│ │ │ ├── filters_screen.dart
│ │ │ ├── home_screen.dart
│ │ │ ├── my_end_drawer.dart
│ │ │ ├── wish_list_product.dart
│ │ │ └── wish_list_screen.dart
│ │ ├── services
│ │ │ └── home_services.dart
│ │ └── widgets
│ │ │ ├── address_box.dart
│ │ │ ├── carousel_image.dart
│ │ │ ├── deal_of_day.dart
│ │ │ └── top_categories.dart
│ ├── order_details
│ │ └── screens
│ │ │ └── order_details_screen.dart
│ ├── product_details
│ │ ├── screens
│ │ │ └── product_detail_screen.dart
│ │ └── services
│ │ │ └── product_detail_services.dart
│ ├── return_product
│ │ └── return_product_screen.dart
│ ├── search
│ │ ├── screens
│ │ │ └── search_screen.dart
│ │ ├── services
│ │ │ └── search_services.dart
│ │ └── widgets
│ │ │ └── searched_product.dart
│ ├── search_delegate
│ │ └── my_search_screen.dart
│ └── splash
│ │ ├── splash_screen.dart
│ │ └── widgets
│ │ ├── body.dart
│ │ └── splash_content.dart
├── main.dart
├── models
│ ├── order.dart
│ ├── product.dart
│ ├── rating.dart
│ ├── review.dart
│ └── user.dart
├── providers
│ └── user_provider.dart
└── router.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── GitHubRepo.svg
└── new
│ ├── flutter_01.png
│ ├── flutter_02.png
│ ├── flutter_03.png
│ ├── flutter_04.png
│ ├── flutter_05.png
│ ├── flutter_06.png
│ ├── flutter_07.png
│ ├── flutter_08.jpg
│ ├── flutter_09.jpg
│ ├── flutter_10.png
│ ├── flutter_11.png
│ ├── flutter_12.png
│ ├── flutter_13.png
│ ├── flutter_14.png
│ ├── flutter_15.png
│ ├── flutter_16.png
│ ├── flutter_17.png
│ └── flutter_18.png
├── server
├── .gitignore
├── index.js
├── middlewares
│ ├── admin.js
│ └── auth.js
├── models
│ ├── order.js
│ ├── product.js
│ ├── rating.js
│ └── user.js
├── package-lock.json
├── package.json
└── routes
│ ├── admin.js
│ ├── auth.js
│ ├── product.js
│ └── user.js
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 7048ed95a5ad3e43d697e0c397464193991fc230
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
17 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
18 | - platform: android
19 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
20 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
21 | - platform: ios
22 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
23 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
24 | - platform: linux
25 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
26 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
27 | - platform: macos
28 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
29 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
30 | - platform: web
31 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
32 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
33 | - platform: windows
34 | create_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
35 | base_revision: 7048ed95a5ad3e43d697e0c397464193991fc230
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "java.configuration.updateBuildConfiguration": "interactive"
3 | }
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ## Few Screenshots
6 |
7 | | Sign up | Sign in |
8 | | ------------------ | ------------------ |
9 | |
|
|
10 |
11 |
12 | | Home | Categories | Cart | Checkout |
13 | | ------------------ | ------------------ | ------------------ | ------------------ |
14 | |
|
|
|
|
15 |
16 |
17 | | Pay now | Payment gateway (Razorpay) | Payment success | Order placed |
18 | | ------------------ | ------------------ | ------------------ | ------------------ |
19 | |
|
|
|
|
20 |
21 |
22 | | Orders | Order details | Chatbot(1) | Chatbot(2) |
23 | | ------------------ | ------------------ | ------------------ | ------------------ |
24 | |
|
|
|
|
25 |
26 |
27 | | Profile picture |
28 | | ------------------ |
29 | |
|
30 |
31 |
32 | | Search suggestions | Search history | Search via audio |
33 | | ------------------ | ------------------ | ------------------ |
34 | |
|
|
|
35 |
36 | ## Features
37 |
38 | - User
39 | - Email and password authentication
40 | - Search | Search history | Search via Audio
41 | - Filters
42 | - Categories
43 | - Rating
44 | - Deal of the Day
45 | - Cart integration
46 | - Payment integration with Razorpay API
47 | - Chatbot (Customer Support)
48 | - Order history
49 | - Track order status
50 | - Sign out
51 | - Admin
52 | - Product Management (View | Add | Delete Products)
53 | - Order Management (View | Update Orders)
54 | - Sales Analytics (View Total Sales | Sales Graphs)
55 |
56 | ## Technologies used
57 | |**Server**| **Client** | **Database** | **SAAS (media assets)** |
58 | | ------------------ | ------------------ | ------------------ | ------------------ |
59 | | [Nodejs](https://nodejs.org/en/docs), [Expressjs](https://expressjs.com/) | [Flutter](https://docs.flutter.dev/) | [MongoDB](https://www.mongodb.com/docs/) | [Cloudinary](https://cloudinary.com/documentation) |
60 |
61 | npm packages used : [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken), [bcryptjs](https://www.npmjs.com/package/bcryptjs), [mongoose](https://www.npmjs.com/package/mongoose)
62 |
63 | Chatbot : [DialogFlow](https://cloud.google.com/dialogflow/docs)
64 |
65 | State management : [Provider](https://pub.dev/packages/provider)
66 |
67 | ___
68 |
69 | #### I hope this repository will be helpful to flutter developers. Feel free to reach out to me in case you have any queries or feedback.
70 |
--------------------------------------------------------------------------------
/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 FileNotFoundException("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 flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.ecommerce_major_project"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50 | minSdkVersion 21
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
17 |
25 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/ecommerce_major_project/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.ecommerce_major_project
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/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.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
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 | task clean(type: 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-7.5-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/applepay.json:
--------------------------------------------------------------------------------
1 | {
2 | "provider": "apple_pay",
3 | "data": {
4 | "merchantIdentifier": "merchant.com.sams.fish",
5 | "displayName": "Sam's Fish",
6 | "merchantCapabilities": ["3DS", "debit", "credit"],
7 | "supportedNetworks": ["amex", "visa", "discover", "masterCard"],
8 | "countryCode": "US",
9 | "currencyCode": "USD",
10 | "requiredBillingContactFields": ["post"],
11 | "requiredShippingContactFields": ["post", "phone", "email", "name"],
12 | "shippingMethods": [
13 | {
14 | "amount": "0.00",
15 | "detail": "Available within an hour",
16 | "identifier": "in_store_pickup",
17 | "label": "In-Store Pickup"
18 | },
19 | {
20 | "amount": "4.99",
21 | "detail": "5-8 Business Days",
22 | "identifier": "flat_rate_shipping_id_2",
23 | "label": "UPS Ground"
24 | },
25 | {
26 | "amount": "29.99",
27 | "detail": "1-3 Business Days",
28 | "identifier": "flat_rate_shipping_id_1",
29 | "label": "FedEx Priority Mail"
30 | }
31 | ]
32 | }
33 | }
--------------------------------------------------------------------------------
/assets/dialog_flow_auth.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "service_account",
3 | "project_id": "akrchatbot-edym",
4 | "private_key_id": "64308a3548fa950535e0d79cd0eea58e8fc60043",
5 | "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDGX5jE566uV0+t\n9saa0k09F9VEOCdRO9tKPkEzcrMIyVIwlguUxz7ZGgS0JKOEOvnSWJ57lNmm6uSm\nN5BBw7w6cvwttJfiLk4RWxqQg5kpOUeU1xWr0f34nvZoyNYeqkpsVllnollZHSO7\nn3Q2guElAwerCZhnevX0XQJ+ElHIaJRT98ydH9BfWaou9WSnuRI8i+NwW5q7pgxN\nUgoDUHV2FXUWkHAgwR1WH18ABDY0wu7hN9XiHhB1u8HLbz8C0hkZy4qm9LGcqsrU\ngGnf5scdCk5HeApzM+XINhi1SQvqDE6siN1kqJR6ZcffKcn4Z1QlGmzfwWMbhbjr\n5w3g4uMXAgMBAAECggEACoB2GHqBc2ZY6AdH9VtLzn+sASwN3M2T6ubH0d7xHnZ1\n/O98lnhD2f94H0dPRslOf3XEkhtLuHv39dq8LtcbaGa89fh5D/bOmDmf+uWUnquT\nIAyQ76My1E4qElsLht0SCpE5s3RTUZXq1dx3rQkZvTlfVw0vfc7zJWglISJ8JOVY\nhR+L6yJorB1qlOqgDEOwWLpbr20QAUHyJ2HKTfZGmp3T2g7LqojLTH2yW4LpPedH\nu4wYasfvFkH3W7+mJgYp5PX5QNwmUPnBx9MwheYsDQfMWAtVe65kvS9DbmQH4eUO\nUyRJHNKs2QXlw+wj0r9yPS0MA4ZuZUkEE7wqrcnC1QKBgQDx/a+N693/fh+nMif3\nuW/KRvhxHrs0yJ9PshLaELWyfJUDVmXZ0Sva5N/1FYC/IvPGkkQA/W9EfAgj1o/y\nxWnKexk9CaLiQaEH3bFi7m/GJrpm9gk757IO8Yue/JWnTriHtbh45fpa4xot0/Bs\nMDAbKubAJA/pNQ3DZGRNlx3a/QKBgQDR239lkG9kmOjxgzmZIv0gO1NL0Y2NEbAe\nYqg+nMkhk3YBh+TOXSAseFTcFZWr6faWAPk4efZqapcNpwcTcuqCHP2fax2OfRW7\nncnMrsjyVm3oJDBhyJL2omzkg991uwXX2LOGBcLfVhZhgBIq/SMd7QKOZuFn6t2J\nFR/r3K6EowKBgGWiW4oqxylYSmkJarnjey0kk5HHC29G14o8SyilHfrh0h/9uHc8\nH8Qmnl0r88/TGTmMEt2rk4Da6vxKUFjxStZMzzPQiUWntL8+ABOB+xXpDB7UNNqh\nHCqkjjRu91e2e1AcJWc5h+WGPmeC/RYjQwEWCqYmPzx+GNK4plvkHRjtAoGAFJLZ\nTYK4ePtIswyzY+D7QeKvCtrTbsYSJxhy+Bh023bSddn1w4l7swBlCWKQVtdMFm6o\nADJsxwgGIQ+D8RMuDG19K9jbf/GhZNBWTVvBVYjFo6GQoLWCOu23kTugd7FLJFsZ\nVoVQEoclEI/2uAIzJCbtPjq11HNBHsRUadIrxdMCgYEAvg9JOTiAQafttqsqHNCi\nlW73EKrh6hNYpwLZJLtkc5dA+TCKc/02RU0lnkecUa6XLq/mMbHHN6ABpJ2vSUbm\nw7NkFbJEqV5WtXov52x4ud49GTubJjgCtj/frEl33+3z7C2GF+oBJ7ZA2MiJSXy5\ni07ZUJFLYeveoq/ROAgGuMY=\n-----END PRIVATE KEY-----\n",
6 | "client_email": "akrbot@akrchatbot-edym.iam.gserviceaccount.com",
7 | "client_id": "113917952352793857223",
8 | "auth_uri": "https://accounts.google.com/o/oauth2/auth",
9 | "token_uri": "https://oauth2.googleapis.com/token",
10 | "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
11 | "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/akrbot%40akrchatbot-edym.iam.gserviceaccount.com"
12 | }
13 |
--------------------------------------------------------------------------------
/assets/dialog_flow_key.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "service_account",
3 | "project_id": "akrchatbot-edym",
4 | "private_key_id": "de2676aad2a3fde53c4933ff5e2b9ef7bbafed01",
5 | "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDDm8qYB/2XCOYl\nKQA/ETdHykYGBuGZmL0ISEL068TG37HQ/j9cBb3EP/9E3HPHKH/gSNnuTLpZ/f6b\nbO1NdMQJzgmYbC513s+dVgBAIRY9Xn6L6HvQlYfd85bcszvPdEbIWWSKiQidKtb7\njczTVOlR3T10hKliO/AMbOhLY9AP1EMrNlRZC7kA7gMJ1w4NrbeNLdA/NkItybsk\nREluZPZbAX5h6hMeSIKF6bI8DsLn4Q7Nl2MhCASdJJqwqc+9YLDhSg9W6/EnHYej\n+RUNfPAG2ww9JI3FGYsjyiIVeUc/n4/lBXEigxP83WTMJD0GtPMtztY+Vi67fVMr\nc5ts7lUJAgMBAAECggEAJe2Z2WPHQJdppK/wC8qHSQTIEhgYe2NZ1/bHAN2MYLF0\nNZ1u5KV6V8i+8ve5/VZ1gSQvGZ1IDvYIfdOfqcKn1mzcgHENiy5iXFQWJVklCk49\nxFwWUeoEl71JNc8NHFsj9Goc7B3JDUyGte0XV6zhts1qwqKMg28yyv39Bs06RS8g\n5fCwmTrE6b5gmo+n6Zsj4kLTEUD3yc1P5Ci1uUr0eVPbl7M8sdpiOYcTxmBeYegB\netMjEl/eANjcvfi19CQ7rGzeCv8h4+3ak53qEZnGA8GD+h2XEpcNwScu3upasElF\n31iyYMtPrMMBpG1TtsJOmZqLr5Jj9nWKuqIJ6nzx7wKBgQDoNPGA99UEY4plhuMw\n1ER9i66joc6/xlhtvg8rxXwCYLJEdzP4NbWffYn1rECMqUddHgdiBfOiBDWNtNZi\nS8IUqQaQJFcN7E1HkAfHCpWaFFn2R3CKM2tup96rczSJghHLkqh3fJDEATAxHLNO\noV5kFoXMt2B7JXpmXGHgka1imwKBgQDXptVCOOzZVHI5UZc3FA9goxH6hXNVgRNo\n8uwe5hGAL3JkV58uemVgXDQn0+zHEMqj2/iaLogLHGLtIwpLpw/h65lMK+uBfgEQ\nHKK2i+WUq4K2f05lVPqbb/byJ46nOZSxmqTmhSp1c9I4qaE3pLnMhtaqN1ALLpgP\nGmsdaHofKwKBgQDhx5DHELLMGKlZvIUtVkfeNrIxIsSvzYDv++wuaFAC09iiH7Gl\ndzvI/zzkZn9BBduA3BDbq+PPtf4Icjw9yWHFyu+5ucv3mrstiQs26sC51239vErd\n5c9hAdLNrC/6QEFjSo+J1tG/81PTfQ+PtfHcqdWhTvB97NwNqWf1/k+zXwKBgFyS\nlHdiAmJk+seaO8R8CwHb3qrhQJpS12c06KF298pEE+H5Ly7/gac0zXrPYZQupB5l\nHjnpgaLrY5gSc6f4JjxAK8VkESu8UG5/LGYadco1Od5nldqv+QhirupSis1ETY1U\nKjd+sLRMrNCAGOHPB6dBtsLJDcZPER1ipNqx78KTAoGBANMpWrbAUR8EGy7m/YiB\nsxLrevKiZwLngD00HncFjwrulYEusWLGsSsZ2ecr/iXwZH9hbFZsV5D6NL80hDYL\nX/gO7gbgpm4LPJFS+5dHWupGX86Ev4taHG8cESfqBu6WHVhiugiChdMuWRuvCnMj\nsdmk0pfEgxKSXZI1D2QsRrZV\n-----END PRIVATE KEY-----\n",
6 | "client_email": "akrchatbot@akrchatbot-edym.iam.gserviceaccount.com",
7 | "client_id": "112437435953281031064",
8 | "auth_uri": "https://accounts.google.com/o/oauth2/auth",
9 | "token_uri": "https://oauth2.googleapis.com/token",
10 | "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
11 | "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/akrchatbot%40akrchatbot-edym.iam.gserviceaccount.com",
12 | "universe_domain": "googleapis.com"
13 | }
14 |
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Black.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-BlackItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-BoldItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-ExtraBold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-ExtraBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-ExtraBoldItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-ExtraLight.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-ExtraLight.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-ExtraLightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-ExtraLightItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Italic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Light.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-LightItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-MediumItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-Thin.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins/Poppins-ThinItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/fonts/Poppins/Poppins-ThinItalic.ttf
--------------------------------------------------------------------------------
/assets/google_pay_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "provider": "google_pay",
3 | "data": {
4 | "environment": "TEST",
5 | "apiVersion": 2,
6 | "apiVersionMinor": 0,
7 | "allowedPaymentMethods": [
8 | {
9 | "type": "CARD",
10 | "tokenizationSpecification": {
11 | "type": "PAYMENT_GATEWAY",
12 | "parameters": {
13 | "gateway": "example",
14 | "gatewayMerchantId": "gatewayMerchantId"
15 | }
16 | },
17 | "parameters": {
18 | "allowedCardNetworks": ["VISA", "MASTERCARD"],
19 | "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
20 | "billingAddressRequired": true,
21 | "billingAddressParameters": {
22 | "format": "FULL",
23 | "phoneNumberRequired": true
24 | }
25 | }
26 | }
27 | ],
28 | "merchantInfo": {
29 | "merchantId": "01234567890123456789",
30 | "merchantName": "Example Merchant Name"
31 | },
32 | "transactionInfo": {
33 | "countryCode": "US",
34 | "currencyCode": "USD"
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/assets/images/4957136.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/4957136.jpg
--------------------------------------------------------------------------------
/assets/images/License free.txt:
--------------------------------------------------------------------------------
1 | IMPORTANT NOTICE: This license only applies if you downloaded this content as
2 | an unsubscribed user. If you are a premium user (ie, you pay a subscription)
3 | you are bound to the license terms described in the accompanying file
4 | "License premium.txt".
5 |
6 | ---------------------
7 |
8 | You must attribute the image to its author:
9 |
10 | In order to use a content or a part of it, you must attribute it to / Freepik,
11 | so we will be able to continue creating new graphic resources every day.
12 |
13 |
14 | How to attribute it?
15 |
16 | For websites:
17 |
18 | Please, copy this code on your website to accredit the author:
19 | Designed by / Freepik
20 |
21 | For printing:
22 |
23 | Paste this text on the final work so the authorship is known.
24 | - For example, in the acknowledgements chapter of a book:
25 | "Designed by / Freepik"
26 |
27 |
28 | You are free to use this image:
29 |
30 | - For both personal and commercial projects and to modify it.
31 | - In a website or presentation template or application or as part of your design.
32 |
33 | You are not allowed to:
34 |
35 | - Sub-license, resell or rent it.
36 | - Include it in any online or offline archive or database.
37 |
38 | The full terms of the license are described in section 7 of the Freepik
39 | terms of use, available online in the following link:
40 |
41 | http://www.freepik.com/terms_of_use
42 |
43 | The terms described in the above link have precedence over the terms described
44 | in the present document. In case of disagreement, the Freepik Terms of Use
45 | will prevail.
46 |
--------------------------------------------------------------------------------
/assets/images/License premium.txt:
--------------------------------------------------------------------------------
1 | IMPORTANT NOTICE: This license only applies if you downloaded this content as
2 | a subscribed (or "premium") user. If you are an unsubscribed user (or "free"
3 | user) you are bound to the license terms described in the accompanying file
4 | "License free.txt".
5 |
6 | ---------------------
7 |
8 | You can download from your profile in Freepik a personalized license stating
9 | your right to use this content as a "premium" user:
10 |
11 | https://profile.freepik.com/my_downloads
12 |
13 | You are free to use this image:
14 |
15 | - For both personal and commercial projects and to modify it.
16 | - In a website or presentation template or application or as part of your design.
17 |
18 | You are not allowed to:
19 |
20 | - Sub-license, resell or rent it.
21 | - Include it in any online or offline archive or database.
22 |
23 | The full terms of the license are described in sections 7 and 8 of the Freepik
24 | terms of use, available online in the following link:
25 |
26 | http://www.freepik.com/terms_of_use
27 |
28 | The terms described in the above link have precedence over the terms described
29 | in the present document. In case of disagreement, the Freepik Terms of Use
30 | will prevail.
31 |
--------------------------------------------------------------------------------
/assets/images/amazon_in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/amazon_in.png
--------------------------------------------------------------------------------
/assets/images/appliances-category.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/appliances-category.jpg
--------------------------------------------------------------------------------
/assets/images/appliances-category.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/appliances-category.png
--------------------------------------------------------------------------------
/assets/images/appliances-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/appliances.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/appliances.jpeg
--------------------------------------------------------------------------------
/assets/images/books-category.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/books-category.jpg
--------------------------------------------------------------------------------
/assets/images/books-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/books.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/books.jpeg
--------------------------------------------------------------------------------
/assets/images/camera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/camera.png
--------------------------------------------------------------------------------
/assets/images/chatbot-final.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/chatbot-final.png
--------------------------------------------------------------------------------
/assets/images/chatbot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/chatbot2.png
--------------------------------------------------------------------------------
/assets/images/chatbott.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/chatbott.jpg
--------------------------------------------------------------------------------
/assets/images/croppedsuccess.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/croppedsuccess.gif
--------------------------------------------------------------------------------
/assets/images/dealOfTheDaypng.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/dealOfTheDaypng.png
--------------------------------------------------------------------------------
/assets/images/electronics.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/electronics.jpeg
--------------------------------------------------------------------------------
/assets/images/elite-without-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/elite-without-bg.png
--------------------------------------------------------------------------------
/assets/images/elite.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/elite.jpg
--------------------------------------------------------------------------------
/assets/images/elite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/elite.png
--------------------------------------------------------------------------------
/assets/images/elite.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/elite.rar
--------------------------------------------------------------------------------
/assets/images/essentials-category.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/essentials-category.jpg
--------------------------------------------------------------------------------
/assets/images/essentials-dark-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/essentials-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/essentials.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/essentials.jpeg
--------------------------------------------------------------------------------
/assets/images/fashion-category.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/fashion-category.jpg
--------------------------------------------------------------------------------
/assets/images/fashion-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/assets/images/fashion.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/fashion.jpeg
--------------------------------------------------------------------------------
/assets/images/gallery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/gallery.png
--------------------------------------------------------------------------------
/assets/images/loginBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/loginBackground.png
--------------------------------------------------------------------------------
/assets/images/loginPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/loginPage.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/mobile-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/mobiles-category.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/mobiles-category.jpg
--------------------------------------------------------------------------------
/assets/images/mobiles.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/mobiles.jpeg
--------------------------------------------------------------------------------
/assets/images/no-orders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/no-orders.png
--------------------------------------------------------------------------------
/assets/images/no-orderss.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/no-orderss.png
--------------------------------------------------------------------------------
/assets/images/search-svg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/images/splash_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/splash_1.png
--------------------------------------------------------------------------------
/assets/images/splash_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/splash_2.png
--------------------------------------------------------------------------------
/assets/images/splash_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/splash_3.png
--------------------------------------------------------------------------------
/assets/images/successpayment.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/assets/images/successpayment.JPG
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AKR-2803/ecommerce-application-flutter/ec942ad011e6c9575e0c39d7103d9dac536e284f/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 | eSHOP
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ecommerce_major_project
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 | NSPhotoLibraryUsageDescription
51 | App needs access to the photo library
52 |
53 |
54 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/common/widgets/custom_appbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:ecommerce_major_project/main.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_svg/flutter_svg.dart';
4 |
5 | // class CustomAppbar {
6 | // static AppBar customAppbar = AppBar(
7 | // iconTheme: const IconThemeData(color: Colors.black),
8 | // // automaticallyImplyLeading: true,
9 | // leading: Padding(
10 | // padding: EdgeInsets.all(mq.width * .025).copyWith(right: 0),
11 | // child: Image.asset(
12 | // "assets/images/logo.png",
13 | // // height: 5,
14 | // // height: mq.height * .04,
15 | // ),
16 | // ),
17 | // backgroundColor: Colors.white,
18 | // elevation: 2,
19 | // actions: [
20 | // Padding(
21 | // padding: EdgeInsets.only(right: mq.width * 0.035),
22 | // child: Row(
23 | // mainAxisSize: MainAxisSize.min,
24 | // children: [
25 | // InkWell(
26 | // onTap: () {
27 | // setState(() {
28 | // isSearchOn = true;
29 | // });
30 | // showSearch(
31 | // context: context,
32 | // delegate: MySearchDelegate(searchResults: productNames!));
33 | // },
34 | // child:
35 | // SvgPicture.asset("assets/images/search-svg.svg", height: 25),
36 | // ),
37 | // SizedBox(width: mq.width * .04),
38 | // InkWell(
39 | // onTap: () {
40 | // // Scaffold.of(context).openDrawer();
41 | // // _scaffoldKey.currentState!.openEndDrawer();
42 | // },
43 | // child: const Icon(Icons.mic, size: 30)),
44 | // ],
45 | // ),
46 | // ),
47 | // ],
48 | // );
49 | // }
50 |
--------------------------------------------------------------------------------
/lib/common/widgets/custom_button.dart:
--------------------------------------------------------------------------------
1 | import '/main.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CustomButton extends StatelessWidget {
5 | final String text;
6 | final Color? color;
7 | final VoidCallback onTap;
8 | const CustomButton(
9 | {super.key, required this.text, required this.onTap, this.color});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return ElevatedButton(
14 | onPressed: onTap,
15 | style: ElevatedButton.styleFrom(
16 | splashFactory: NoSplash.splashFactory,
17 | minimumSize: Size(double.infinity, mq.height * .08),
18 | backgroundColor: color,
19 | ),
20 | child: Text(
21 | text,
22 | style: TextStyle(color: Colors.black),
23 | ),
24 | );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/common/widgets/custom_textfield.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomTextField extends StatelessWidget {
4 | final TextEditingController controller;
5 | final String hintText;
6 | final int maxLines;
7 | bool? isObscureText;
8 | TextInputType inputType;
9 | CustomTextField({
10 | super.key,
11 | required this.controller,
12 | required this.hintText,
13 | this.maxLines = 1,
14 | this.isObscureText = false,
15 | this.inputType = TextInputType.text,
16 | });
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return TextFormField(
21 | cursorColor: Colors.black,
22 | controller: controller,
23 | maxLines: maxLines,
24 | obscureText: isObscureText!,
25 | keyboardType: inputType,
26 | decoration: InputDecoration(
27 | filled: true,
28 | fillColor: const Color.fromARGB(255, 236, 236, 236),
29 | hintText: hintText,
30 | border: OutlineInputBorder(
31 | borderRadius: BorderRadius.circular(12),
32 | borderSide: BorderSide.none,
33 | ),
34 | enabledBorder: OutlineInputBorder(
35 | borderRadius: BorderRadius.circular(12),
36 | borderSide: BorderSide(width: 0.8, color: Colors.grey.shade800),
37 | ),
38 | focusedBorder: OutlineInputBorder(
39 | borderRadius: BorderRadius.circular(12),
40 | borderSide: BorderSide(width: 0.25),
41 | ),
42 | ),
43 | validator: (val) {
44 | if (val == null || val.isEmpty) {
45 | return '$hintText required';
46 | }
47 | return null;
48 | },
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/common/widgets/loader.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Loader extends StatelessWidget {
4 | const Loader({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return const Center(child: CircularProgressIndicator(color: Colors.black));
9 | }
10 | }
11 |
12 | //loader dialog
13 | // import 'package:flutter/material.dart';
14 |
15 | // showLoader(BuildContext context) {
16 | // return showDialog(
17 | // context: context,
18 | // //user cannot interrupt the loader
19 | // barrierDismissible: false,
20 | // builder: (BuildContext context) {
21 | // return const Center(
22 | // child: CircularProgressIndicator(
23 | // valueColor: AlwaysStoppedAnimation(Colors.blue),
24 | // ),
25 | // );
26 | // });
27 | // }
28 |
--------------------------------------------------------------------------------
/lib/common/widgets/stars.dart:
--------------------------------------------------------------------------------
1 | import 'package:ecommerce_major_project/constants/global_variables.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_rating_bar/flutter_rating_bar.dart';
4 |
5 | class Stars extends StatelessWidget {
6 | final double rating;
7 | const Stars({required this.rating, super.key});
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return RatingBarIndicator(
12 | itemCount: 5,
13 | direction: Axis.horizontal,
14 | rating: rating,
15 | itemSize: 15,
16 | itemBuilder: (context, index) {
17 | return const Icon(
18 | Icons.star,
19 | color: GlobalVariables.secondaryColor,
20 | );
21 | },
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/constants/error_handling.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import '/constants/utils.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:http/http.dart' as http;
5 |
6 | void httpErrorHandle({
7 | required http.Response response,
8 | required BuildContext context,
9 | required VoidCallback onSuccess,
10 | }) {
11 | switch (response.statusCode) {
12 | //Successful responses (200 – 299)
13 | //200 OK
14 | case 200:
15 | onSuccess();
16 | break;
17 |
18 | //decoding response.body to String
19 | //Client error responses (400 – 499)
20 | //400 Bad Request
21 | case 400:
22 | showSnackBar(context: context, text: jsonDecode(response.body)['msg']);
23 | break;
24 |
25 | //Server error responses (500 – 599)
26 | //500 Internal Serveer Error
27 | case 500:
28 | showSnackBar(context: context, text: jsonDecode(response.body)['error']);
29 | break;
30 |
31 | default:
32 | showSnackBar(context: context, text: response.body);
33 | break;
34 | }
35 | }
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | // import 'dart:convert';
44 | // import 'package:ecommerce_major_project/constants/utils.dart';
45 | // import 'package:flutter/material.dart';
46 | // import 'package:http/http.dart' as http;
47 |
48 | // void httpErrorHandle({
49 | // required http.Response response,
50 | // required BuildContext context,
51 | // required VoidCallback onSuccess,
52 | // }) {
53 | // switch (response.statusCode) {
54 | // case 200:
55 | // onSuccess();
56 | // break;
57 | // case 400:
58 | // //decoding response.body to String
59 | // showSnackBar(context: context, text: jsonDecode(response.body)['msg']);
60 | // break;
61 | // case 500:
62 | // showSnackBar(context: context, text: jsonDecode(response.body)['error']);
63 | // break;
64 | // default:
65 | // showSnackBar(context: context, text: response.body);
66 | // break;
67 | // }
68 | // }
69 |
70 |
71 |
--------------------------------------------------------------------------------
/lib/constants/utils.dart:
--------------------------------------------------------------------------------
1 | import 'package:file_picker/file_picker.dart';
2 | import 'package:flutter/material.dart';
3 | import 'dart:io';
4 |
5 | void showSnackBar({
6 | required BuildContext context,
7 | required String text,
8 | VoidCallback? onTapFunction,
9 | String? actionLabel,
10 | }) {
11 | ScaffoldMessenger.of(context).showSnackBar(
12 | onTapFunction != null && actionLabel != null
13 | ? SnackBar(
14 | content: Text(text),
15 | action: SnackBarAction(
16 | label: actionLabel,
17 | textColor: Colors.white,
18 | onPressed: onTapFunction,
19 | ),
20 | behavior: SnackBarBehavior.floating,
21 | backgroundColor: const Color(0xFF7700C6),
22 | )
23 | : SnackBar(
24 | content: Text(text),
25 | behavior: SnackBarBehavior.floating,
26 | backgroundColor: const Color(0xFF7700C6),
27 | ),
28 | );
29 | }
30 |
31 | void showErrorSnackBar({
32 | required BuildContext context,
33 | required String text,
34 | VoidCallback? onTapFunction,
35 | String? actionLabel,
36 | }) {
37 | ScaffoldMessenger.of(context).showSnackBar(
38 | onTapFunction != null && actionLabel != null
39 | ? SnackBar(
40 | content: Text(text),
41 | action: SnackBarAction(
42 | label: actionLabel,
43 | textColor: Colors.white,
44 | onPressed: onTapFunction,
45 | ),
46 | behavior: SnackBarBehavior.floating,
47 | backgroundColor: Color.fromARGB(255, 252, 30, 100),
48 | )
49 | : SnackBar(
50 | content: Text(text),
51 | behavior: SnackBarBehavior.floating,
52 | backgroundColor: Color.fromARGB(255, 252, 30, 100),
53 | ),
54 | );
55 | }
56 |
57 | // void showSnackBar(BuildContext context, String msg, Duration passDuration) {
58 | // ScaffoldMessenger.of(context).showSnackBar(SnackBar(
59 | // content: Text(msg),
60 | // duration: passDuration,
61 | // behavior: SnackBarBehavior.floating,
62 | // backgroundColor: const Color(0xFF7700C6),
63 | // //Text Copied snackbar(in message_card bottomsheet) color : const Color(0xFFA841FC)
64 | // ));
65 | // }
66 |
67 | Future> pickImages() async {
68 | List images = [];
69 |
70 | try {
71 | FilePickerResult? files = await FilePicker.platform.pickFiles(
72 | type: FileType.image,
73 | allowMultiple: true,
74 | );
75 |
76 | if (files != null && files.files.isNotEmpty) {
77 | for (int i = 0; i < files.files.length; i++) {
78 | images.add(File(files.files[i].path!));
79 | }
80 | }
81 | } catch (e) {
82 | debugPrint("Error in picking image : ${e.toString()}");
83 | }
84 |
85 | return images;
86 | }
87 |
88 | Future pickImage() async {
89 | File image = File("");
90 |
91 | try {
92 | FilePickerResult? file =
93 | await FilePicker.platform.pickFiles(type: FileType.image);
94 |
95 | image = File(file!.files[0].path!);
96 |
97 | if (file.files.isNotEmpty) {
98 | image = File(file.files[0].path!);
99 | }
100 | } catch (e) {
101 | debugPrint("Error in picking image : ${e.toString()}");
102 | }
103 |
104 | return image;
105 | }
106 |
--------------------------------------------------------------------------------
/lib/features/account/screens/account_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'package:ecommerce_major_project/constants/global_variables.dart';
4 | import 'package:ecommerce_major_project/features/account/widgets/below_app_bar.dart';
5 | import 'package:ecommerce_major_project/features/account/widgets/orders.dart';
6 | import 'package:ecommerce_major_project/features/account/widgets/top_buttons.dart';
7 | import 'package:ecommerce_major_project/features/chatbot/chatbot_screen.dart';
8 | import 'package:ecommerce_major_project/features/search_delegate/my_search_screen.dart';
9 | import 'package:ecommerce_major_project/main.dart';
10 |
11 | class AccountScreen extends StatelessWidget {
12 | const AccountScreen({super.key});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Scaffold(
17 | appBar: GlobalVariables.getAppBar(
18 | context: context,
19 | wantBackNavigation: false,
20 | title: "Your Account",
21 | onClickSearchNavigateTo: MySearchScreen()),
22 | body: Column(
23 | children: [
24 | SizedBox(height: mq.width * .025),
25 | const BelowAppBar(),
26 | SizedBox(height: mq.width * .025),
27 | TopButtons(),
28 | SizedBox(height: mq.width * .045),
29 | const Orders(),
30 | ],
31 | ),
32 | floatingActionButton: FloatingActionButton.extended(
33 | elevation: 10,
34 | icon: Icon(Icons.chat_bubble_outline_outlined),
35 | onPressed: () {
36 | Navigator.of(context)
37 | .push(MaterialPageRoute(builder: (_) => ChatbotScreen()));
38 | },
39 | backgroundColor: Colors.deepPurple.shade600,
40 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(25)),
41 | label: Text("Ask buddy", style: TextStyle(fontSize: 12)),
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/features/account/widgets/account_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '/main.dart';
3 |
4 | //account page buttons
5 | class AccountButton extends StatelessWidget {
6 | final String text;
7 | final VoidCallback onTap;
8 | const AccountButton({super.key, required this.text, required this.onTap});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Expanded(
13 | child: Container(
14 | height: mq.height * .06,
15 | margin: EdgeInsets.symmetric(horizontal: mq.width * .025),
16 | decoration: BoxDecoration(
17 | borderRadius: BorderRadius.circular(mq.height * .06),
18 | ),
19 | child: OutlinedButton(
20 | onPressed: onTap,
21 | style: OutlinedButton.styleFrom(
22 | backgroundColor: Colors.black12.withOpacity(.03),
23 | shape: RoundedRectangleBorder(
24 | borderRadius: BorderRadius.circular(mq.height * .06),
25 | )),
26 | child: Text(
27 | text,
28 | style: const TextStyle(color: Colors.black),
29 | ),
30 | ),
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/features/account/widgets/single_product.dart:
--------------------------------------------------------------------------------
1 | import 'package:ecommerce_major_project/main.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class SingleProduct extends StatelessWidget {
5 | final String image;
6 | SingleProduct({super.key, required this.image});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | padding: EdgeInsets.symmetric(horizontal: mq.width * .0125),
12 | child: DecoratedBox(
13 | decoration: BoxDecoration(
14 | border: Border.all(color: Colors.black12, width: 1.5),
15 | borderRadius: BorderRadius.circular(mq.width * .0125),
16 | color: Colors.white),
17 | child: Container(
18 | width: mq.width * .45,
19 | padding: EdgeInsets.all(mq.width * .025),
20 | child: Image.network(
21 | image,
22 | fit: BoxFit.fitHeight,
23 | width: mq.width * .45,
24 | ),
25 | ),
26 | ));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/features/address/services/address_services.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:http/http.dart' as http;
5 | import 'package:provider/provider.dart';
6 |
7 | import 'package:ecommerce_major_project/models/user.dart';
8 | import 'package:ecommerce_major_project/constants/utils.dart';
9 | import 'package:ecommerce_major_project/providers/user_provider.dart';
10 | import 'package:ecommerce_major_project/constants/error_handling.dart';
11 | import 'package:ecommerce_major_project/constants/global_variables.dart';
12 |
13 | class AddressServices {
14 | void saveUserAddress({
15 | required BuildContext context,
16 | required String address,
17 | }) async {
18 | final userProvider = Provider.of(context, listen: false);
19 |
20 | try {
21 | http.Response res = await http.post(
22 | Uri.parse('$uri/api/save-user-address'),
23 | headers: {
24 | 'Content-Type': 'application/json; charset=UTF-8',
25 | 'x-auth-token': userProvider.user.token,
26 | },
27 | body: jsonEncode({
28 | 'address': address,
29 | }),
30 | // body: product.toJson(),
31 | );
32 |
33 | if (context.mounted) {
34 | httpErrorHandle(
35 | response: res,
36 | context: context,
37 | onSuccess: () {
38 | User user = userProvider.user
39 | .copyWith(address: jsonDecode(res.body)['address']);
40 | userProvider.setUserFromModel(user);
41 | Navigator.pop(context);
42 | },
43 | );
44 | }
45 | } catch (e) {
46 | showSnackBar(context: context, text: e.toString());
47 | }
48 | }
49 |
50 | // get all the products
51 | void placeOrder({
52 | required BuildContext context,
53 | required String address,
54 | required num totalSum,
55 | }) async {
56 | final userProvider = Provider.of(context, listen: false);
57 |
58 | try {
59 | http.Response res = await http.post(
60 | Uri.parse('$uri/api/order'),
61 | headers: {
62 | 'Content-Type': 'application/json; charset=UTF-8',
63 | 'x-auth-token': userProvider.user.token,
64 | },
65 | body: jsonEncode({
66 | 'cart': userProvider.user.cart,
67 | 'address': address,
68 | 'totalPrice': totalSum,
69 | }),
70 | );
71 |
72 | // var data = jsonDecode(res.body);
73 | if (context.mounted) {
74 | httpErrorHandle(
75 | response: res,
76 | context: context,
77 | onSuccess: () {
78 | // success on the payment will redirect the user
79 | // to the payment successful dialog, order placed
80 | // clear the cart
81 | // and add the address as the current address if one didn't exist before
82 | // add the payment successful dialog here!
83 | // the gif and showDialog
84 | showSnackBar(context: context, text: "Your order has been placed");
85 | User user = userProvider.user.copyWith(
86 | cart: [],
87 | );
88 | userProvider.setUserFromModel(user);
89 | },
90 | );
91 | }
92 | } catch (e) {
93 | showSnackBar(context: context, text: e.toString());
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/lib/features/address/widgets/delivery_product.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 |
4 | import 'package:ecommerce_major_project/main.dart';
5 | import 'package:ecommerce_major_project/models/product.dart';
6 | import 'package:ecommerce_major_project/providers/user_provider.dart';
7 | import 'package:ecommerce_major_project/features/cart/services/cart_services.dart';
8 | import 'package:ecommerce_major_project/features/product_details/services/product_detail_services.dart';
9 |
10 | class DeliveryProduct extends StatefulWidget {
11 | final int index;
12 | const DeliveryProduct({required this.index, super.key});
13 |
14 | @override
15 | State createState() => _DeliveryProductState();
16 | }
17 |
18 | class _DeliveryProductState extends State {
19 | final ProductDetailServices productDetailServices = ProductDetailServices();
20 | final CartServices cartServices = CartServices();
21 |
22 | void increaseQuantity(Product product) {
23 | productDetailServices.addToCart(context: context, product: product);
24 | }
25 |
26 | void decreaseQuantity(Product product) {
27 | cartServices.removeFromCart(context: context, product: product);
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | // fetching the particular product
33 | final productCart = context.watch().user.cart[widget.index];
34 | final product = Product.fromJson(productCart['product']);
35 | final quantity = productCart['quantity'];
36 |
37 | return Row(
38 | mainAxisAlignment: MainAxisAlignment.center,
39 | children: [
40 | // image
41 | Image.network(
42 | product.images[0],
43 | fit: BoxFit.contain,
44 | height: mq.width * .25,
45 | width: mq.width * .25,
46 | ),
47 | // description
48 | Column(
49 | children: [
50 | Container(
51 | width: mq.width * .57,
52 | padding:
53 | EdgeInsets.only(left: mq.width * .025, top: mq.width * .0125),
54 | child: Text(
55 | product.name,
56 | textAlign: TextAlign.left,
57 | overflow: TextOverflow.ellipsis,
58 | style: const TextStyle(fontSize: 15),
59 | maxLines: 1,
60 | ),
61 | ),
62 | Container(
63 | width: mq.width * .57,
64 | padding: EdgeInsets.only(left: mq.width * .025),
65 | child: Text(
66 | "₹ ${product.price.toStringAsFixed(2)}",
67 | style:
68 | const TextStyle(fontWeight: FontWeight.bold, fontSize: 17),
69 | maxLines: 2,
70 | ),
71 | ),
72 | Container(
73 | width: mq.width * .57,
74 | padding: EdgeInsets.only(left: mq.width * .025),
75 | child: Text(
76 | product.price < 500
77 | ? "Shipping charges might apply"
78 | : "Eligible for free shipping",
79 | style: const TextStyle(fontSize: 13),
80 | ),
81 | ),
82 | ],
83 | ),
84 | ],
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/features/admin/models/sales.dart:
--------------------------------------------------------------------------------
1 | class Sales {
2 | final String label;
3 | final num earning;
4 |
5 | Sales(this.label, this.earning);
6 | }
7 |
--------------------------------------------------------------------------------
/lib/features/admin/screens/admin_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'package:ecommerce_major_project/constants/global_variables.dart';
4 | import 'package:ecommerce_major_project/features/admin/screens/posts_screen.dart';
5 | import 'package:ecommerce_major_project/features/admin/screens/orders_screen.dart';
6 | import 'package:ecommerce_major_project/features/admin/screens/analytics_screen.dart';
7 |
8 | class AdminScreen extends StatefulWidget {
9 | const AdminScreen({super.key});
10 |
11 | @override
12 | State createState() => _AdminScreenState();
13 | }
14 |
15 | class _AdminScreenState extends State {
16 | int _page = 0;
17 | double bottomBarWidth = 42;
18 | double bottomBarBorderWidth = 5;
19 |
20 | List pages = [
21 | const PostsScreen(),
22 | const AnalyticsScreen(),
23 | const OrdersScreen(),
24 | ];
25 |
26 | void updatePage(int page) {
27 | setState(() {
28 | _page = page;
29 | });
30 | }
31 |
32 | @override
33 | Widget build(BuildContext context) {
34 | // print(
35 | // "Type of user ==========> ${Provider.of(context).user.type}");
36 | return Scaffold(
37 | body: pages[_page],
38 | bottomNavigationBar: BottomNavigationBar(
39 | currentIndex: _page,
40 | selectedItemColor: GlobalVariables.selectedNavBarColor,
41 | unselectedItemColor: GlobalVariables.unselectedNavBarColor,
42 | backgroundColor: GlobalVariables.backgroundColor,
43 | iconSize: 28,
44 | onTap: updatePage,
45 | items: [
46 | //POSTS
47 | BottomNavigationBarItem(
48 | icon: Container(
49 | width: bottomBarWidth,
50 | decoration: BoxDecoration(
51 | border: Border(
52 | top: BorderSide(
53 | color: _page == 0
54 | ? GlobalVariables.selectedNavBarColor
55 | : GlobalVariables.backgroundColor,
56 | width: bottomBarBorderWidth),
57 | ),
58 | ),
59 | child: const Icon(Icons.home_outlined),
60 | ),
61 | label: '',
62 | ),
63 | //ANALYTICS
64 | BottomNavigationBarItem(
65 | icon: Container(
66 | width: bottomBarWidth,
67 | decoration: BoxDecoration(
68 | border: Border(
69 | top: BorderSide(
70 | color: _page == 1
71 | ? GlobalVariables.selectedNavBarColor
72 | : GlobalVariables.backgroundColor,
73 | width: bottomBarBorderWidth),
74 | ),
75 | ),
76 | child: const Icon(Icons.analytics_outlined),
77 | ),
78 | label: '',
79 | ),
80 | //ORDERS
81 | BottomNavigationBarItem(
82 | icon: Container(
83 | width: bottomBarWidth,
84 | decoration: BoxDecoration(
85 | border: Border(
86 | top: BorderSide(
87 | color: _page == 2
88 | ? GlobalVariables.selectedNavBarColor
89 | : GlobalVariables.backgroundColor,
90 | width: bottomBarBorderWidth),
91 | ),
92 | ),
93 | child: const Icon(Icons.all_inbox_outlined),
94 | ),
95 | label: '',
96 | ),
97 | ],
98 | ),
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lib/features/admin/screens/orders_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:ecommerce_major_project/common/widgets/color_loader_2.dart';
2 | import 'package:ecommerce_major_project/constants/global_variables.dart';
3 | import 'package:ecommerce_major_project/features/account/services/account_services.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | import 'package:ecommerce_major_project/main.dart';
7 | import 'package:ecommerce_major_project/models/order.dart';
8 | import 'package:ecommerce_major_project/common/widgets/loader.dart';
9 | import 'package:ecommerce_major_project/features/admin/services/admin_services.dart';
10 | import 'package:ecommerce_major_project/features/account/widgets/single_product.dart';
11 | import 'package:ecommerce_major_project/features/order_details/screens/order_details_screen.dart';
12 |
13 | class OrdersScreen extends StatefulWidget {
14 | const OrdersScreen({super.key});
15 |
16 | @override
17 | State createState() => _OrdersScreenState();
18 | }
19 |
20 | class _OrdersScreenState extends State {
21 | final AdminServices adminServices = AdminServices();
22 | List? orders;
23 |
24 | @override
25 | void initState() {
26 | super.initState();
27 | fetchAllOrders();
28 | }
29 |
30 | void fetchAllOrders() async {
31 | orders = await adminServices.fetchAllOrders(context);
32 | setState(() {});
33 | }
34 |
35 | @override
36 | Widget build(BuildContext context) {
37 | return Scaffold(
38 | appBar: GlobalVariables.getAdminAppBar(
39 | title: "Orders",
40 | context: context,
41 | ),
42 | body: orders == null
43 | ? const ColorLoader2()
44 | : GridView.builder(
45 | padding: EdgeInsets.all(10),
46 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
47 | mainAxisSpacing: 10,
48 | childAspectRatio: 1.75,
49 | crossAxisCount: 2),
50 | itemCount: orders!.length,
51 | itemBuilder: (context, index) {
52 | final orderData = orders![index];
53 | return GestureDetector(
54 | onTap: () {
55 | Navigator.pushNamed(context, OrderDetailsScreen.routeName,
56 | arguments: orderData);
57 | },
58 | child: SizedBox(
59 | height: mq.height * .18,
60 | child:
61 | SingleProduct(image: orderData.products[0].images[0]),
62 | ),
63 | );
64 | },
65 | ),
66 | floatingActionButton: FloatingActionButton.extended(
67 | elevation: 10,
68 | icon: Icon(Icons.logout_outlined),
69 | onPressed: () {
70 | AccountServices().logOut(context);
71 | },
72 | backgroundColor: Colors.deepPurple.shade600,
73 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(25)),
74 | label: Text(
75 | "LogOut",
76 | style: TextStyle(fontSize: 12),
77 | ),
78 | ),
79 | );
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/lib/features/admin/widgets/bar_graph/bar_data.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: public_member_api_docs, sort_constructors_first
2 | import 'package:ecommerce_major_project/features/admin/widgets/bar_graph/individual_bar.dart';
3 |
4 | class BarData {
5 | final double sunAmount;
6 | final double monAmount;
7 | final double tueAmount;
8 | final double wedAmount;
9 | final double thuAmount;
10 | final double friAmount;
11 | final double satAmount;
12 | BarData({
13 | required this.sunAmount,
14 | required this.monAmount,
15 | required this.tueAmount,
16 | required this.wedAmount,
17 | required this.thuAmount,
18 | required this.friAmount,
19 | required this.satAmount,
20 | });
21 |
22 | List barData = [];
23 |
24 | void initializeBar() {
25 | barData = [
26 | IndividualBar(x: 0, y: sunAmount),
27 | IndividualBar(x: 0, y: monAmount),
28 | IndividualBar(x: 0, y: tueAmount),
29 | IndividualBar(x: 0, y: wedAmount),
30 | IndividualBar(x: 0, y: thuAmount),
31 | IndividualBar(x: 0, y: friAmount),
32 | IndividualBar(x: 0, y: satAmount),
33 | ];
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/features/admin/widgets/bar_graph/bar_graph.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:fl_chart/fl_chart.dart';
3 |
4 | import 'package:ecommerce_major_project/features/admin/widgets/bar_graph/bar_data.dart';
5 |
6 | class MyBarGraph extends StatelessWidget {
7 | final List weeklySummary;
8 | const MyBarGraph({super.key, required this.weeklySummary});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | BarData myBarData = BarData(
13 | sunAmount: weeklySummary[0],
14 | monAmount: weeklySummary[1],
15 | tueAmount: weeklySummary[2],
16 | wedAmount: weeklySummary[3],
17 | thuAmount: weeklySummary[4],
18 | friAmount: weeklySummary[5],
19 | satAmount: weeklySummary[6],
20 | );
21 |
22 | myBarData.initializeBar();
23 |
24 | return BarChart(
25 | BarChartData(
26 | maxY: 200,
27 | minY: 0,
28 | barGroups: myBarData.barData
29 | .map((data) => BarChartGroupData(
30 | x: data.x, barRods: [BarChartRodData(toY: data.y)]))
31 | .toList(),
32 | ),
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/features/admin/widgets/bar_graph/individual_bar.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: public_member_api_docs, sort_constructors_first
2 | class IndividualBar {
3 | final int x; // for x axis
4 | final double y; // for y axis
5 |
6 | IndividualBar({
7 | required this.x,
8 | required this.y,
9 | });
10 | }
11 |
--------------------------------------------------------------------------------
/lib/features/admin/widgets/sales_graph/individual_bar.dart:
--------------------------------------------------------------------------------
1 | class IndividualBar {
2 | final String label;
3 | final num earnings;
4 | IndividualBar({
5 | required this.label,
6 | required this.earnings,
7 | });
8 | }
9 |
--------------------------------------------------------------------------------
/lib/features/admin/widgets/sales_graph/sales_data.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: public_member_api_docs, sort_constructors_first
2 | import 'package:ecommerce_major_project/features/admin/widgets/sales_graph/individual_bar.dart';
3 |
4 | class SalesData {
5 | final num mobileSales;
6 | final num essentialsSales;
7 | final num booksSales;
8 | final num appliancesSales;
9 | final num fashionSales;
10 | SalesData({
11 | required this.mobileSales,
12 | required this.essentialsSales,
13 | required this.booksSales,
14 | required this.appliancesSales,
15 | required this.fashionSales,
16 | });
17 |
18 | List salesBarData = [];
19 |
20 | void initializeBar() {
21 | salesBarData = [
22 | IndividualBar(earnings: double.parse(mobileSales.toString()), label: '0'),
23 | IndividualBar(
24 | earnings: double.parse(essentialsSales.toString()), label: '1'),
25 | IndividualBar(earnings: double.parse(booksSales.toString()), label: '2'),
26 | IndividualBar(
27 | earnings: double.parse(appliancesSales.toString()), label: '3'),
28 | IndividualBar(
29 | earnings: double.parse(fashionSales.toString()), label: '4'),
30 | ];
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/features/cart/services/cart_services.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:http/http.dart' as http;
5 | import 'package:provider/provider.dart';
6 |
7 | import 'package:ecommerce_major_project/models/user.dart';
8 | import 'package:ecommerce_major_project/models/product.dart';
9 | import 'package:ecommerce_major_project/constants/utils.dart';
10 | import 'package:ecommerce_major_project/providers/user_provider.dart';
11 | import 'package:ecommerce_major_project/constants/error_handling.dart';
12 | import 'package:ecommerce_major_project/constants/global_variables.dart';
13 |
14 | class CartServices {
15 | void removeFromCart({
16 | required BuildContext context,
17 | required Product product,
18 | }) async {
19 | print("========> Inside the remove from cart function");
20 | final userProvider = Provider.of(context, listen: false);
21 | try {
22 | http.Response res = await http.delete(
23 | Uri.parse(
24 | '$uri/api/remove-from-cart/${product.id}',
25 | ),
26 | headers: {
27 | 'Content-Type': 'application/json; charset=UTF-8',
28 | 'x-auth-token': userProvider.user.token,
29 | },
30 | body: jsonEncode({
31 | 'id': product.id!,
32 | }),
33 | );
34 |
35 | //use context ensuring the mounted property across async functions
36 | if (context.mounted) {
37 | httpErrorHandle(
38 | response: res,
39 | context: context,
40 | onSuccess: () {
41 | print("\nInside on success method..");
42 | User user =
43 | userProvider.user.copyWith(cart: jsonDecode(res.body)['cart']);
44 | userProvider.setUserFromModel(user);
45 | print("\nUser cart now is ${user.cart}");
46 | },
47 | );
48 | }
49 | } catch (e) {
50 | print("\n========>Inside the catch block of remove from cart");
51 | showSnackBar(context: context, text: e.toString());
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/features/cart/widgets/cart_subtotal.dart:
--------------------------------------------------------------------------------
1 | import 'package:ecommerce_major_project/main.dart';
2 | import 'package:ecommerce_major_project/providers/user_provider.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:provider/provider.dart';
5 |
6 | class CartSubtotal extends StatelessWidget {
7 | const CartSubtotal({super.key});
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | final user = context.watch().user;
12 | num sum = 0;
13 |
14 | user.cart
15 | .map((e) => sum += e['quantity'] * e['product']['price'] as num)
16 | .toList();
17 |
18 | return Container(
19 | margin: EdgeInsets.all(mq.width * .025),
20 | child: Row(
21 | children: [
22 | Text(
23 | "Subtotal ",
24 | style: TextStyle(fontSize: 18),
25 | ),
26 | Text(
27 | "₹ ${sum.toStringAsFixed(2)}",
28 | style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
29 | ),
30 | ],
31 | ),
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/features/category_grid/category_grid_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'package:ecommerce_major_project/main.dart';
4 | import 'package:ecommerce_major_project/constants/global_variables.dart';
5 | import 'package:ecommerce_major_project/features/search_delegate/my_search_screen.dart';
6 | import 'package:ecommerce_major_project/features/home/screens/category_deals_screen.dart';
7 |
8 | class CategoryGridScreen extends StatelessWidget {
9 | CategoryGridScreen({super.key});
10 |
11 | List