├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_ecommerce_app │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── CustomIcons.ttf ├── Poppins-Bold.ttf ├── Poppins-Medium.ttf ├── Roboto-Light.ttf ├── fonts │ ├── Roboto-Bold.ttf │ ├── Roboto-Light.ttf │ └── Roboto-Regular.ttf └── images │ ├── empty_shopping_cart.png │ ├── empty_shopping_cart_image.png │ ├── empty_wish_list.png │ ├── ic_add_cart.png │ ├── ic_app_icon.png │ ├── ic_category_image.png │ ├── ic_discount.png │ ├── promotion__one.png │ ├── promotion_one.png │ ├── promotion_three.png │ └── promotion_two.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── common_widget │ ├── AppBarWidget.dart │ ├── BottomNavBarWidget.dart │ ├── CircularProgress.dart │ ├── DrawerWidget.dart │ ├── GridTilesCategory.dart │ ├── GridTilesProducts.dart │ ├── PopularMenu.dart │ ├── SearchWidget.dart │ └── TopPromoSlider.dart ├── components │ ├── AppSignIn.dart │ ├── AppSingUp.dart │ ├── BrandHomePage.dart │ ├── CategorySlider.dart │ └── ShopHomePage.dart ├── main.dart ├── models │ ├── BrandModel.dart │ ├── CategoryModel.dart │ ├── ProductDetails.dart │ ├── ProductsModel.dart │ └── ShopModel.dart ├── screens │ ├── HomeScreen.dart │ ├── ProductDetailScreen.dart │ ├── ProductsScreen.dart │ ├── ShoppingCartScreen.dart │ ├── SubCategoryScreen.dart │ └── WishListScreen.dart └── utils │ ├── Constants.dart │ └── Urls.dart ├── locale ├── i18n_en.json └── i18n_zh.json ├── pubspec.lock ├── pubspec.yaml ├── screens ├── app_screenshot.png ├── detail_page_screen.jpg ├── empty_cart_screen.jpg ├── login_screen.jpg ├── main_screen.jpg ├── product_detail_screen.png ├── product_screen.png ├── signin_screen.jpg └── wishlist_screen.jpg └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 27321ebbad34b0a3fafe99fac037102196d655ff 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter ecommerce App 2 | 3 | A small attempt to make an e-commerce user interface in Flutter for Android and iOS. I developed this application just for learning purpose. I am beginner in flutter so if you found any error solve it. I got all API from online by inspecting the orginal website. 4 | ## 🤓 Author(s) 5 | **Md Tarikul Islam** [![Twitter Follow](https://img.shields.io/twitter/follow/tarikul711.svg?style=social)](https://twitter.com/tarikul711) 6 | 7 | 8 | ### App design screen 9 | 10 | 11 | ## ScreenShots 12 | ### Home Page & Category Screen 13 |          14 | 15 | ### Products Screen & Product Detail Screen 16 |          17 | 18 | ### Login & Registration Screen 19 |      20 | ### Wish list and Empty cart screen 21 |      22 | 23 | ## ✨ Requirements 24 | * Any Operating System (ie. MacOS X, Linux, Windows) 25 | * Any IDE with Flutter SDK installed (ie. Android Studio, VSCode, IntelliJ, etc) 26 | * A little knowledge of Dart and Flutter 27 | * A brain to think 🤓🤓 28 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.tarikul.flutter_ecommerce_app" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_ecommerce_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_ecommerce_app 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity 5 | import io.flutter.embedding.engine.FlutterEngine 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { 10 | GeneratedPluginRegistrant.registerWith(flutterEngine); 11 | } 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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 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.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/CustomIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/CustomIcons.ttf -------------------------------------------------------------------------------- /assets/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/Poppins-Bold.ttf -------------------------------------------------------------------------------- /assets/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/Poppins-Medium.ttf -------------------------------------------------------------------------------- /assets/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/Roboto-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/fonts/Roboto-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/fonts/Roboto-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /assets/images/empty_shopping_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/empty_shopping_cart.png -------------------------------------------------------------------------------- /assets/images/empty_shopping_cart_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/empty_shopping_cart_image.png -------------------------------------------------------------------------------- /assets/images/empty_wish_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/empty_wish_list.png -------------------------------------------------------------------------------- /assets/images/ic_add_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/ic_add_cart.png -------------------------------------------------------------------------------- /assets/images/ic_app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/ic_app_icon.png -------------------------------------------------------------------------------- /assets/images/ic_category_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/ic_category_image.png -------------------------------------------------------------------------------- /assets/images/ic_discount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/ic_discount.png -------------------------------------------------------------------------------- /assets/images/promotion__one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/promotion__one.png -------------------------------------------------------------------------------- /assets/images/promotion_one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/promotion_one.png -------------------------------------------------------------------------------- /assets/images/promotion_three.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/promotion_three.png -------------------------------------------------------------------------------- /assets/images/promotion_two.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/assets/images/promotion_two.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterEcommerceApp; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterEcommerceApp; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterEcommerceApp; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/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/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_ecommerce_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/common_widget/AppBarWidget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/components/AppSignIn.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | 5 | Widget appBarWidget(context) { 6 | return AppBar( 7 | elevation: 0.0, 8 | centerTitle: true, 9 | title: Image.asset( 10 | "assets/images/ic_app_icon.png", 11 | width: 80, 12 | height: 40, 13 | ), 14 | actions: [ 15 | IconButton( 16 | onPressed: () { 17 | Navigator.push( 18 | context, 19 | MaterialPageRoute(builder: (context) => AppSignIn()), 20 | ); 21 | }, 22 | icon: Icon(FontAwesomeIcons.user), 23 | color: Color(0xFF323232), 24 | ), 25 | ], 26 | ); 27 | } 28 | -------------------------------------------------------------------------------- /lib/common_widget/BottomNavBarWidget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/main.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | 5 | class BottomNavBarWidget extends StatefulWidget { 6 | @override 7 | _BottomNavBarWidgetState createState() => _BottomNavBarWidgetState(); 8 | } 9 | 10 | class _BottomNavBarWidgetState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | int _selectedIndex = 0; 14 | void _onItemTapped(int index) { 15 | setState(() { 16 | _selectedIndex = index; 17 | navigateToScreens(index); 18 | }); 19 | 20 | } 21 | 22 | return BottomNavigationBar( 23 | type: BottomNavigationBarType.fixed, 24 | items: const [ 25 | BottomNavigationBarItem( 26 | icon: Icon(Icons.home), 27 | title: Text( 28 | 'Home', 29 | style: TextStyle(color: Color(0xFF545454)), 30 | ), 31 | ), 32 | BottomNavigationBarItem( 33 | icon: Icon(FontAwesomeIcons.heart), 34 | title: Text( 35 | 'Wish List', 36 | style: TextStyle(color: Color(0xFF545454)), 37 | ), 38 | ), 39 | BottomNavigationBarItem( 40 | icon: Icon(FontAwesomeIcons.shoppingBag), 41 | title: Text( 42 | 'Cart', 43 | style: TextStyle(color: Color(0xFF545454)), 44 | ), 45 | ), 46 | BottomNavigationBarItem( 47 | icon: Icon(FontAwesomeIcons.dashcube), 48 | title: Text( 49 | 'Dashboard', 50 | style: TextStyle(color: Color(0xFF545454)), 51 | ), 52 | ), 53 | ], 54 | currentIndex: _selectedIndex, 55 | selectedItemColor: Color(0xFFAA292E), 56 | onTap: _onItemTapped, 57 | ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /lib/common_widget/CircularProgress.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CircularProgress extends StatefulWidget { 4 | @override 5 | _CircularProgressState createState() => _CircularProgressState(); 6 | } 7 | 8 | class _CircularProgressState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | child: Center( 13 | child: CircularProgressIndicator( 14 | ), 15 | ), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/common_widget/DrawerWidget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/main.dart'; 3 | import 'package:flutter_ecommerce_app/screens/WishListScreen.dart'; 4 | import 'package:flutter_ecommerce_app/components/AppSignIn.dart'; 5 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 6 | 7 | class DrawerWidget extends StatefulWidget { 8 | @override 9 | _DrawerWidgetState createState() => _DrawerWidgetState(); 10 | } 11 | 12 | class _DrawerWidgetState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | return SizedBox( 16 | width: MediaQuery.of(context).size.width * 0.65, 17 | child: Drawer( 18 | child: ListView( 19 | padding: EdgeInsets.zero, 20 | children: [ 21 | _createDrawerHeader(), 22 | _createDrawerItem( 23 | icon: Icons.home, 24 | text: 'Home', 25 | onTap: () => Navigator.push( 26 | context, 27 | MaterialPageRoute(builder: (context) => MyHomePage()), 28 | )), 29 | _createDrawerItem( 30 | icon: FontAwesomeIcons.user, 31 | text: 'Sign In', 32 | onTap: () => Navigator.push( 33 | context, 34 | MaterialPageRoute(builder: (context) => AppSignIn()), 35 | )), 36 | _createDrawerItem( 37 | icon: Icons.favorite_border, 38 | text: 'Wish List', 39 | onTap: () => Navigator.push( 40 | context, 41 | MaterialPageRoute(builder: (context) => WishListScreen()), 42 | )), 43 | _createDrawerItem( 44 | icon: Icons.call, 45 | text: 'Contact Us', 46 | onTap: () => Navigator.push( 47 | context, 48 | MaterialPageRoute( 49 | builder: (context) => EmptyWishListScreen()), 50 | )), 51 | ], 52 | ), 53 | ), 54 | ); 55 | } 56 | } 57 | 58 | Widget _createDrawerHeader() { 59 | return DrawerHeader( 60 | margin: EdgeInsets.zero, 61 | padding: EdgeInsets.zero, 62 | child: Stack(children: [ 63 | Container( 64 | padding: EdgeInsets.all(20), 65 | child: Center( 66 | child: Image.asset( 67 | 'assets/images/ic_app_icon.png', 68 | width: 130, 69 | height: 130, 70 | ), 71 | ), 72 | ), 73 | Positioned( 74 | bottom: 12.0, 75 | left: 16.0, 76 | child: Text("Developed for learing purpose by 'TARIKUL'", 77 | style: TextStyle( 78 | color: Color(0xFF545454), 79 | fontSize: 10.0, 80 | fontWeight: FontWeight.w500))), 81 | ])); 82 | } 83 | 84 | Widget _createDrawerItem( 85 | {IconData icon, String text, GestureTapCallback onTap}) { 86 | return ListTile( 87 | title: Row( 88 | children: [ 89 | Icon( 90 | icon, 91 | color: Color(0xFF808080), 92 | ), 93 | Padding( 94 | padding: EdgeInsets.only(left: 15.0), 95 | child: Text( 96 | text, 97 | style: TextStyle(color: Color(0xFF484848)), 98 | ), 99 | ) 100 | ], 101 | ), 102 | onTap: onTap, 103 | ); 104 | } 105 | -------------------------------------------------------------------------------- /lib/common_widget/GridTilesCategory.dart: -------------------------------------------------------------------------------- 1 | import 'dart:developer'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_ecommerce_app/screens/ProductsScreen.dart'; 4 | import 'package:flutter_ecommerce_app/screens/SubCategoryScreen.dart'; 5 | 6 | class GridTilesCategory extends StatelessWidget { 7 | String name; 8 | String imageUrl; 9 | String slug; 10 | bool fromSubProducts = false; 11 | 12 | GridTilesCategory( 13 | {Key key, 14 | @required this.name, 15 | @required this.imageUrl, 16 | @required this.slug, 17 | this.fromSubProducts}) 18 | : super(key: key); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return InkWell( 23 | onTap: () { 24 | if (fromSubProducts) { 25 | print(slug); 26 | Navigator.push( 27 | context, 28 | MaterialPageRoute( 29 | builder: (context) => ProductsScreen( 30 | slug: "products/?page=1&limit=12&category=" + slug, 31 | name: name, 32 | )), 33 | ); 34 | } else { 35 | Navigator.push( 36 | context, 37 | MaterialPageRoute( 38 | builder: (context) => SubCategoryScreen( 39 | slug: slug, 40 | )), 41 | ); 42 | } 43 | }, 44 | child: Card( 45 | color: Colors.white, 46 | elevation: 0, 47 | child: Center( 48 | child: Column( 49 | children: [ 50 | Image.network( 51 | imageUrl, 52 | width: 100, 53 | height: 100, 54 | ), 55 | Text(name, 56 | style: TextStyle( 57 | color: Color(0xFF000000), 58 | fontFamily: 'Roboto-Light.ttf', 59 | fontSize: 12)) 60 | ], 61 | ), 62 | )), 63 | ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /lib/common_widget/GridTilesProducts.dart: -------------------------------------------------------------------------------- 1 | import 'dart:developer'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_ecommerce_app/screens/ProductDetailScreen.dart'; 4 | import 'package:flutter_ecommerce_app/screens/ProductsScreen.dart'; 5 | import 'package:flutter_ecommerce_app/screens/SubCategoryScreen.dart'; 6 | 7 | class GridTilesProducts extends StatelessWidget { 8 | String name; 9 | String imageUrl; 10 | String slug; 11 | String price; 12 | bool fromSubProducts = false; 13 | 14 | GridTilesProducts( 15 | {Key key, 16 | @required this.name, 17 | @required this.imageUrl, 18 | @required this.slug, 19 | @required this.price, 20 | this.fromSubProducts}) 21 | : super(key: key); 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return InkWell( 26 | onTap: () { 27 | /* if (fromSubProducts) { 28 | Navigator.push( 29 | context, 30 | MaterialPageRoute( 31 | builder: (context) => ProductsScreen( 32 | slug: "products/?page=1&limit=12&category=" + slug, 33 | name: name, 34 | )), 35 | ); 36 | } else { 37 | Navigator.push( 38 | context, 39 | MaterialPageRoute( 40 | builder: (context) => SubCategoryScreen( 41 | slug: slug, 42 | )), 43 | ); 44 | }*/ 45 | Navigator.push( 46 | context, 47 | MaterialPageRoute( 48 | builder: (context) => ProductDetailScreen( 49 | slug: "products/" + slug + "/", 50 | )), 51 | ); 52 | }, 53 | child: Container( 54 | padding: EdgeInsets.only(top: 5), 55 | child: Card( 56 | color: Colors.white, 57 | shape: RoundedRectangleBorder( 58 | borderRadius: const BorderRadius.all( 59 | Radius.circular(8.0), 60 | ), 61 | ), 62 | elevation: 0, 63 | child: Center( 64 | child: Column( 65 | children: [ 66 | Image.network( 67 | imageUrl, 68 | width: 150, 69 | height: 150, 70 | ), 71 | Container( 72 | alignment: Alignment.center, 73 | padding: EdgeInsets.only(left: 10, right: 10, top: 15), 74 | child: Text( 75 | (name.length <= 40 ? name : name.substring(0, 40)), 76 | textAlign: TextAlign.left, 77 | style: TextStyle( 78 | color: Color(0xFF444444), 79 | fontFamily: 'Roboto-Light.ttf', 80 | fontSize: 15, 81 | fontWeight: FontWeight.w400)), 82 | ), 83 | Container( 84 | alignment: Alignment.bottomLeft, 85 | padding: EdgeInsets.only(left: 10, right: 10, top: 10), 86 | child: Text("৳ ${(price != null) ? price : 'Unavailable'}", 87 | style: TextStyle( 88 | color: (price != null) 89 | ? Color(0xFFf67426) 90 | : Color(0xFF0dc2cd), 91 | fontFamily: 'Roboto-Light.ttf', 92 | fontSize: 20, 93 | fontWeight: FontWeight.w500)), 94 | ) 95 | ], 96 | ), 97 | )), 98 | ), 99 | ); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /lib/common_widget/PopularMenu.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | 4 | class PopularMenu extends StatelessWidget { 5 | double width, height = 55.0; 6 | double customFontSize = 13; 7 | String defaultFontFamily = 'Roboto-Light.ttf'; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Padding( 12 | padding: EdgeInsets.all(10), 13 | child: Row( 14 | crossAxisAlignment: CrossAxisAlignment.center, 15 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 16 | children: [ 17 | Column( 18 | children: [ 19 | Container( 20 | width: width, 21 | height: height, 22 | decoration: BoxDecoration( 23 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 24 | child: RawMaterialButton( 25 | onPressed: () {}, 26 | shape: CircleBorder(), 27 | child: Icon( 28 | Icons.account_balance, 29 | color: Color(0xFFAB436B), 30 | ), 31 | ), 32 | ), 33 | Text( 34 | "Popular", 35 | style: TextStyle( 36 | color: Color(0xFF969696), 37 | fontFamily: 'Roboto-Light.ttf', 38 | fontSize: customFontSize), 39 | ) 40 | ], 41 | ), 42 | Column( 43 | children: [ 44 | Container( 45 | width: width, 46 | height: height, 47 | decoration: BoxDecoration( 48 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 49 | child: RawMaterialButton( 50 | onPressed: () {}, 51 | shape: CircleBorder(), 52 | child: Icon( 53 | FontAwesomeIcons.clock, 54 | color: Color(0xFFC1A17C), 55 | ), 56 | ), 57 | ), 58 | Text( 59 | "Flash Sell", 60 | style: TextStyle( 61 | color: Color(0xFF969696), 62 | fontFamily: defaultFontFamily, 63 | fontSize: customFontSize), 64 | ) 65 | ], 66 | ), 67 | Column( 68 | children: [ 69 | Container( 70 | width: width, 71 | height: height, 72 | decoration: BoxDecoration( 73 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 74 | child: RawMaterialButton( 75 | onPressed: () {}, 76 | shape: CircleBorder(), 77 | child: Icon( 78 | FontAwesomeIcons.truck, 79 | color: Color(0xFF5EB699), 80 | ), 81 | ), 82 | ), 83 | Text( 84 | "Evaly Store", 85 | style: TextStyle( 86 | color: Color(0xFF969696), 87 | fontFamily: defaultFontFamily, 88 | fontSize: customFontSize), 89 | ) 90 | ], 91 | ), 92 | Column( 93 | children: [ 94 | Container( 95 | width: width, 96 | height: height, 97 | decoration: BoxDecoration( 98 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 99 | child: RawMaterialButton( 100 | onPressed: () {}, 101 | shape: CircleBorder(), 102 | child: Icon( 103 | FontAwesomeIcons.gift, 104 | color: Color(0xFF4D9DA7), 105 | ), 106 | ), 107 | ), 108 | Text( 109 | "Voucher", 110 | style: TextStyle( 111 | color: Color(0xFF969696), 112 | fontFamily: defaultFontFamily, 113 | fontSize: customFontSize), 114 | ) 115 | ], 116 | ) 117 | ], 118 | ), 119 | ); 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/common_widget/SearchWidget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SearchWidget extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Padding( 7 | padding: EdgeInsets.all(10.0), 8 | child: Theme( 9 | child: TextField( 10 | decoration: InputDecoration( 11 | border: OutlineInputBorder( 12 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 13 | borderSide: BorderSide( 14 | width: 0, 15 | style: BorderStyle.none, 16 | ), 17 | ), 18 | filled: true, 19 | prefixIcon: Icon(Icons.search), 20 | fillColor: Color(0xFFF2F4F5), 21 | hintStyle: new TextStyle(color: Colors.grey[600]), 22 | hintText: "What would your like to buy?", 23 | ), 24 | autofocus: false, 25 | ), 26 | data: Theme.of(context).copyWith( 27 | primaryColor: Colors.grey[600], 28 | )), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common_widget/TopPromoSlider.dart: -------------------------------------------------------------------------------- 1 | import 'package:carousel_pro/carousel_pro.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class TopPromoSlider extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Padding( 8 | padding: EdgeInsets.only(left: 10, right: 10), 9 | child: Container( 10 | height: 150.0, 11 | width: double.infinity, 12 | child: Carousel( 13 | images: [ 14 | Image.asset( 15 | "assets/images/promotion__one.png", 16 | height: 150, 17 | width: double.infinity, 18 | ), 19 | // Image.asset("assets/images/promotion_two.png",height: double.infinity,width: double.infinity,), 20 | // Image.asset("assets/images/promotion_three.png",height: double.infinity,width: double.infinity,), 21 | ], 22 | dotSize: 4.0, 23 | dotSpacing: 15.0, 24 | dotColor: Colors.purple, 25 | indicatorBgPadding: 5.0, 26 | dotBgColor: Colors.black54.withOpacity(0.2), 27 | borderRadius: true, 28 | radius: Radius.circular(20), 29 | moveIndicatorFromBottom: 180.0, 30 | noRadiusForIndicator: true, 31 | )), 32 | ); 33 | } 34 | } -------------------------------------------------------------------------------- /lib/components/AppSignIn.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/rendering.dart'; 3 | import 'package:flutter_ecommerce_app/components/AppSingUp.dart'; 4 | 5 | class AppSignIn extends StatefulWidget { 6 | @override 7 | _AppSignInState createState() => _AppSignInState(); 8 | } 9 | 10 | class _AppSignInState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | String defaultFontFamily = 'Roboto-Light.ttf'; 14 | double defaultFontSize = 14; 15 | double defaultIconSize = 17; 16 | 17 | return Scaffold( 18 | body: Container( 19 | padding: EdgeInsets.only(left: 20, right: 20, top: 35, bottom: 30), 20 | width: double.infinity, 21 | height: double.infinity, 22 | color: Colors.white70, 23 | child: Column( 24 | children: [ 25 | Flexible( 26 | flex: 1, 27 | child: InkWell( 28 | child: Container( 29 | child: Align( 30 | alignment: Alignment.topLeft, 31 | child: Icon(Icons.close), 32 | ), 33 | ), 34 | onTap: () { 35 | Navigator.pop(context); 36 | }, 37 | ), 38 | ), 39 | Flexible( 40 | flex: 5, 41 | child: Column( 42 | mainAxisAlignment: MainAxisAlignment.center, 43 | children: [ 44 | Container( 45 | width: 130, 46 | height: 130, 47 | alignment: Alignment.center, 48 | child: Image.asset("assets/images/ic_app_icon.png"), 49 | ), 50 | SizedBox( 51 | height: 15, 52 | ), 53 | TextField( 54 | showCursor: true, 55 | decoration: InputDecoration( 56 | border: OutlineInputBorder( 57 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 58 | borderSide: BorderSide( 59 | width: 0, 60 | style: BorderStyle.none, 61 | ), 62 | ), 63 | filled: true, 64 | prefixIcon: Icon( 65 | Icons.phone, 66 | color: Color(0xFF666666), 67 | size: defaultIconSize, 68 | ), 69 | fillColor: Color(0xFFF2F3F5), 70 | hintStyle: TextStyle( 71 | color: Color(0xFF666666), 72 | fontFamily: defaultFontFamily, 73 | fontSize: defaultFontSize), 74 | hintText: "Phone Number", 75 | ), 76 | ), 77 | SizedBox( 78 | height: 15, 79 | ), 80 | TextField( 81 | showCursor: true, 82 | decoration: InputDecoration( 83 | border: OutlineInputBorder( 84 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 85 | borderSide: BorderSide( 86 | width: 0, 87 | style: BorderStyle.none, 88 | ), 89 | ), 90 | filled: true, 91 | prefixIcon: Icon( 92 | Icons.lock_outline, 93 | color: Color(0xFF666666), 94 | size: defaultIconSize, 95 | ), 96 | suffixIcon: Icon( 97 | Icons.remove_red_eye, 98 | color: Color(0xFF666666), 99 | size: defaultIconSize, 100 | ), 101 | fillColor: Color(0xFFF2F3F5), 102 | hintStyle: TextStyle( 103 | color: Color(0xFF666666), 104 | fontFamily: defaultFontFamily, 105 | fontSize: defaultFontSize, 106 | ), 107 | hintText: "Password", 108 | ), 109 | ), 110 | SizedBox( 111 | height: 15, 112 | ), 113 | Container( 114 | width: double.infinity, 115 | child: Text( 116 | "Forgot your password?", 117 | style: TextStyle( 118 | color: Color(0xFF666666), 119 | fontFamily: defaultFontFamily, 120 | fontSize: defaultFontSize, 121 | fontStyle: FontStyle.normal, 122 | ), 123 | textAlign: TextAlign.end, 124 | ), 125 | ), 126 | SizedBox( 127 | height: 15, 128 | ), 129 | Container( 130 | width: double.infinity, 131 | child: RaisedButton( 132 | padding: EdgeInsets.all(17.0), 133 | onPressed: () {}, 134 | child: Text( 135 | "Sign In", 136 | style: TextStyle( 137 | color: Colors.white, 138 | fontSize: 18, 139 | fontFamily: 'Poppins-Medium.ttf', 140 | ), 141 | textAlign: TextAlign.center, 142 | ), 143 | color: Color(0xFFBC1F26), 144 | shape: RoundedRectangleBorder( 145 | borderRadius: new BorderRadius.circular(15.0), 146 | side: BorderSide(color: Color(0xFFBC1F26))), 147 | ), 148 | decoration: BoxDecoration( 149 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 150 | ), 151 | SizedBox( 152 | height: 10, 153 | ), 154 | ], 155 | ), 156 | ), 157 | Flexible( 158 | flex: 1, 159 | child: Align( 160 | alignment: Alignment.bottomCenter, 161 | child: Row( 162 | crossAxisAlignment: CrossAxisAlignment.center, 163 | mainAxisAlignment: MainAxisAlignment.center, 164 | children: [ 165 | Container( 166 | child: Text( 167 | "Don't have an account? ", 168 | style: TextStyle( 169 | color: Color(0xFF666666), 170 | fontFamily: defaultFontFamily, 171 | fontSize: defaultFontSize, 172 | fontStyle: FontStyle.normal, 173 | ), 174 | ), 175 | ), 176 | InkWell( 177 | onTap: () => { 178 | Navigator.push( 179 | context, 180 | MaterialPageRoute(builder: (context) => AppSingUp()), 181 | ) 182 | }, 183 | child: Container( 184 | child: Text( 185 | "Sign Up", 186 | style: TextStyle( 187 | color: Color(0xFFAC252B), 188 | fontFamily: defaultFontFamily, 189 | fontSize: defaultFontSize, 190 | fontStyle: FontStyle.normal, 191 | ), 192 | ), 193 | ), 194 | ), 195 | ], 196 | ), 197 | ), 198 | ) 199 | ], 200 | ), 201 | ), 202 | ); 203 | } 204 | } 205 | -------------------------------------------------------------------------------- /lib/components/AppSingUp.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/components/AppSignIn.dart'; 3 | 4 | class AppSingUp extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | String defaultFontFamily = 'Roboto-Light.ttf'; 8 | double defaultFontSize = 14; 9 | double defaultIconSize = 17; 10 | 11 | return Scaffold( 12 | body: Container( 13 | padding: EdgeInsets.only(left: 20, right: 20, top: 35, bottom: 30), 14 | width: double.infinity, 15 | height: double.infinity, 16 | color: Colors.white70, 17 | child: Column( 18 | children: [ 19 | Flexible( 20 | flex: 1, 21 | child: InkWell( 22 | child: Container( 23 | child: Align( 24 | alignment: Alignment.topLeft, 25 | child: Icon(Icons.close), 26 | 27 | ), 28 | 29 | ), 30 | onTap: (){ 31 | Navigator.pop(context); 32 | }, 33 | ), 34 | ), 35 | Flexible( 36 | flex: 5, 37 | child: Column( 38 | mainAxisAlignment: MainAxisAlignment.center, 39 | children: [ 40 | Container( 41 | width: 130, 42 | height: 130, 43 | alignment: Alignment.center, 44 | child: Image.asset("assets/images/ic_app_icon.png"), 45 | ), 46 | SizedBox( 47 | height: 15, 48 | ), 49 | Row( 50 | children: [ 51 | Flexible( 52 | flex: 1, 53 | child: TextField( 54 | showCursor: true, 55 | decoration: InputDecoration( 56 | border: OutlineInputBorder( 57 | borderRadius: 58 | BorderRadius.all(Radius.circular(10.0)), 59 | borderSide: BorderSide( 60 | width: 0, 61 | style: BorderStyle.none, 62 | ), 63 | ), 64 | filled: true, 65 | fillColor: Color(0xFFF2F3F5), 66 | hintStyle: TextStyle( 67 | color: Color(0xFF666666), 68 | fontFamily: defaultFontFamily, 69 | fontSize: defaultFontSize, 70 | ), 71 | hintText: "First Name", 72 | ), 73 | ), 74 | ), 75 | SizedBox( 76 | width: 10, 77 | ), 78 | Flexible( 79 | flex: 1, 80 | child: TextField( 81 | showCursor: true, 82 | decoration: InputDecoration( 83 | border: OutlineInputBorder( 84 | borderRadius: 85 | BorderRadius.all(Radius.circular(10.0)), 86 | borderSide: BorderSide( 87 | width: 0, 88 | style: BorderStyle.none, 89 | ), 90 | ), 91 | filled: true, 92 | fillColor: Color(0xFFF2F3F5), 93 | hintStyle: TextStyle( 94 | color: Color(0xFF666666), 95 | fontFamily: defaultFontFamily, 96 | fontSize: defaultFontSize, 97 | ), 98 | hintText: "Last Name", 99 | ), 100 | ), 101 | ), 102 | ], 103 | ), 104 | SizedBox( 105 | height: 15, 106 | ), 107 | TextField( 108 | showCursor: true, 109 | decoration: InputDecoration( 110 | border: OutlineInputBorder( 111 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 112 | borderSide: BorderSide( 113 | width: 0, 114 | style: BorderStyle.none, 115 | ), 116 | ), 117 | filled: true, 118 | prefixIcon: Icon( 119 | Icons.phone, 120 | color: Color(0xFF666666), 121 | size: defaultIconSize, 122 | ), 123 | fillColor: Color(0xFFF2F3F5), 124 | hintStyle: TextStyle( 125 | color: Color(0xFF666666), 126 | fontFamily: defaultFontFamily, 127 | fontSize: defaultFontSize), 128 | hintText: "Phone Number", 129 | ), 130 | ), 131 | SizedBox( 132 | height: 15, 133 | ), 134 | TextField( 135 | showCursor: true, 136 | decoration: InputDecoration( 137 | border: OutlineInputBorder( 138 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 139 | borderSide: BorderSide( 140 | width: 0, 141 | style: BorderStyle.none, 142 | ), 143 | ), 144 | filled: true, 145 | prefixIcon: Icon( 146 | Icons.code, 147 | color: Color(0xFF666666), 148 | size: defaultIconSize, 149 | ), 150 | fillColor: Color(0xFFF2F3F5), 151 | hintStyle: TextStyle( 152 | color: Color(0xFF666666), 153 | fontFamily: defaultFontFamily, 154 | fontSize: defaultFontSize, 155 | ), 156 | hintText: "Invitation Code", 157 | ), 158 | ), 159 | SizedBox( 160 | height: 10, 161 | ), 162 | Container( 163 | width: double.infinity, 164 | child: Row( 165 | children: [ 166 | Icon( 167 | Icons.info_outline, 168 | color: Color(0xFF666666), 169 | size: defaultIconSize, 170 | ), 171 | Text( 172 | " Leave empty if you don't have Invitation Code", 173 | style: TextStyle( 174 | color: Color(0xFF666666), 175 | fontFamily: defaultFontFamily, 176 | fontSize: defaultFontSize, 177 | fontStyle: FontStyle.normal, 178 | ), 179 | textAlign: TextAlign.left, 180 | ), 181 | ], 182 | )), 183 | SizedBox( 184 | height: 15, 185 | ), 186 | Container( 187 | width: double.infinity, 188 | child: RaisedButton( 189 | padding: EdgeInsets.all(17.0), 190 | onPressed: () {}, 191 | child: Text( 192 | "Sign Up", 193 | style: TextStyle( 194 | color: Colors.white, 195 | fontSize: 18, 196 | fontFamily: 'Poppins-Medium.ttf', 197 | ), 198 | textAlign: TextAlign.center, 199 | ), 200 | color: Color(0xFFBC1F26), 201 | shape: RoundedRectangleBorder( 202 | borderRadius: new BorderRadius.circular(15.0), 203 | side: BorderSide(color: Color(0xFFBC1F26))), 204 | ), 205 | decoration: BoxDecoration( 206 | shape: BoxShape.circle, color: Color(0xFFF2F3F7)), 207 | ), 208 | SizedBox( 209 | height: 10, 210 | ), 211 | ], 212 | ), 213 | ), 214 | Flexible( 215 | flex: 1, 216 | child: Align( 217 | alignment: Alignment.bottomCenter, 218 | child: Row( 219 | crossAxisAlignment: CrossAxisAlignment.center, 220 | mainAxisAlignment: MainAxisAlignment.center, 221 | children: [ 222 | Container( 223 | child: Text( 224 | "Already have an account? ", 225 | style: TextStyle( 226 | color: Color(0xFF666666), 227 | fontFamily: defaultFontFamily, 228 | fontSize: defaultFontSize, 229 | fontStyle: FontStyle.normal, 230 | ), 231 | ), 232 | ), 233 | InkWell( 234 | onTap: () { 235 | Navigator.push( 236 | context, 237 | MaterialPageRoute(builder: (context) => AppSignIn()), 238 | ); 239 | }, 240 | child: Container( 241 | child: Text( 242 | "Sign In", 243 | style: TextStyle( 244 | color: Color(0xFFAC252B), 245 | fontFamily: defaultFontFamily, 246 | fontSize: defaultFontSize, 247 | fontStyle: FontStyle.normal, 248 | ), 249 | ), 250 | ), 251 | ), 252 | ], 253 | ), 254 | ), 255 | ) 256 | ], 257 | ), 258 | ), 259 | ); 260 | } 261 | } 262 | -------------------------------------------------------------------------------- /lib/components/BrandHomePage.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:developer'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/CircularProgress.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/GridTilesCategory.dart'; 6 | import 'package:flutter_ecommerce_app/utils/Urls.dart'; 7 | import 'package:http/http.dart'; 8 | 9 | import '../models/BrandModel.dart'; 10 | 11 | BrandModel brandModel; 12 | 13 | class BrandHomePage extends StatefulWidget { 14 | String slug; 15 | bool isSubList; 16 | 17 | BrandHomePage({Key key, this.slug, this.isSubList=false}) : super(key: key); 18 | @override 19 | _BrandHomePageState createState() => _BrandHomePageState(); 20 | } 21 | 22 | class _BrandHomePageState extends State { 23 | void initState() { 24 | super.initState(); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return FutureBuilder( 30 | future: getCategoryList(widget.slug,widget.isSubList), 31 | builder: (context, AsyncSnapshot snapshot) { 32 | switch (snapshot.connectionState) { 33 | case ConnectionState.none: 34 | case ConnectionState.waiting: 35 | return CircularProgress(); 36 | default: 37 | if (snapshot.hasError) 38 | return Text('Error: ${snapshot.error}'); 39 | else 40 | return createListView(context, snapshot); 41 | } 42 | }, 43 | ); 44 | } 45 | } 46 | 47 | Widget createListView(BuildContext context, AsyncSnapshot snapshot) { 48 | BrandModel values = snapshot.data; 49 | List results = values.results; 50 | return GridView.count( 51 | crossAxisCount: 3, 52 | padding: EdgeInsets.all(1.0), 53 | childAspectRatio: 8.0 / 9.0, 54 | children: List.generate(results.length, (index) { 55 | return GridTile( 56 | child: GridTilesCategory( 57 | name: results[index].name, 58 | imageUrl: results[index].imageUrl, 59 | slug: results[index].slug)); 60 | }), 61 | ); 62 | } 63 | 64 | Future getCategoryList(String slug, bool isSubList) async { 65 | if (brandModel == null) { 66 | Response response = await get(Urls.ROOT_URL + slug); 67 | int statusCode = response.statusCode; 68 | var body = json.decode(response.body); 69 | log('${body}'); 70 | if (statusCode == 200) { 71 | brandModel = BrandModel.fromJson(body); 72 | // brandModel = (body).map((i) =>BrandModel.fromJson(body)) ; 73 | return brandModel; 74 | } 75 | } else { 76 | return brandModel; 77 | } 78 | } 79 | 80 | //https://api.evaly.com.bd/core/public/brands/?limit=20&page=1&category=bags-luggage-966bc8aac -------------------------------------------------------------------------------- /lib/components/CategorySlider.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_ecommerce_app/models/CategoryModel.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/CircularProgress.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/GridTilesCategory.dart'; 6 | import 'package:flutter_ecommerce_app/utils/Urls.dart'; 7 | import 'package:http/http.dart'; 8 | 9 | List categories; 10 | 11 | class CategoryPage extends StatefulWidget { 12 | String slug; 13 | bool isSubList; 14 | 15 | CategoryPage({Key key, this.slug, this.isSubList = false}) : super(key: key); 16 | 17 | @override 18 | _CategoryPageState createState() => _CategoryPageState(); 19 | } 20 | 21 | class _CategoryPageState extends State { 22 | @override 23 | void initState() { 24 | super.initState(); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return FutureBuilder( 30 | future: getCategoryList(widget.slug, widget.isSubList), 31 | builder: (context, AsyncSnapshot snapshot) { 32 | switch (snapshot.connectionState) { 33 | case ConnectionState.none: 34 | case ConnectionState.waiting: 35 | return CircularProgress(); 36 | default: 37 | if (snapshot.hasError) 38 | return Text('Error: ${snapshot.error}'); 39 | else 40 | return createListView(context, snapshot, widget.isSubList); 41 | } 42 | }, 43 | ); 44 | } 45 | } 46 | 47 | Widget createListView( 48 | BuildContext context, AsyncSnapshot snapshot, bool isSubList) { 49 | List values = snapshot.data; 50 | return GridView.count( 51 | crossAxisCount: 3, 52 | // physics: NeverScrollableScrollPhysics(), 53 | padding: EdgeInsets.all(1.0), 54 | childAspectRatio: 8.0 / 9.0, 55 | children: List.generate(values.length, (index) { 56 | return GridTile( 57 | child: GridTilesCategory( 58 | name: values[index].name, 59 | imageUrl: values[index].imageUrl, 60 | slug: values[index].slug, 61 | fromSubProducts: isSubList, 62 | )); 63 | }), 64 | ); 65 | } 66 | 67 | Future> getCategoryList(String slug, bool isSubList) async { 68 | if (isSubList) { 69 | categories = null; 70 | } 71 | if (categories == null) { 72 | Response response; 73 | response = await get(Urls.ROOT_URL + slug); 74 | int statusCode = response.statusCode; 75 | final body = json.decode(response.body); 76 | if (statusCode == 200) { 77 | categories = 78 | (body as List).map((i) => CategoryModel.fromJson(i)).toList(); 79 | 80 | return categories; 81 | } else { 82 | return categories = List(); 83 | } 84 | } else { 85 | return categories; 86 | } 87 | } 88 | 89 | // https://api.evaly.com.bd/core/public/categories/?parent=bags-luggage-966bc8aac sub cate by slug 90 | -------------------------------------------------------------------------------- /lib/components/ShopHomePage.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:developer'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/CircularProgress.dart'; 6 | import 'package:flutter_ecommerce_app/common_widget/GridTilesCategory.dart'; 7 | import 'package:flutter_ecommerce_app/models/ShopModel.dart'; 8 | import 'package:flutter_ecommerce_app/utils/Urls.dart'; 9 | import 'package:http/http.dart'; 10 | 11 | ShopModel shopModel; 12 | 13 | class ShopHomePage extends StatefulWidget { 14 | String slug; 15 | bool isSubList; 16 | 17 | ShopHomePage({Key key, this.slug, this.isSubList=false}) : super(key: key); 18 | @override 19 | _ShopHomePageState createState() => _ShopHomePageState(); 20 | } 21 | 22 | class _ShopHomePageState extends State { 23 | @override 24 | Widget build(BuildContext context) { 25 | return FutureBuilder( 26 | future: getCategoryList(widget.slug, widget.isSubList), 27 | builder: (context, AsyncSnapshot snapshot) { 28 | switch (snapshot.connectionState) { 29 | case ConnectionState.none: 30 | case ConnectionState.waiting: 31 | return CircularProgress(); 32 | default: 33 | if (snapshot.hasError) 34 | return Text('Error: ${snapshot.error}'); 35 | else 36 | return createListView(context, snapshot); 37 | } 38 | }, 39 | ); 40 | } 41 | } 42 | 43 | Widget createListView(BuildContext context, AsyncSnapshot snapshot) { 44 | ShopModel values = snapshot.data; 45 | List results = values.data; 46 | return GridView.count( 47 | crossAxisCount: 3, 48 | padding: EdgeInsets.all(1.0), 49 | childAspectRatio: 8.0 / 9.0, 50 | children: List.generate(results.length, (index) { 51 | return GridTile( 52 | child: GridTilesCategory( 53 | name: results[index].shopName, 54 | imageUrl: results[index].shopImage,slug:results[index].slug)); 55 | }), 56 | ); 57 | } 58 | 59 | Future getCategoryList(String slug, bool isSubList) async { 60 | if (isSubList) { 61 | shopModel = null; 62 | } 63 | if (shopModel == null) { 64 | Response response = 65 | await get(Urls.ROOT_URL + slug); 66 | int statusCode = response.statusCode; 67 | var body = json.decode(response.body); 68 | log('${body}'); 69 | if (statusCode == 200) { 70 | shopModel = ShopModel.fromJson(body); 71 | // brandModel = (body).map((i) =>BrandModel.fromJson(body)) ; 72 | return shopModel; 73 | } 74 | } else { 75 | return shopModel; 76 | } 77 | } 78 | //https://api.evaly.com.bd/core/public/category/shops/bags-luggage-966bc8aac/?page=1&limit=15 -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_ecommerce_app/common_widget/AppBarWidget.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/BottomNavBarWidget.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/DrawerWidget.dart'; 6 | import 'package:flutter_ecommerce_app/screens/HomeScreen.dart'; 7 | import 'package:flutter_ecommerce_app/screens/ProductDetailScreen.dart'; 8 | import 'package:flutter_ecommerce_app/screens/ShoppingCartScreen.dart'; 9 | import 'package:flutter_ecommerce_app/screens/WishListScreen.dart'; 10 | import 'package:flutter_ecommerce_app/components/AppSignIn.dart'; 11 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 12 | 13 | void main() => runApp(MyApp()); 14 | 15 | class MyApp extends StatelessWidget { 16 | @override 17 | Widget build(BuildContext context) { 18 | return MaterialApp( 19 | home: MyHomePage(), 20 | theme: ThemeData( 21 | fontFamily: 'Roboto', 22 | primaryColor: Colors.white, 23 | primaryColorDark: Colors.white, 24 | backgroundColor: Colors.white), 25 | debugShowCheckedModeBanner: false, 26 | ); 27 | } 28 | } 29 | 30 | int currentIndex = 0; 31 | 32 | void navigateToScreens(int index) { 33 | currentIndex = index; 34 | } 35 | 36 | class MyHomePage extends StatefulWidget { 37 | @override 38 | _MyHomePageNewState createState() => _MyHomePageNewState(); 39 | } 40 | 41 | class _MyHomePageNewState extends State { 42 | final List viewContainer = [ 43 | HomeScreen(), 44 | WishListScreen(), 45 | ShoppingCartScreen(), 46 | HomeScreen() 47 | ]; 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return DefaultTabController( 52 | length: 3, 53 | child: Scaffold( 54 | appBar: appBarWidget(context), 55 | drawer: DrawerWidget(), 56 | body: IndexedStack( 57 | index: currentIndex, 58 | children: viewContainer, 59 | ), 60 | bottomNavigationBar: BottomNavBarWidget(), 61 | ), 62 | ); 63 | } 64 | } 65 | 66 | //https://api.evaly.com.bd/core/public/products/?page=1&limit=12&category=facial-cleansing-brushes-84365a5ee 67 | 68 | //https://api.evaly.com.bd/core/public/products/?page=1&limit=12&category=bags-luggage-966bc8aac 69 | -------------------------------------------------------------------------------- /lib/models/BrandModel.dart: -------------------------------------------------------------------------------- 1 | class BrandModel { 2 | int count; 3 | String next; 4 | String previous; 5 | List results; 6 | 7 | BrandModel({this.count, this.next, this.previous, this.results}); 8 | 9 | BrandModel.fromJson(Map json) { 10 | count = json['count']; 11 | next = json['next']; 12 | previous = json['previous']; 13 | if (json['results'] != null) { 14 | results = new List(); 15 | json['results'].forEach((v) { 16 | results.add(new Results.fromJson(v)); 17 | }); 18 | } 19 | } 20 | 21 | Map toJson() { 22 | final Map data = new Map(); 23 | data['count'] = this.count; 24 | data['next'] = this.next; 25 | data['previous'] = this.previous; 26 | if (this.results != null) { 27 | data['results'] = this.results.map((v) => v.toJson()).toList(); 28 | } 29 | return data; 30 | } 31 | } 32 | 33 | class Results { 34 | String name; 35 | String slug; 36 | String imageUrl; 37 | 38 | Results({this.name, this.slug, this.imageUrl}); 39 | 40 | Results.fromJson(Map json) { 41 | name = json['name']; 42 | slug = json['slug']; 43 | imageUrl = json['image_url']; 44 | } 45 | 46 | Map toJson() { 47 | final Map data = new Map(); 48 | data['name'] = this.name; 49 | data['slug'] = this.slug; 50 | data['image_url'] = this.imageUrl; 51 | return data; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/models/CategoryModel.dart: -------------------------------------------------------------------------------- 1 | class CategoryModel { 2 | String name; 3 | String slug; 4 | String imageUrl; 5 | 6 | CategoryModel({this.name, this.slug, this.imageUrl}); 7 | 8 | CategoryModel.fromJson(Map json) { 9 | name = json['name']; 10 | slug = json['slug']; 11 | imageUrl = json['image_url']; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['name'] = this.name; 17 | data['slug'] = this.slug; 18 | data['image_url'] = this.imageUrl; 19 | return data; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/models/ProductDetails.dart: -------------------------------------------------------------------------------- 1 | class ProductDetails { 2 | bool success; 3 | String message; 4 | Data data; 5 | 6 | ProductDetails({this.success, this.message, this.data}); 7 | 8 | ProductDetails.fromJson(Map json) { 9 | success = json['success']; 10 | message = json['message']; 11 | data = json['data'] != null ? new Data.fromJson(json['data']) : null; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['success'] = this.success; 17 | data['message'] = this.message; 18 | if (this.data != null) { 19 | data['data'] = this.data.toJson(); 20 | } 21 | return data; 22 | } 23 | } 24 | 25 | class Data { 26 | List attributes; 27 | List productVariants; 28 | List productSpecifications; 29 | 30 | Data({this.attributes, this.productVariants, this.productSpecifications}); 31 | 32 | Data.fromJson(Map json) { 33 | if (json['attributes'] != null) { 34 | attributes = new List(); 35 | json['attributes'].forEach((v) { 36 | attributes.add(new Attributes.fromJson(v)); 37 | }); 38 | } 39 | if (json['product_variants'] != null) { 40 | productVariants = new List(); 41 | json['product_variants'].forEach((v) { 42 | productVariants.add(new ProductVariants.fromJson(v)); 43 | }); 44 | } 45 | if (json['product_specifications'] != null) { 46 | productSpecifications = new List(); 47 | json['product_specifications'].forEach((v) { 48 | productSpecifications.add(new ProductSpecifications.fromJson(v)); 49 | }); 50 | } 51 | } 52 | 53 | Map toJson() { 54 | final Map data = new Map(); 55 | if (this.attributes != null) { 56 | data['attributes'] = this.attributes.map((v) => v.toJson()).toList(); 57 | } 58 | if (this.productVariants != null) { 59 | data['product_variants'] = 60 | this.productVariants.map((v) => v.toJson()).toList(); 61 | } 62 | if (this.productSpecifications != null) { 63 | data['product_specifications'] = 64 | this.productSpecifications.map((v) => v.toJson()).toList(); 65 | } 66 | return data; 67 | } 68 | } 69 | 70 | class Attributes { 71 | String attributeSlug; 72 | String attributeName; 73 | List attributeValues; 74 | 75 | Attributes({this.attributeSlug, this.attributeName, this.attributeValues}); 76 | 77 | Attributes.fromJson(Map json) { 78 | attributeSlug = json['attribute_slug']; 79 | attributeName = json['attribute_name']; 80 | if (json['attribute_values'] != null) { 81 | attributeValues = new List(); 82 | json['attribute_values'].forEach((v) { 83 | attributeValues.add(new AttributeValues.fromJson(v)); 84 | }); 85 | } 86 | } 87 | 88 | Map toJson() { 89 | final Map data = new Map(); 90 | data['attribute_slug'] = this.attributeSlug; 91 | data['attribute_name'] = this.attributeName; 92 | if (this.attributeValues != null) { 93 | data['attribute_values'] = 94 | this.attributeValues.map((v) => v.toJson()).toList(); 95 | } 96 | return data; 97 | } 98 | } 99 | 100 | class AttributeValues { 101 | String value; 102 | int key; 103 | 104 | AttributeValues({this.value, this.key}); 105 | 106 | AttributeValues.fromJson(Map json) { 107 | value = json['value']; 108 | key = json['key']; 109 | } 110 | 111 | Map toJson() { 112 | final Map data = new Map(); 113 | data['value'] = this.value; 114 | data['key'] = this.key; 115 | return data; 116 | } 117 | } 118 | 119 | class ProductVariants { 120 | String sku; 121 | int variantId; 122 | String productName; 123 | int approved; 124 | dynamic minPrice; 125 | dynamic maxPrice; 126 | String productDescription; 127 | String brandName; 128 | String brandSlug; 129 | String categorySlug; 130 | int categoryId; 131 | String categoryName; 132 | List attributeValues; 133 | List productImages; 134 | String colorImage; 135 | 136 | ProductVariants( 137 | {this.sku, 138 | this.variantId, 139 | this.productName, 140 | this.approved, 141 | this.minPrice, 142 | this.maxPrice, 143 | this.productDescription, 144 | this.brandName, 145 | this.brandSlug, 146 | this.categorySlug, 147 | this.categoryId, 148 | this.categoryName, 149 | this.attributeValues, 150 | this.productImages, 151 | this.colorImage}); 152 | 153 | ProductVariants.fromJson(Map json) { 154 | sku = json['sku']; 155 | variantId = json['variant_id']; 156 | productName = json['product_name']; 157 | approved = json['approved']; 158 | minPrice = json['min_price']; 159 | maxPrice = json['max_price']; 160 | productDescription = json['product_description']; 161 | brandName = json['brand_name']; 162 | brandSlug = json['brand_slug']; 163 | categorySlug = json['category_slug']; 164 | categoryId = json['category_id']; 165 | categoryName = json['category_name']; 166 | attributeValues = json['attribute_values'].cast(); 167 | productImages = json['product_images'].cast(); 168 | colorImage = json['color_image']; 169 | } 170 | 171 | Map toJson() { 172 | final Map data = new Map(); 173 | data['sku'] = this.sku; 174 | data['variant_id'] = this.variantId; 175 | data['product_name'] = this.productName; 176 | data['approved'] = this.approved; 177 | data['min_price'] = this.minPrice; 178 | data['max_price'] = this.maxPrice; 179 | data['product_description'] = this.productDescription; 180 | data['brand_name'] = this.brandName; 181 | data['brand_slug'] = this.brandSlug; 182 | data['category_slug'] = this.categorySlug; 183 | data['category_id'] = this.categoryId; 184 | data['category_name'] = this.categoryName; 185 | data['attribute_values'] = this.attributeValues; 186 | data['product_images'] = this.productImages; 187 | data['color_image'] = this.colorImage; 188 | return data; 189 | } 190 | } 191 | 192 | class ProductSpecifications { 193 | int id; 194 | String specificationName; 195 | String specificationValue; 196 | 197 | ProductSpecifications( 198 | {this.id, this.specificationName, this.specificationValue}); 199 | 200 | ProductSpecifications.fromJson(Map json) { 201 | id = json['id']; 202 | specificationName = json['specification_name']; 203 | specificationValue = json['specification_value']; 204 | } 205 | 206 | Map toJson() { 207 | final Map data = new Map(); 208 | data['id'] = this.id; 209 | data['specification_name'] = this.specificationName; 210 | data['specification_value'] = this.specificationValue; 211 | return data; 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /lib/models/ProductsModel.dart: -------------------------------------------------------------------------------- 1 | class ProductsModels { 2 | int count; 3 | String next; 4 | Null previous; 5 | List results; 6 | 7 | ProductsModels({this.count, this.next, this.previous, this.results}); 8 | 9 | ProductsModels.fromJson(Map json) { 10 | count = json['count']; 11 | next = json['next']; 12 | previous = json['previous']; 13 | if (json['results'] != null) { 14 | results = new List(); 15 | json['results'].forEach((v) { 16 | results.add(new Results.fromJson(v)); 17 | }); 18 | } 19 | } 20 | 21 | Map toJson() { 22 | final Map data = new Map(); 23 | data['count'] = this.count; 24 | data['next'] = this.next; 25 | data['previous'] = this.previous; 26 | if (this.results != null) { 27 | data['results'] = this.results.map((v) => v.toJson()).toList(); 28 | } 29 | return data; 30 | } 31 | } 32 | 33 | class Results { 34 | String name; 35 | String slug; 36 | List imageUrls; 37 | String priceType; 38 | String maxPrice; 39 | String minPrice; 40 | String minDiscountedPrice; 41 | 42 | Results( 43 | {this.name, 44 | this.slug, 45 | this.imageUrls, 46 | this.priceType, 47 | this.maxPrice, 48 | this.minPrice, 49 | this.minDiscountedPrice}); 50 | 51 | Results.fromJson(Map json) { 52 | name = json['name']; 53 | slug = json['slug']; 54 | imageUrls = json['image_urls'].cast(); 55 | priceType = json['price_type']; 56 | maxPrice = json['max_price']; 57 | minPrice = json['min_price']; 58 | minDiscountedPrice = json['min_discounted_price']; 59 | } 60 | 61 | Map toJson() { 62 | final Map data = new Map(); 63 | data['name'] = this.name; 64 | data['slug'] = this.slug; 65 | data['image_urls'] = this.imageUrls; 66 | data['price_type'] = this.priceType; 67 | data['max_price'] = this.maxPrice; 68 | data['min_price'] = this.minPrice; 69 | data['min_discounted_price'] = this.minDiscountedPrice; 70 | return data; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/models/ShopModel.dart: -------------------------------------------------------------------------------- 1 | class ShopModel { 2 | bool success; 3 | String message; 4 | int count; 5 | List data; 6 | 7 | ShopModel({this.success, this.message, this.count, this.data}); 8 | 9 | ShopModel.fromJson(Map json) { 10 | success = json['success']; 11 | message = json['message']; 12 | count = json['count']; 13 | if (json['data'] != null) { 14 | data = new List(); 15 | json['data'].forEach((v) { 16 | data.add(new Data.fromJson(v)); 17 | }); 18 | } 19 | } 20 | 21 | Map toJson() { 22 | final Map data = new Map(); 23 | data['success'] = this.success; 24 | data['message'] = this.message; 25 | data['count'] = this.count; 26 | if (this.data != null) { 27 | data['data'] = this.data.map((v) => v.toJson()).toList(); 28 | } 29 | return data; 30 | } 31 | } 32 | 33 | class Data { 34 | String slug; 35 | String contactNumber; 36 | String shopName; 37 | String shopImage; 38 | int approval; 39 | String ownerName; 40 | 41 | Data( 42 | {this.slug, 43 | this.contactNumber, 44 | this.shopName, 45 | this.shopImage, 46 | this.approval, 47 | this.ownerName}); 48 | 49 | Data.fromJson(Map json) { 50 | slug = json['slug']; 51 | contactNumber = json['contact_number']; 52 | shopName = json['shop_name']; 53 | shopImage = json['shop_image']; 54 | approval = json['approval']; 55 | ownerName = json['owner_name']; 56 | } 57 | 58 | Map toJson() { 59 | final Map data = new Map(); 60 | data['slug'] = this.slug; 61 | data['contact_number'] = this.contactNumber; 62 | data['shop_name'] = this.shopName; 63 | data['shop_image'] = this.shopImage; 64 | data['approval'] = this.approval; 65 | data['owner_name'] = this.ownerName; 66 | return data; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/screens/HomeScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/components/BrandHomePage.dart'; 3 | import 'package:flutter_ecommerce_app/components/CategorySlider.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/PopularMenu.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/SearchWidget.dart'; 6 | import 'package:flutter_ecommerce_app/common_widget/TopPromoSlider.dart'; 7 | import 'package:flutter_ecommerce_app/components/ShopHomePage.dart'; 8 | 9 | class HomeScreen extends StatefulWidget { 10 | @override 11 | _HomeScreenState createState() => _HomeScreenState(); 12 | } 13 | 14 | class _HomeScreenState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | return SafeArea( 18 | child: Column( 19 | children: [ 20 | SearchWidget(), 21 | TopPromoSlider(), 22 | PopularMenu(), 23 | SizedBox( 24 | height: 10, 25 | child: Container( 26 | color: Color(0xFFf5f6f7), 27 | ), 28 | ), 29 | PreferredSize( 30 | preferredSize: Size.fromHeight(50.0), 31 | child: TabBar( 32 | labelColor: Colors.black, 33 | tabs: [ 34 | Tab( 35 | text: 'Categories', 36 | ), 37 | Tab( 38 | text: 'Brands', 39 | ), 40 | Tab( 41 | text: 'Shops', 42 | ) 43 | ], // list of tabs 44 | ), 45 | ), 46 | SizedBox( 47 | height: 10, 48 | child: Container( 49 | color: Color(0xFFf5f6f7), 50 | ), 51 | ), 52 | Expanded( 53 | child: TabBarView( 54 | children: [ 55 | Container( 56 | color: Colors.white24, 57 | child: CategoryPage(slug: 'categories/'), 58 | ), 59 | Container( 60 | color: Colors.white24, 61 | child: BrandHomePage(slug: 'brands/?limit=20&page=1'), 62 | ), 63 | Container( 64 | color: Colors.white24, 65 | child: ShopHomePage( 66 | slug: 'custom/shops/?page=1&limit=15', 67 | ), 68 | ) // class name 69 | ], 70 | ), 71 | ), 72 | ], 73 | ), 74 | ); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/screens/ProductDetailScreen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/AppBarWidget.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/CircularProgress.dart'; 6 | import 'package:flutter_ecommerce_app/models/ProductDetails.dart'; 7 | import 'package:flutter_ecommerce_app/utils/Urls.dart'; 8 | import 'package:http/http.dart'; 9 | 10 | ProductDetails productDetails; 11 | 12 | class ProductDetailScreen extends StatefulWidget { 13 | String slug; 14 | 15 | ProductDetailScreen({Key key, @required this.slug}) : super(key: key); 16 | 17 | @override 18 | _ProductDetailScreenState createState() => _ProductDetailScreenState(); 19 | } 20 | 21 | //https://api.evaly.com.bd/core/public/products/leather-backpack-for-women-6dba2a50d/ 22 | //https://api.evaly.com.bd/core/public/products/special-women-kids-cotton-panjabi-kameez-by-swapons-world-combo-pack-c8648f9f9/ 23 | 24 | class _ProductDetailScreenState extends State { 25 | @override 26 | Widget build(BuildContext context) { 27 | return Scaffold( 28 | backgroundColor: Color(0xFFfafafa), 29 | appBar: appBarWidget(context), 30 | body: FutureBuilder( 31 | future: getDetailData(widget.slug), 32 | builder: (context, AsyncSnapshot snapshot) { 33 | switch (snapshot.connectionState) { 34 | case ConnectionState.none: 35 | case ConnectionState.waiting: 36 | return CircularProgress(); 37 | default: 38 | if (snapshot.hasError) 39 | return Text('Error: ${snapshot.error}'); 40 | else 41 | return createDetailView(context, snapshot); 42 | } 43 | }, 44 | ), 45 | bottomNavigationBar: BottomNavBar(), 46 | ); 47 | } 48 | } 49 | 50 | class BottomNavBar extends StatelessWidget { 51 | @override 52 | Widget build(BuildContext context) { 53 | return Container( 54 | padding: EdgeInsets.only(left: 20, right: 10), 55 | child: Row( 56 | children: [ 57 | Icon( 58 | Icons.favorite_border, 59 | color: Color(0xFF5e5e5e), 60 | ), 61 | Spacer(), 62 | RaisedButton( 63 | elevation: 0, 64 | shape: new RoundedRectangleBorder( 65 | borderRadius: new BorderRadius.only( 66 | topLeft: Radius.circular(10), 67 | bottomLeft: Radius.circular(10)), 68 | side: BorderSide(color: Color(0xFFfef2f2))), 69 | onPressed: () {}, 70 | color: Color(0xFFfef2f2), 71 | textColor: Colors.white, 72 | child: Container( 73 | padding: EdgeInsets.only(left: 5, right: 5, top: 15, bottom: 15), 74 | child: Text("Add to cart".toUpperCase(), 75 | style: TextStyle( 76 | fontSize: 14, 77 | fontWeight: FontWeight.w400, 78 | color: Color(0xFFff665e))), 79 | ), 80 | ), 81 | RaisedButton( 82 | elevation: 0, 83 | shape: new RoundedRectangleBorder( 84 | borderRadius: new BorderRadius.only( 85 | topRight: Radius.circular(10), 86 | bottomRight: Radius.circular(10)), 87 | side: BorderSide(color: Color(0xFFff665e))), 88 | onPressed: () {}, 89 | color: Color(0xFFff665e), 90 | textColor: Colors.white, 91 | child: Container( 92 | padding: EdgeInsets.only(left: 5, right: 5, top: 15, bottom: 15), 93 | child: Text("available at shops".toUpperCase(), 94 | style: TextStyle( 95 | fontSize: 14, 96 | fontWeight: FontWeight.w400, 97 | color: Color(0xFFFFFFFF))), 98 | ), 99 | ), 100 | ], 101 | ), 102 | ); 103 | } 104 | } 105 | 106 | Widget createDetailView(BuildContext context, AsyncSnapshot snapshot) { 107 | ProductDetails values = snapshot.data; 108 | return DetailScreen( 109 | productDetails: values, 110 | ); 111 | } 112 | 113 | class DetailScreen extends StatefulWidget { 114 | ProductDetails productDetails; 115 | 116 | DetailScreen({Key key, this.productDetails}) : super(key: key); 117 | 118 | @override 119 | _DetailScreenState createState() => _DetailScreenState(); 120 | } 121 | 122 | class _DetailScreenState extends State { 123 | @override 124 | Widget build(BuildContext context) { 125 | return SingleChildScrollView( 126 | child: Column( 127 | children: [ 128 | /*Image.network( 129 | widget.productDetails.data.productVariants[0].productImages[0]),*/ 130 | Image.network( widget.productDetails.data.productVariants[0].productImages[0],fit: BoxFit.fill, 131 | loadingBuilder:(BuildContext context, Widget child,ImageChunkEvent loadingProgress) { 132 | if (loadingProgress == null) return child; 133 | return Center( 134 | child: CircularProgressIndicator( 135 | value: loadingProgress.expectedTotalBytes != null ? 136 | loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes 137 | : null, 138 | ), 139 | ); 140 | }, 141 | ), 142 | SizedBox( 143 | height: 10, 144 | ), 145 | Container( 146 | padding: EdgeInsets.only(left: 15, right: 15, top: 20, bottom: 20), 147 | color: Color(0xFFFFFFFF), 148 | child: Row( 149 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 150 | children: [ 151 | Text("SKU".toUpperCase(), 152 | style: TextStyle( 153 | fontSize: 16, 154 | fontWeight: FontWeight.w700, 155 | color: Color(0xFF565656))), 156 | Text(widget.productDetails.data.productVariants[0].sku, 157 | style: TextStyle( 158 | fontSize: 16, 159 | fontWeight: FontWeight.w700, 160 | color: Color(0xFFfd0100))), 161 | Icon( 162 | Icons.arrow_forward_ios, 163 | color: Color(0xFF999999), 164 | ) 165 | ], 166 | ), 167 | ), 168 | SizedBox( 169 | height: 10, 170 | ), 171 | Container( 172 | padding: EdgeInsets.only(left: 15, right: 15, top: 20, bottom: 20), 173 | color: Color(0xFFFFFFFF), 174 | child: Row( 175 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 176 | children: [ 177 | Text("Price".toUpperCase(), 178 | style: TextStyle( 179 | fontSize: 16, 180 | fontWeight: FontWeight.w700, 181 | color: Color(0xFF565656))), 182 | Text( 183 | "৳ ${(widget.productDetails.data.productVariants[0].maxPrice != null) ? widget.productDetails.data.productVariants[0].maxPrice : "Unavailable"}" 184 | .toUpperCase(), 185 | style: TextStyle( 186 | color: (widget.productDetails.data.productVariants[0] 187 | .maxPrice != 188 | null) 189 | ? Color(0xFFf67426) 190 | : Color(0xFF0dc2cd), 191 | fontFamily: 'Roboto-Light.ttf', 192 | fontSize: 20, 193 | fontWeight: FontWeight.w500)), 194 | ], 195 | ), 196 | ), 197 | SizedBox( 198 | height: 10, 199 | ), 200 | Container( 201 | alignment: Alignment.topLeft, 202 | width: double.infinity, 203 | padding: EdgeInsets.only(left: 15, right: 15, top: 20, bottom: 20), 204 | color: Color(0xFFFFFFFF), 205 | child: Column( 206 | crossAxisAlignment: CrossAxisAlignment.start, 207 | children: [ 208 | Text("Description", 209 | textAlign: TextAlign.left, 210 | style: TextStyle( 211 | fontSize: 16, 212 | fontWeight: FontWeight.w700, 213 | color: Color(0xFF565656))), 214 | SizedBox( 215 | height: 15, 216 | ), 217 | Text( 218 | "${widget.productDetails.data.productVariants[0].productDescription}", 219 | textAlign: TextAlign.justify, 220 | style: TextStyle( 221 | fontSize: 16, 222 | fontWeight: FontWeight.w400, 223 | color: Color(0xFF4c4c4c))), 224 | ], 225 | ), 226 | ), 227 | SizedBox( 228 | height: 10, 229 | ), 230 | Container( 231 | alignment: Alignment.topLeft, 232 | width: double.infinity, 233 | padding: EdgeInsets.only(left: 15, right: 15, top: 20, bottom: 20), 234 | color: Color(0xFFFFFFFF), 235 | child: Column( 236 | crossAxisAlignment: CrossAxisAlignment.start, 237 | children: [ 238 | Text("Specification", 239 | textAlign: TextAlign.left, 240 | style: TextStyle( 241 | fontSize: 16, 242 | fontWeight: FontWeight.w700, 243 | color: Color(0xFF565656))), 244 | SizedBox( 245 | height: 15, 246 | ), 247 | Column( 248 | children: generateProductSpecification(context), 249 | ) 250 | ], 251 | ), 252 | ) 253 | ], 254 | ), 255 | ); 256 | } 257 | 258 | List generateProductSpecification(BuildContext context) { 259 | List list = []; 260 | int count = 0; 261 | widget.productDetails.data.productSpecifications.forEach((specification) { 262 | Widget element = Container( 263 | height: 30, 264 | child: Row( 265 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 266 | children: [ 267 | Text(specification.specificationName, 268 | textAlign: TextAlign.left, 269 | style: TextStyle( 270 | fontSize: 14, 271 | fontWeight: FontWeight.w400, 272 | color: Color(0xFF444444))), 273 | Text(specification.specificationValue, 274 | textAlign: TextAlign.left, 275 | style: TextStyle( 276 | fontSize: 14, 277 | fontWeight: FontWeight.w400, 278 | color: Color(0xFF212121))), 279 | ], 280 | ), 281 | ); 282 | list.add(element); 283 | count++; 284 | }); 285 | return list; 286 | } 287 | } 288 | 289 | Future getDetailData(String slug) async { 290 | Response response; 291 | response = await get(Urls.ROOT_URL + slug); 292 | int statusCode = response.statusCode; 293 | final body = json.decode(response.body); 294 | if (statusCode == 200) { 295 | productDetails = ProductDetails.fromJson(body); 296 | return productDetails; 297 | } else { 298 | return productDetails = ProductDetails(); 299 | } 300 | } 301 | -------------------------------------------------------------------------------- /lib/screens/ProductsScreen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_ecommerce_app/common_widget/AppBarWidget.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/CircularProgress.dart'; 6 | import 'package:flutter_ecommerce_app/common_widget/GridTilesCategory.dart'; 7 | import 'package:flutter_ecommerce_app/common_widget/GridTilesProducts.dart'; 8 | import 'package:flutter_ecommerce_app/models/ProductsModel.dart'; 9 | import 'package:flutter_ecommerce_app/utils/Urls.dart'; 10 | import 'package:http/http.dart'; 11 | 12 | class ProductsScreen extends StatefulWidget { 13 | String name; 14 | String slug; 15 | 16 | ProductsScreen({Key key, @required this.name, @required this.slug}) 17 | : super(key: key); 18 | 19 | @override 20 | _ProductsScreenState createState() => _ProductsScreenState(); 21 | } 22 | 23 | class _ProductsScreenState extends State { 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | appBar: appBarWidget(context), 28 | body: Container( 29 | alignment: Alignment.topLeft, 30 | padding: EdgeInsets.only(left: 10, right: 10), 31 | child: ProductListWidget( 32 | slug: widget.slug, 33 | )), 34 | ); 35 | } 36 | } 37 | 38 | class ProductListWidget extends StatelessWidget { 39 | String slug; 40 | 41 | ProductListWidget({Key key, this.slug}) : super(key: key); 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | return FutureBuilder( 46 | future: getProductList(slug, false), 47 | builder: (context, AsyncSnapshot snapshot) { 48 | switch (snapshot.connectionState) { 49 | case ConnectionState.none: 50 | case ConnectionState.waiting: 51 | return CircularProgress(); 52 | default: 53 | if (snapshot.hasError) 54 | return Text('Error: ${snapshot.error}'); 55 | else 56 | return createListView(context, snapshot); 57 | } 58 | }, 59 | ); 60 | } 61 | } 62 | 63 | ProductsModels products; 64 | 65 | Future getProductList(String slug, bool isSubList) async { 66 | if (isSubList) { 67 | products = null; 68 | } 69 | if (products == null) { 70 | Response response; 71 | response = await get(Urls.ROOT_URL + slug); 72 | int statusCode = response.statusCode; 73 | final body = json.decode(response.body); 74 | if (statusCode == 200) { 75 | products = ProductsModels.fromJson(body); 76 | return products; 77 | } else { 78 | return products = ProductsModels(); 79 | } 80 | } else { 81 | return products; 82 | } 83 | } 84 | 85 | Widget createListView(BuildContext context, AsyncSnapshot snapshot) { 86 | ProductsModels values = snapshot.data; 87 | List results = values.results; 88 | return GridView.count( 89 | crossAxisCount: 2, 90 | // physics: NeverScrollableScrollPhysics(), 91 | padding: EdgeInsets.all(1.0), 92 | childAspectRatio: 8.0 / 12.0, 93 | children: List.generate(results.length, (index) { 94 | return GridTile( 95 | child: GridTilesProducts( 96 | name: results[index].name, 97 | imageUrl: results[index].imageUrls[0], 98 | slug: results[index].slug, 99 | price: results[index].maxPrice, 100 | )); 101 | }), 102 | ); 103 | } 104 | -------------------------------------------------------------------------------- /lib/screens/ShoppingCartScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class ShoppingCartScreen extends StatefulWidget { 5 | @override 6 | _ShoppingCartScreenState createState() => _ShoppingCartScreenState(); 7 | } 8 | 9 | class _ShoppingCartScreenState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return EmptyShoppingCartScreen(); 13 | } 14 | } 15 | 16 | class EmptyShoppingCartScreen extends StatefulWidget { 17 | @override 18 | _EmptyShoppingCartScreenState createState() => 19 | _EmptyShoppingCartScreenState(); 20 | } 21 | 22 | class _EmptyShoppingCartScreenState extends State { 23 | @override 24 | Widget build(BuildContext context) { 25 | return SafeArea( 26 | child: Container( 27 | decoration: BoxDecoration(color: Colors.white), 28 | child: Column( 29 | children: [ 30 | SizedBox( 31 | height: 70, 32 | child: Container( 33 | color: Color(0xFFFFFFFF), 34 | ), 35 | ), 36 | Container( 37 | width: double.infinity, 38 | height: 250, 39 | child: Image.asset( 40 | "assets/images/empty_shopping_cart.png", 41 | height: 250, 42 | width: double.infinity, 43 | ), 44 | ), 45 | SizedBox( 46 | height: 40, 47 | child: Container( 48 | color: Color(0xFFFFFFFF), 49 | ), 50 | ), 51 | Container( 52 | width: double.infinity, 53 | child: Text( 54 | "You haven't anything to cart", 55 | style: TextStyle( 56 | color: Color(0xFF67778E), 57 | fontFamily: 'Roboto-Light.ttf', 58 | fontSize: 20, 59 | fontStyle: FontStyle.normal, 60 | ), 61 | textAlign: TextAlign.center, 62 | ), 63 | ) 64 | ], 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/screens/SubCategoryScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ecommerce_app/common_widget/AppBarWidget.dart'; 3 | import 'package:flutter_ecommerce_app/components/BrandHomePage.dart'; 4 | import 'package:flutter_ecommerce_app/components/CategorySlider.dart'; 5 | import 'package:flutter_ecommerce_app/common_widget/BottomNavBarWidget.dart'; 6 | import 'package:flutter_ecommerce_app/common_widget/SearchWidget.dart'; 7 | import 'package:flutter_ecommerce_app/components/ShopHomePage.dart'; 8 | 9 | class SubCategoryScreen extends StatelessWidget { 10 | String slug; 11 | 12 | SubCategoryScreen({Key key, @required this.slug}) : super(key: key); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return DefaultTabController( 17 | length: 3, 18 | child: Scaffold( 19 | appBar: appBarWidget(context), 20 | body: SafeArea( 21 | child: Column( 22 | children: [ 23 | SearchWidget(), 24 | SizedBox( 25 | height: 10, 26 | child: Container( 27 | color: Color(0xFFf5f6f7), 28 | ), 29 | ), 30 | PreferredSize( 31 | preferredSize: Size.fromHeight(50.0), 32 | child: TabBar( 33 | labelColor: Colors.black, 34 | tabs: [ 35 | Tab( 36 | text: 'Sub Categories', 37 | ), 38 | Tab( 39 | text: 'Brands', 40 | ), 41 | Tab( 42 | text: 'Shops', 43 | ) 44 | ], // list of tabs 45 | ), 46 | ), 47 | SizedBox( 48 | height: 10, 49 | child: Container( 50 | color: Color(0xFFf5f6f7), 51 | ), 52 | ), 53 | Expanded( 54 | child: TabBarView( 55 | children: [ 56 | Container( 57 | color: Colors.white24, 58 | child: CategoryPage( 59 | slug: 'categories/?parent=' + slug, isSubList: true), 60 | ), 61 | Container( 62 | color: Colors.white24, 63 | child: BrandHomePage( 64 | slug: 'brands/?limit=20&page=1&category=' + slug, 65 | isSubList: true, 66 | ), 67 | ), 68 | Container( 69 | color: Colors.white24, 70 | child: ShopHomePage( 71 | slug: 'category/shops/' + slug + '/?page=1&limit=15', 72 | isSubList: true, 73 | ), 74 | ) // class name 75 | ], 76 | ), 77 | ), 78 | ], 79 | ), 80 | ), 81 | bottomNavigationBar: BottomNavBarWidget(), 82 | ), 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/screens/WishListScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class WishListScreen extends StatefulWidget { 5 | @override 6 | _WishListScreenState createState() => _WishListScreenState(); 7 | } 8 | 9 | class _WishListScreenState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return EmptyWishListScreen(); 13 | } 14 | } 15 | 16 | class EmptyWishListScreen extends StatefulWidget { 17 | @override 18 | _EmptyWishListScreenState createState() => 19 | _EmptyWishListScreenState(); 20 | } 21 | 22 | class _EmptyWishListScreenState extends State { 23 | @override 24 | Widget build(BuildContext context) { 25 | return SafeArea( 26 | child: Container( 27 | decoration: BoxDecoration(color: Colors.white), 28 | child: Column( 29 | children: [ 30 | SizedBox( 31 | height: 70, 32 | child: Container( 33 | color: Color(0xFFFFFFFF), 34 | ), 35 | ), 36 | Container( 37 | width: double.infinity, 38 | height: 250, 39 | child: Image.asset( 40 | "assets/images/empty_wish_list.png", 41 | height: 250, 42 | width: double.infinity, 43 | ), 44 | ), 45 | SizedBox( 46 | height: 40, 47 | child: Container( 48 | color: Color(0xFFFFFFFF), 49 | ), 50 | ), 51 | Container( 52 | width: double.infinity, 53 | child: Text( 54 | "You haven't anything to wish List", 55 | style: TextStyle( 56 | color: Color(0xFF67778E), 57 | fontFamily: 'Roboto-Light.ttf', 58 | fontSize: 20, 59 | fontStyle: FontStyle.normal, 60 | ), 61 | textAlign: TextAlign.center, 62 | ), 63 | ) 64 | ], 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/utils/Constants.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/lib/utils/Constants.dart -------------------------------------------------------------------------------- /lib/utils/Urls.dart: -------------------------------------------------------------------------------- 1 | class Urls { 2 | 3 | static const ROOT_URL="https://api.evaly.com.bd/core/public/"; 4 | } 5 | -------------------------------------------------------------------------------- /locale/i18n_en.json: -------------------------------------------------------------------------------- 1 | { 2 | "label_pull_to_load_more": "Pull up to load more", 3 | "label_no_more_item":"No more item", 4 | "label_loading":"Loading...", 5 | "bottom_bar_label_home": "Home", 6 | "bottom_bar_label_notice": "Message", 7 | "bottom_bar_label_mine": "Mine" 8 | } -------------------------------------------------------------------------------- /locale/i18n_zh.json: -------------------------------------------------------------------------------- 1 | { 2 | "label_pull_to_load_more": "下拉加载更多", 3 | "label_no_more_item":"没有更多项了", 4 | "label_loading":"加载中...", 5 | "bottom_bar_label_home": "主页", 6 | "bottom_bar_label_notice": "消息", 7 | "bottom_bar_label_mine": "我" 8 | } -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | bloc: 26 | dependency: transitive 27 | description: 28 | name: bloc 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "3.0.0" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.0.5" 39 | carousel_pro: 40 | dependency: "direct main" 41 | description: 42 | name: carousel_pro 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.0.0" 46 | charcode: 47 | dependency: transitive 48 | description: 49 | name: charcode 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.2" 53 | collection: 54 | dependency: transitive 55 | description: 56 | name: collection 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.14.11" 60 | convert: 61 | dependency: transitive 62 | description: 63 | name: convert 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.1" 67 | crypto: 68 | dependency: transitive 69 | description: 70 | name: crypto 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.3" 74 | cupertino_icons: 75 | dependency: "direct main" 76 | description: 77 | name: cupertino_icons 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.1.3" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_bloc: 87 | dependency: "direct main" 88 | description: 89 | name: flutter_bloc 90 | url: "https://pub.dartlang.org" 91 | source: hosted 92 | version: "3.2.0" 93 | flutter_test: 94 | dependency: "direct dev" 95 | description: flutter 96 | source: sdk 97 | version: "0.0.0" 98 | font_awesome_flutter: 99 | dependency: "direct main" 100 | description: 101 | name: font_awesome_flutter 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "8.8.1" 105 | http: 106 | dependency: "direct main" 107 | description: 108 | name: http 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "0.12.0+4" 112 | http_parser: 113 | dependency: transitive 114 | description: 115 | name: http_parser 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "3.1.3" 119 | image: 120 | dependency: transitive 121 | description: 122 | name: image 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.1.4" 126 | matcher: 127 | dependency: transitive 128 | description: 129 | name: matcher 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.12.6" 133 | meta: 134 | dependency: transitive 135 | description: 136 | name: meta 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "1.1.8" 140 | nested: 141 | dependency: transitive 142 | description: 143 | name: nested 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.0.4" 147 | path: 148 | dependency: transitive 149 | description: 150 | name: path 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.6.4" 154 | pedantic: 155 | dependency: transitive 156 | description: 157 | name: pedantic 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "1.8.0+1" 161 | petitparser: 162 | dependency: transitive 163 | description: 164 | name: petitparser 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "2.4.0" 168 | provider: 169 | dependency: transitive 170 | description: 171 | name: provider 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "4.0.4" 175 | quiver: 176 | dependency: transitive 177 | description: 178 | name: quiver 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "2.0.5" 182 | rxdart: 183 | dependency: transitive 184 | description: 185 | name: rxdart 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "0.23.1" 189 | sky_engine: 190 | dependency: transitive 191 | description: flutter 192 | source: sdk 193 | version: "0.0.99" 194 | source_span: 195 | dependency: transitive 196 | description: 197 | name: source_span 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.5.5" 201 | stack_trace: 202 | dependency: transitive 203 | description: 204 | name: stack_trace 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.9.3" 208 | stream_channel: 209 | dependency: transitive 210 | description: 211 | name: stream_channel 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "2.0.0" 215 | string_scanner: 216 | dependency: transitive 217 | description: 218 | name: string_scanner 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.0.5" 222 | term_glyph: 223 | dependency: transitive 224 | description: 225 | name: term_glyph 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.1.0" 229 | test_api: 230 | dependency: transitive 231 | description: 232 | name: test_api 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "0.2.11" 236 | typed_data: 237 | dependency: transitive 238 | description: 239 | name: typed_data 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.1.6" 243 | vector_math: 244 | dependency: transitive 245 | description: 246 | name: vector_math 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.0.8" 250 | xml: 251 | dependency: transitive 252 | description: 253 | name: xml 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "3.5.0" 257 | sdks: 258 | dart: ">=2.6.0 <3.0.0" 259 | flutter: ">=1.12.1 <2.0.0" 260 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_ecommerce_app 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+2 15 | 16 | environment: 17 | sdk: ">=2.2.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | carousel_pro: ^1.0.0 27 | flutter_bloc: ^3.1.0 28 | http: ^0.12.0+4 29 | font_awesome_flutter: 8.8.1 30 | dev_dependencies: 31 | flutter_test: 32 | sdk: flutter 33 | 34 | 35 | # For information on the generic Dart part of this file, see the 36 | # following page: https://dart.dev/tools/pub/pubspec 37 | 38 | # The following section is specific to Flutter. 39 | flutter: 40 | 41 | # The following line ensures that the Material Icons font is 42 | # included with your application, so that you can use the icons in 43 | # the material Icons class. 44 | uses-material-design: true 45 | 46 | # To add assets to your application, add an assets section, like this: 47 | # assets: 48 | # - images/a_dot_burr.jpeg 49 | # - images/a_dot_ham.jpeg 50 | assets: 51 | - assets/images/ic_add_cart.png 52 | - assets/images/ic_discount.png 53 | - assets/images/promotion_one.png 54 | - assets/images/promotion_two.png 55 | - assets/images/promotion__one.png 56 | - assets/images/promotion_three.png 57 | - assets/images/ic_app_icon.png 58 | - assets/images/ic_category_image.png 59 | - assets/images/empty_shopping_cart_image.png 60 | - assets/images/empty_shopping_cart.png 61 | - assets/images/empty_wish_list.png 62 | # An image asset can refer to one or more resolution-specific "variants", see 63 | # https://flutter.dev/assets-and-images/#resolution-aware. 64 | 65 | # For details regarding adding assets from package dependencies, see 66 | # https://flutter.dev/assets-and-images/#from-packages 67 | 68 | # To add custom fonts to your application, add a fonts section here, 69 | # in this "flutter" section. Each entry in this list should have a 70 | # "family" key with the font family name, and a "fonts" key with a 71 | # list giving the asset and other descriptors for the font. For 72 | # example: 73 | fonts: 74 | - family: CustomIcons 75 | fonts: 76 | - asset: assets/CustomIcons.ttf 77 | 78 | - family: Poppins-Bold 79 | fonts: 80 | - asset: assets/Poppins-Bold.ttf 81 | 82 | - family: Poppins-Medium 83 | fonts: 84 | - asset: assets/Poppins-Medium.ttf 85 | - family: Roboto-Light 86 | fonts: 87 | - asset: assets/Roboto-Light.ttf 88 | - family: Roboto 89 | fonts: 90 | - asset: assets/fonts/Roboto-Regular.ttf 91 | - asset: assets/fonts/Roboto-Bold.ttf 92 | - asset: assets/fonts/Roboto-Light.ttf 93 | # - family: Schyler 94 | # fonts: 95 | # - asset: fonts/Schyler-Regular.ttf 96 | # - asset: fonts/Schyler-Italic.ttf 97 | # style: italic 98 | # - family: Trajan Pro 99 | # fonts: 100 | # - asset: fonts/TrajanPro.ttf 101 | # - asset: fonts/TrajanPro_Bold.ttf 102 | # weight: 700 103 | # 104 | # For details regarding fonts from package dependencies, 105 | # see https://flutter.dev/custom-fonts/#from-packages 106 | -------------------------------------------------------------------------------- /screens/app_screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/app_screenshot.png -------------------------------------------------------------------------------- /screens/detail_page_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/detail_page_screen.jpg -------------------------------------------------------------------------------- /screens/empty_cart_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/empty_cart_screen.jpg -------------------------------------------------------------------------------- /screens/login_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/login_screen.jpg -------------------------------------------------------------------------------- /screens/main_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/main_screen.jpg -------------------------------------------------------------------------------- /screens/product_detail_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/product_detail_screen.png -------------------------------------------------------------------------------- /screens/product_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/product_screen.png -------------------------------------------------------------------------------- /screens/signin_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/signin_screen.jpg -------------------------------------------------------------------------------- /screens/wishlist_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter-ecommerce/99088b3fcc0c658104cd1e6270a34de70674fd29/screens/wishlist_screen.jpg -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_ecommerce_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------