├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── delivery_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
├── fonts
│ ├── Poppins-Regular.ttf
│ └── Poppins-SemiBold.ttf
├── icons
│ ├── Burger.svg
│ ├── Burritos.svg
│ ├── Fries.svg
│ ├── Path 181.svg
│ ├── Tacos.svg
│ ├── fav.svg
│ ├── heart.svg
│ ├── heart2.svg
│ ├── home.svg
│ ├── juice1.svg
│ ├── juice2.svg
│ ├── notif.svg
│ ├── pizza.svg
│ ├── pngocean.com (15).svg
│ ├── pngocean.com (16).svg
│ ├── sale.svg
│ ├── search.svg
│ ├── shop.svg
│ └── trash.svg
└── images
│ ├── Lettuce.jpg
│ ├── background.png
│ ├── big_burger.jpg
│ ├── bread.jpg
│ ├── fahd.jpg
│ ├── grilled.jpg
│ └── onion.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-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
├── constants.dart
├── helper
│ ├── categories_data.dart
│ ├── ingredients_data.dart
│ └── popular_product_data.dart
├── main.dart
├── model
│ ├── categories_model.dart
│ ├── ingredients_model.dart
│ └── popular_products_model.dart
├── screens
│ ├── cart_screen.dart
│ ├── details_screen.dart
│ └── home_screen.dart
├── size_config.dart
└── widgets
│ ├── categories_card.dart
│ ├── custom_prefix_icon.dart
│ ├── popular_product_card.dart
│ ├── recommended_card.dart
│ └── title_widget.dart
├── pubspec.lock
├── pubspec.yaml
└── 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 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
--------------------------------------------------------------------------------
/.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: 8874f21e79d7ec66d0457c7ab338348e31b17f1d
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # delivery_app
2 |
3 | A new Flutter application.
4 |
5 | # First Screen
6 | 
7 |
8 | # Second Screen
9 | 
10 |
11 |
12 | # Third Screen
13 | 
14 |
15 |
16 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 29
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.example.delivery_app"
42 | minSdkVersion 16
43 | targetSdkVersion 29
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/delivery_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.delivery_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.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.useAndroidX=true
3 | android.enableJetifier=true
4 | android.enableR8=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 localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/fonts/Poppins-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/fonts/Poppins-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/icons/Burger.svg:
--------------------------------------------------------------------------------
1 |
118 |
--------------------------------------------------------------------------------
/assets/icons/Burritos.svg:
--------------------------------------------------------------------------------
1 |
177 |
--------------------------------------------------------------------------------
/assets/icons/Fries.svg:
--------------------------------------------------------------------------------
1 |
131 |
--------------------------------------------------------------------------------
/assets/icons/Path 181.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/icons/fav.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/assets/icons/heart.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/assets/icons/heart2.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/icons/home.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/assets/icons/notif.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/assets/icons/sale.svg:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/assets/icons/search.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/icons/shop.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/assets/icons/trash.svg:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/assets/images/Lettuce.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/Lettuce.jpg
--------------------------------------------------------------------------------
/assets/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/background.png
--------------------------------------------------------------------------------
/assets/images/big_burger.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/big_burger.jpg
--------------------------------------------------------------------------------
/assets/images/bread.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/bread.jpg
--------------------------------------------------------------------------------
/assets/images/fahd.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/fahd.jpg
--------------------------------------------------------------------------------
/assets/images/grilled.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/grilled.jpg
--------------------------------------------------------------------------------
/assets/images/onion.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/assets/images/onion.jpg
--------------------------------------------------------------------------------
/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 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | FRAMEWORK_SEARCH_PATHS = (
293 | "$(inherited)",
294 | "$(PROJECT_DIR)/Flutter",
295 | );
296 | INFOPLIST_FILE = Runner/Info.plist;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | LIBRARY_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "$(PROJECT_DIR)/Flutter",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.deliveryApp;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
411 | TARGETED_DEVICE_FAMILY = "1,2";
412 | VALIDATE_PRODUCT = YES;
413 | };
414 | name = Release;
415 | };
416 | 97C147061CF9000F007C117D /* Debug */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423 | ENABLE_BITCODE = NO;
424 | FRAMEWORK_SEARCH_PATHS = (
425 | "$(inherited)",
426 | "$(PROJECT_DIR)/Flutter",
427 | );
428 | INFOPLIST_FILE = Runner/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | LIBRARY_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "$(PROJECT_DIR)/Flutter",
433 | );
434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.deliveryApp;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
438 | SWIFT_VERSION = 5.0;
439 | VERSIONING_SYSTEM = "apple-generic";
440 | };
441 | name = Debug;
442 | };
443 | 97C147071CF9000F007C117D /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | CLANG_ENABLE_MODULES = YES;
449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
450 | ENABLE_BITCODE = NO;
451 | FRAMEWORK_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | INFOPLIST_FILE = Runner/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
457 | LIBRARY_SEARCH_PATHS = (
458 | "$(inherited)",
459 | "$(PROJECT_DIR)/Flutter",
460 | );
461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.deliveryApp;
462 | PRODUCT_NAME = "$(TARGET_NAME)";
463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
464 | SWIFT_VERSION = 5.0;
465 | VERSIONING_SYSTEM = "apple-generic";
466 | };
467 | name = Release;
468 | };
469 | /* End XCBuildConfiguration section */
470 |
471 | /* Begin XCConfigurationList section */
472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
473 | isa = XCConfigurationList;
474 | buildConfigurations = (
475 | 97C147031CF9000F007C117D /* Debug */,
476 | 97C147041CF9000F007C117D /* Release */,
477 | 249021D3217E4FDB00AE95B9 /* Profile */,
478 | );
479 | defaultConfigurationIsVisible = 0;
480 | defaultConfigurationName = Release;
481 | };
482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
483 | isa = XCConfigurationList;
484 | buildConfigurations = (
485 | 97C147061CF9000F007C117D /* Debug */,
486 | 97C147071CF9000F007C117D /* Release */,
487 | 249021D4217E4FDB00AE95B9 /* Profile */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdmekawy/DeliveryApp-Flutter-UI/d26c4a761dbedc3d46c2b7ede0c8bc798d0347ab/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 | delivery_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"
2 |
--------------------------------------------------------------------------------
/lib/constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const kTextColor = Color(0xFF153E73);
4 | const kSecondryColor = Color(0xFF5117AC);
5 | const kgreyColor = Color(0xFFCFCFCF);
6 |
--------------------------------------------------------------------------------
/lib/helper/categories_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/model/categories_model.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | List getCategories() {
5 | List myCategories = List();
6 | CategoryModel categoryModel;
7 |
8 | //1
9 | categoryModel = new CategoryModel();
10 | categoryModel.categoryName = "Tacos";
11 | categoryModel.imageUrl = "assets/icons/Tacos.svg";
12 | categoryModel.color = Color(0xFFD0E6A5);
13 | myCategories.add(categoryModel);
14 |
15 | //2
16 | categoryModel = new CategoryModel();
17 | categoryModel.categoryName = "Fries";
18 | categoryModel.imageUrl = "assets/icons/Fries.svg";
19 | categoryModel.color = Color(0xFF86E3CE);
20 | myCategories.add(categoryModel);
21 |
22 | //3
23 | categoryModel = new CategoryModel();
24 | categoryModel.categoryName = "Burger";
25 | categoryModel.imageUrl = "assets/icons/Burger.svg";
26 | categoryModel.color = Color(0xFFFFDD95);
27 | myCategories.add(categoryModel);
28 |
29 | //4
30 | categoryModel = new CategoryModel();
31 | categoryModel.categoryName = "Pizza";
32 | categoryModel.imageUrl = "assets/icons/pizza.svg";
33 | categoryModel.color = Color(0xFFFFACAC);
34 | myCategories.add(categoryModel);
35 |
36 | //5
37 | categoryModel = new CategoryModel();
38 | categoryModel.categoryName = "Burritos";
39 | categoryModel.imageUrl = "assets/icons/Burritos.svg";
40 | categoryModel.color = Color(0xFFCCAAD9);
41 | myCategories.add(categoryModel);
42 |
43 | return myCategories;
44 | }
45 |
--------------------------------------------------------------------------------
/lib/helper/ingredients_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/model/ingredients_model.dart';
2 |
3 | List getIngredients() {
4 | List myIngredients = List();
5 | IngredientsModel ingredientsModel;
6 |
7 | //1
8 | ingredientsModel = new IngredientsModel();
9 | ingredientsModel.image = "assets/images/grilled.jpg";
10 | ingredientsModel.title = "Skirt steak";
11 | myIngredients.add(ingredientsModel);
12 |
13 | //2
14 | ingredientsModel = new IngredientsModel();
15 | ingredientsModel.image = "assets/images/bread.jpg";
16 | ingredientsModel.title = "Sesame bread";
17 | myIngredients.add(ingredientsModel);
18 |
19 | //3
20 | ingredientsModel = new IngredientsModel();
21 | ingredientsModel.image = "assets/images/Lettuce.jpg";
22 | ingredientsModel.title = "Lettuce";
23 | myIngredients.add(ingredientsModel);
24 |
25 | //4
26 | ingredientsModel = new IngredientsModel();
27 | ingredientsModel.image = "assets/images/onion.jpg";
28 | ingredientsModel.title = "Onion";
29 | myIngredients.add(ingredientsModel);
30 |
31 | return myIngredients;
32 | }
33 |
--------------------------------------------------------------------------------
/lib/helper/popular_product_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/model/categories_model.dart';
2 | import 'package:delivery_app/model/popular_products_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | List getProducts() {
6 | List myProducts = List();
7 | PopularProductModel productModel;
8 |
9 | //1
10 | productModel = new PopularProductModel();
11 | productModel.title = "Classic Pizza";
12 | productModel.description = "Classic house sauce";
13 | productModel.fav = "assets/icons/heart.svg";
14 | productModel.img = "assets/icons/pizza.svg";
15 | myProducts.add(productModel);
16 |
17 | //2
18 | productModel = new PopularProductModel();
19 | productModel.title = "Burger mix";
20 | productModel.description = "Double meat with cheese";
21 | productModel.fav = "assets/icons/heart2.svg";
22 | productModel.img = "assets/icons/Burger.svg";
23 | myProducts.add(productModel);
24 |
25 | //3
26 | productModel = new PopularProductModel();
27 | productModel.title = "Classic Pizza";
28 | productModel.description = "Classic house sauce";
29 | productModel.fav = "assets/icons/heart.svg";
30 | productModel.img = "assets/icons/pizza.svg";
31 | myProducts.add(productModel);
32 | return myProducts;
33 | }
34 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/screens/details_screen.dart';
2 | import 'package:delivery_app/screens/home_screen.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | void main() {
6 | runApp(MyApp());
7 | }
8 |
9 | class MyApp extends StatelessWidget {
10 | @override
11 | Widget build(BuildContext context) {
12 | return MaterialApp(
13 | debugShowCheckedModeBanner: false,
14 | theme: ThemeData(
15 | fontFamily: "Poppins",
16 | ),
17 | home: Home(),
18 | );
19 | // home: Category());
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/model/categories_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CategoryModel {
4 | String imageUrl, categoryName;
5 | Color color;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/model/ingredients_model.dart:
--------------------------------------------------------------------------------
1 | class IngredientsModel {
2 | String image, title;
3 | }
4 |
--------------------------------------------------------------------------------
/lib/model/popular_products_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class PopularProductModel {
4 | String title, description, fav, img;
5 | }
6 |
--------------------------------------------------------------------------------
/lib/screens/cart_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_svg/svg.dart';
4 | import '../constants.dart';
5 | import 'home_screen.dart';
6 |
7 | class CartScreen extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return SafeArea(
11 | child: Scaffold(
12 | backgroundColor: Colors.white,
13 | appBar: AppbarBuilder(context),
14 | body: Stack(
15 | children: [
16 | Padding(
17 | padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 20),
18 | child: SingleChildScrollView(
19 | child: Column(
20 | children: [
21 | SizedBox(
22 | height: 70,
23 | child: ListView(
24 | scrollDirection: Axis.horizontal,
25 | children: [
26 | HomeCard(
27 | title: "My Home",
28 | example: "Example address",
29 | card_color: Color(0xFF5117AC),
30 | icon_color: Colors.white,
31 | example_color: Colors.white,
32 | title_color: Colors.white,
33 | ),
34 | SizedBox(
35 | width: 10,
36 | ),
37 | HomeCard(
38 | title: "My job",
39 | example: "Example address",
40 | card_color: Colors.white,
41 | icon_color: Color(0xFF5117AC),
42 | example_color: Colors.grey,
43 | title_color: Colors.black,
44 | ),
45 | Spacer(),
46 | Container(
47 | height: 70,
48 | width: 70,
49 | decoration: BoxDecoration(
50 | shape: BoxShape.circle,
51 | color: Color(0xFF5117AC),
52 | ),
53 | child: Icon(
54 | Icons.add,
55 | color: Colors.white,
56 | size: 40,
57 | ),
58 | )
59 | ],
60 | ),
61 | ),
62 | SizedBox(
63 | height: 50,
64 | ),
65 | SizedBox(
66 | height: 350,
67 | child: ListView.builder(
68 | itemCount: 2,
69 | scrollDirection: Axis.horizontal,
70 | itemBuilder: (context, index) => Padding(
71 | padding: const EdgeInsets.all(10.0),
72 | child: Stack(
73 | overflow: Overflow.visible,
74 | children: [
75 | Container(
76 | height: 350,
77 | width: 290,
78 | decoration: BoxDecoration(
79 | color: Colors.white,
80 | borderRadius: BorderRadius.circular(20),
81 | boxShadow: [
82 | BoxShadow(
83 | offset: Offset(0, 0),
84 | blurRadius: 20,
85 | spreadRadius: -8,
86 | color: Colors.grey.withOpacity(0.2))
87 | ],
88 | ),
89 | child: Padding(
90 | padding: const EdgeInsets.symmetric(
91 | vertical: 20, horizontal: 15),
92 | child: Column(
93 | children: [
94 | CircleAvatar(
95 | radius: 60,
96 | backgroundImage: AssetImage(
97 | "assets/images/big_burger.jpg"),
98 | ),
99 | SizedBox(
100 | height: 10,
101 | ),
102 | Text(
103 | "Big Burger Cheese",
104 | style: TextStyle(
105 | fontSize: 20,
106 | fontWeight: FontWeight.bold,
107 | color: kTextColor,
108 | ),
109 | ),
110 | SizedBox(
111 | height: 5,
112 | ),
113 | Text(
114 | "Charbroiled all-beef patty, melted American cheese,"
115 | " dill pickles, onions, mustard and ketchup on a toasted seeded bun.",
116 | textAlign: TextAlign.center,
117 | style: TextStyle(
118 | fontSize: 10,
119 | color: kTextColor,
120 | ),
121 | ),
122 | SizedBox(
123 | height: 25,
124 | ),
125 | Row(
126 | children: [
127 | Container(
128 | height: 50,
129 | width: 50,
130 | decoration: BoxDecoration(
131 | color: Colors.grey[300],
132 | borderRadius:
133 | BorderRadius.circular(14)),
134 | child: Center(
135 | child: Icon(
136 | Icons.remove,
137 | size: 30,
138 | color: Color(0xFF5117AC),
139 | ),
140 | ),
141 | ),
142 | SizedBox(width: 10),
143 | Text(
144 | "2",
145 | style: TextStyle(
146 | fontSize: 35,
147 | fontWeight: FontWeight.bold,
148 | color: Color(0xFF5117AC),
149 | ),
150 | ),
151 | SizedBox(width: 10),
152 | Container(
153 | height: 50,
154 | width: 50,
155 | decoration: BoxDecoration(
156 | color: Color(0xFF5117AC),
157 | borderRadius:
158 | BorderRadius.circular(14)),
159 | child: Center(
160 | child: Icon(
161 | Icons.add,
162 | size: 30,
163 | color: Colors.grey[300],
164 | ),
165 | ),
166 | ),
167 | Spacer(),
168 | Text(
169 | "\$20",
170 | style: TextStyle(
171 | fontSize: 35,
172 | fontWeight: FontWeight.bold,
173 | color: Color(0xFF20D0C4),
174 | ),
175 | )
176 | ],
177 | )
178 | ],
179 | ),
180 | ),
181 | ),
182 | Positioned(
183 | top: -10,
184 | right: -10,
185 | child: Container(
186 | padding: EdgeInsets.all(15),
187 | child: SvgPicture.asset(
188 | "assets/icons/trash.svg",
189 | color: Colors.white,
190 | ),
191 | width: 60,
192 | height: 60,
193 | decoration: BoxDecoration(
194 | shape: BoxShape.circle,
195 | color: Color(0xFFF1395E),
196 | ),
197 | ),
198 | ),
199 | ],
200 | ),
201 | ),
202 | ),
203 | ),
204 | Stack(
205 | children: [
206 | Container(
207 | height: 250,
208 | width: MediaQuery.of(context).size.width,
209 | decoration: BoxDecoration(
210 | color: Color(0xFFF9F9F9),
211 | borderRadius: BorderRadius.circular(20),
212 | ),
213 | child: Padding(
214 | padding:
215 | EdgeInsets.only(left: 30, right: 30, top: 20),
216 | child: Column(
217 | children: [
218 | Row(
219 | children: [
220 | Text(
221 | "SubTotal",
222 | style: TextStyle(
223 | color: kTextColor,
224 | fontWeight: FontWeight.w600,
225 | ),
226 | ),
227 | Spacer(),
228 | Text(
229 | "\$85.00 usd",
230 | style: TextStyle(
231 | color: kTextColor,
232 | fontWeight: FontWeight.w600,
233 | ),
234 | )
235 | ],
236 | ),
237 | SizedBox(height: 5),
238 | Row(
239 | children: [
240 | Text(
241 | "Shipping",
242 | style: TextStyle(
243 | color: kTextColor,
244 | fontWeight: FontWeight.w600,
245 | ),
246 | ),
247 | Spacer(),
248 | Text(
249 | "Free",
250 | style: TextStyle(
251 | color: kTextColor,
252 | fontWeight: FontWeight.w600,
253 | ),
254 | )
255 | ],
256 | ),
257 | SizedBox(height: 20),
258 | Row(
259 | children: [
260 | Text(
261 | "Total:",
262 | style: TextStyle(
263 | fontSize: 25,
264 | color: Color(0xFF5117AC),
265 | fontWeight: FontWeight.bold,
266 | ),
267 | ),
268 | Spacer(),
269 | Text(
270 | "\$85.00 usd",
271 | style: TextStyle(
272 | fontSize: 22,
273 | color: Color(0xFF5117AC),
274 | fontWeight: FontWeight.bold,
275 | ),
276 | )
277 | ],
278 | ),
279 | ],
280 | ),
281 | ),
282 | ),
283 | Positioned(
284 | bottom: 0,
285 | left: 0,
286 | right: 0,
287 | child: Container(
288 | decoration: BoxDecoration(
289 | borderRadius: BorderRadius.circular(20),
290 | gradient: LinearGradient(
291 | begin: Alignment.centerLeft,
292 | end: Alignment.centerRight,
293 | colors: [
294 | Color(0xFF4A1192),
295 | Color(0xFF2CD5C4),
296 | ],
297 | ),
298 | ),
299 | height: 75,
300 | width: MediaQuery.of(context).size.width,
301 | child: Center(
302 | child: Text(
303 | "Make a purchase",
304 | style: TextStyle(
305 | color: Colors.white,
306 | fontSize: 22,
307 | fontWeight: FontWeight.bold,
308 | ),
309 | ),
310 | ),
311 | ),
312 | ),
313 | ],
314 | ),
315 | SizedBox(
316 | height: 100,
317 | )
318 | ],
319 | ),
320 | ),
321 | ),
322 | Positioned(
323 | bottom: 0,
324 | left: 0,
325 | child: Container(
326 | width: MediaQuery.of(context).size.width,
327 | height: 80,
328 | child: Stack(
329 | children: [
330 | Padding(
331 | padding: const EdgeInsets.only(
332 | bottom: 10, left: 10, right: 10),
333 | child: Stack(
334 | children: [
335 | Row(
336 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
337 | children: [
338 | CustomPaint(
339 | size: Size(
340 | MediaQuery.of(context).size.width * 0.40,
341 | 80),
342 | painter: LeftPartBNBCustomPainter(),
343 | ),
344 | CustomPaint(
345 | size: Size(
346 | MediaQuery.of(context).size.width * 0.40,
347 | 80),
348 | painter: RightPartBNBCustomPainter(),
349 | ),
350 | ],
351 | ),
352 | Positioned(
353 | right: 20,
354 | bottom: 20,
355 | child: Row(
356 | children: [
357 | SvgPicture.asset(
358 | "assets/icons/heart.svg",
359 | width: 30,
360 | height: 30,
361 | ),
362 | SizedBox(
363 | width: 30,
364 | ),
365 | CircleAvatar(
366 | backgroundImage:
367 | AssetImage("assets/images/fahd.jpg"),
368 | )
369 | ],
370 | ),
371 | ),
372 | Positioned(
373 | left: 20,
374 | bottom: 20,
375 | child: Row(
376 | children: [
377 | SvgPicture.asset(
378 | "assets/icons/home.svg",
379 | width: 30,
380 | height: 30,
381 | ),
382 | SizedBox(
383 | width: 30,
384 | ),
385 | SvgPicture.asset(
386 | "assets/icons/shop.svg",
387 | width: 30,
388 | height: 30,
389 | ),
390 | ],
391 | ),
392 | ),
393 | ],
394 | ),
395 | ),
396 | Center(
397 | heightFactor: 1,
398 | child: Container(
399 | width: 65,
400 | height: 65,
401 | child: FloatingActionButton(
402 | onPressed: () {},
403 | backgroundColor: Color(0xFF5117AC),
404 | child: SvgPicture.asset(
405 | "assets/icons/Path 181.svg",
406 | height: 30,
407 | width: 30,
408 | ),
409 | ),
410 | ),
411 | ),
412 | ],
413 | ),
414 | ),
415 | )
416 | ],
417 | ),
418 | ),
419 | );
420 | }
421 |
422 | PreferredSize AppbarBuilder(BuildContext context) {
423 | return PreferredSize(
424 | preferredSize: Size(double.infinity, 80),
425 | child: Container(
426 | decoration: BoxDecoration(color: Colors.white, boxShadow: [
427 | BoxShadow(color: Colors.grey[200], spreadRadius: 1, blurRadius: 15)
428 | ]),
429 | width: MediaQuery.of(context).size.width,
430 | height: 120,
431 | child: Padding(
432 | padding: EdgeInsets.symmetric(horizontal: 15),
433 | child: Row(
434 | mainAxisAlignment: MainAxisAlignment.center,
435 | children: [
436 | Text(
437 | "Cart",
438 | style: TextStyle(
439 | fontSize: 25,
440 | color: kSecondryColor,
441 | fontFamily: "PoppinsBold",
442 | fontWeight: FontWeight.bold),
443 | ),
444 | ],
445 | ),
446 | ),
447 | ),
448 | );
449 | }
450 | }
451 |
452 | class HomeCard extends StatelessWidget {
453 | final String title, example;
454 | final Color icon_color, title_color, example_color, card_color;
455 |
456 | const HomeCard({
457 | Key key,
458 | this.title,
459 | this.example,
460 | this.icon_color,
461 | this.title_color,
462 | this.example_color,
463 | this.card_color,
464 | }) : super(key: key);
465 |
466 | @override
467 | Widget build(BuildContext context) {
468 | return Container(
469 | height: 70,
470 | width: 160,
471 | decoration: BoxDecoration(
472 | border: Border.all(width: 1, color: Color(0xFFE2EDF2)),
473 | color: card_color,
474 | borderRadius: BorderRadius.circular(14),
475 | ),
476 | child: Padding(
477 | padding: EdgeInsets.only(
478 | left: 10,
479 | ),
480 | child: Row(
481 | children: [
482 | SvgPicture.asset(
483 | "assets/icons/home.svg",
484 | color: icon_color,
485 | ),
486 | SizedBox(
487 | width: 10,
488 | ),
489 | Padding(
490 | padding: const EdgeInsets.only(top: 15),
491 | child: Column(
492 | crossAxisAlignment: CrossAxisAlignment.start,
493 | children: [
494 | Text(
495 | title,
496 | style: TextStyle(color: title_color, fontSize: 12),
497 | ),
498 | Text(
499 | example,
500 | style: TextStyle(color: example_color, fontSize: 10),
501 | )
502 | ],
503 | ),
504 | )
505 | ],
506 | ),
507 | ),
508 | );
509 | }
510 | }
511 |
--------------------------------------------------------------------------------
/lib/screens/details_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/helper/ingredients_data.dart';
2 | import 'package:delivery_app/model/ingredients_model.dart';
3 | import 'package:delivery_app/screens/cart_screen.dart';
4 | import 'package:delivery_app/widgets/title_widget.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter_svg/flutter_svg.dart';
7 |
8 | import '../constants.dart';
9 |
10 | class DetailsScreen extends StatefulWidget {
11 | @override
12 | _DetailsScreenState createState() => _DetailsScreenState();
13 | }
14 |
15 | class _DetailsScreenState extends State {
16 | List ingredients = new List();
17 | @override
18 | void initState() {
19 | super.initState();
20 | ingredients = getIngredients();
21 | }
22 |
23 | @override
24 | Widget build(BuildContext context) {
25 | return Scaffold(
26 | backgroundColor: Colors.white,
27 | body: Stack(
28 | children: [
29 | SingleChildScrollView(
30 | child: Column(
31 | children: [
32 | Stack(
33 | children: [
34 | ClipPath(
35 | clipper: ClippingClass(),
36 | child: Container(
37 | height: 400,
38 | width: MediaQuery.of(context).size.width,
39 | color: Colors.white,
40 | child: Image(
41 | image: AssetImage("assets/images/background.png"),
42 | fit: BoxFit.cover,
43 | ),
44 | ),
45 | ),
46 | Positioned(
47 | bottom: 20,
48 | right: 50,
49 | child: Container(
50 | padding: EdgeInsets.all(15),
51 | child: SvgPicture.asset(
52 | "assets/icons/heart.svg",
53 | color: Colors.white,
54 | ),
55 | width: 60,
56 | height: 60,
57 | decoration: BoxDecoration(
58 | shape: BoxShape.circle,
59 | color: Color(0xFFF1395E),
60 | ),
61 | ),
62 | )
63 | ],
64 | ),
65 | SizedBox(
66 | width: MediaQuery.of(context).size.width,
67 | child: Padding(
68 | padding: const EdgeInsets.symmetric(horizontal: 30),
69 | child: Column(
70 | crossAxisAlignment: CrossAxisAlignment.start,
71 | children: [
72 | Text(
73 | "Description",
74 | style: TextStyle(
75 | fontSize: 25,
76 | fontWeight: FontWeight.bold,
77 | color: kTextColor,
78 | ),
79 | ),
80 | SizedBox(
81 | height: 10,
82 | ),
83 | Text(
84 | "A hamburger (also burger for short) is a sandwich consisting of one or more cooked patties of ground meat, usually beef, placed inside a sliced bread roll or bun.",
85 | style: TextStyle(
86 | fontSize: 13,
87 | color: kTextColor,
88 | fontWeight: FontWeight.w500),
89 | ),
90 | SizedBox(
91 | height: 10,
92 | ),
93 | Row(
94 | children: [
95 | Text(
96 | "Ingredients",
97 | style: TextStyle(
98 | fontSize: 25,
99 | fontWeight: FontWeight.bold,
100 | color: kTextColor,
101 | ),
102 | ),
103 | Spacer(),
104 | Text(
105 | "10 Ingredients",
106 | style:
107 | TextStyle(color: Colors.grey, fontSize: 15),
108 | ),
109 | ],
110 | ),
111 | SizedBox(
112 | height: 15,
113 | ),
114 | SizedBox(
115 | height: 220,
116 | child: ListView.builder(
117 | itemCount: ingredients.length,
118 | scrollDirection: Axis.horizontal,
119 | itemBuilder: (context, index) => IngredientsCard(
120 | title: ingredients[index].title,
121 | image: ingredients[index].image,
122 | ),
123 | ),
124 | ),
125 | SizedBox(
126 | height: 10,
127 | ),
128 | Row(
129 | children: [
130 | FlatButton(
131 | onPressed: () => Navigator.push(
132 | context,
133 | MaterialPageRoute(
134 | builder: (context) => CartScreen())),
135 | child: Container(
136 | decoration: BoxDecoration(
137 | borderRadius: BorderRadius.circular(20),
138 | gradient: LinearGradient(
139 | begin: Alignment.centerLeft,
140 | end: Alignment.centerRight,
141 | colors: [
142 | Color(0xFF4A1192),
143 | Color(0xFF2CD5C4),
144 | ],
145 | ),
146 | ),
147 | height: 75,
148 | width: 200,
149 | child: Center(
150 | child: Text(
151 | "Order now",
152 | style: TextStyle(
153 | color: Colors.white,
154 | fontSize: 22,
155 | fontWeight: FontWeight.bold,
156 | ),
157 | ),
158 | ),
159 | ),
160 | ),
161 | Text(
162 | "\$12.58",
163 | style: TextStyle(
164 | color: kTextColor,
165 | fontSize: 30,
166 | fontWeight: FontWeight.bold),
167 | )
168 | ],
169 | ),
170 | SizedBox(
171 | height: 20,
172 | )
173 | ],
174 | ),
175 | ),
176 | ),
177 | ],
178 | ),
179 | ),
180 | Positioned(
181 | top: 40,
182 | left: 25,
183 | child: Row(
184 | children: [
185 | IconButton(
186 | onPressed: () => Navigator.pop(context),
187 | icon: Icon(Icons.arrow_back_ios),
188 | color: Colors.white,
189 | iconSize: 25,
190 | ),
191 | SizedBox(
192 | width: 60,
193 | ),
194 | Text(
195 | "Special burger",
196 | style: TextStyle(
197 | fontSize: 22,
198 | color: Colors.white,
199 | fontWeight: FontWeight.bold),
200 | )
201 | ],
202 | ),
203 | )
204 | ],
205 | ),
206 | );
207 | }
208 | }
209 |
210 | class IngredientsCard extends StatelessWidget {
211 | final String image, title;
212 | const IngredientsCard({
213 | Key key,
214 | this.image,
215 | this.title,
216 | }) : super(key: key);
217 |
218 | @override
219 | Widget build(BuildContext context) {
220 | return Padding(
221 | padding: EdgeInsets.symmetric(horizontal: 10),
222 | child: Column(
223 | children: [
224 | ClipRRect(
225 | borderRadius: BorderRadius.circular(20.0),
226 | child: Image.asset(
227 | image,
228 | fit: BoxFit.cover,
229 | height: 150.0,
230 | width: 130.0,
231 | ),
232 | ),
233 | SizedBox(
234 | height: 10,
235 | ),
236 | Text(
237 | title,
238 | style: TextStyle(color: Colors.grey, fontSize: 18),
239 | )
240 | ],
241 | ),
242 | );
243 | }
244 | }
245 |
246 | class ClippingClass extends CustomClipper {
247 | @override
248 | Path getClip(Size size) {
249 | var path = Path();
250 | path.lineTo(0, size.height);
251 | path.quadraticBezierTo(
252 | 5, size.height - 50, size.width / 5, size.height - 50);
253 | path.lineTo(size.width - 80, size.height - 50);
254 | path.quadraticBezierTo(
255 | size.width - 10, size.height - 50, size.width, size.height - 90);
256 | path.lineTo(size.width, 0);
257 | return path;
258 | }
259 |
260 | @override
261 | bool shouldReclip(covariant CustomClipper oldClipper) {
262 | return false;
263 | }
264 | }
265 |
--------------------------------------------------------------------------------
/lib/screens/home_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:delivery_app/constants.dart';
2 | import 'package:delivery_app/helper/categories_data.dart';
3 | import 'package:delivery_app/helper/popular_product_data.dart';
4 | import 'package:delivery_app/model/categories_model.dart';
5 | import 'package:delivery_app/model/popular_products_model.dart';
6 | import 'package:delivery_app/screens/details_screen.dart';
7 | import 'package:delivery_app/size_config.dart';
8 | import 'package:delivery_app/widgets/custom_prefix_icon.dart';
9 | import 'package:delivery_app/widgets/popular_product_card.dart';
10 | import 'package:delivery_app/widgets/recommended_card.dart';
11 | import 'package:delivery_app/widgets/title_widget.dart';
12 | import 'package:flutter/material.dart';
13 | import 'package:flutter_svg/flutter_svg.dart';
14 |
15 | import '../widgets/categories_card.dart';
16 |
17 | class Home extends StatefulWidget {
18 | @override
19 | _HomeState createState() => _HomeState();
20 | }
21 |
22 | class _HomeState extends State {
23 | List categories = new List();
24 | List products = new List();
25 |
26 | @override
27 | void initState() {
28 | super.initState();
29 | categories = getCategories();
30 | products = getProducts();
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return SafeArea(
36 | child: Scaffold(
37 | appBar: AppbarBuilder(context),
38 | body: Stack(
39 | children: [
40 | Padding(
41 | padding: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
42 | child: SingleChildScrollView(
43 | child: Column(
44 | children: [
45 | TitleWidget(
46 | title: "Browse Categories",
47 | enable: true,
48 | ),
49 | SizedBox(height: 15),
50 | SizedBox(
51 | height: 150,
52 | child: ListView.builder(
53 | scrollDirection: Axis.horizontal,
54 | itemCount: categories.length,
55 | itemBuilder: (context, index) => CategoriesCard(
56 | image: categories[index].imageUrl,
57 | title: categories[index].categoryName,
58 | color: categories[index].color,
59 | ),
60 | ),
61 | ),
62 | TitleWidget(
63 | title: "Popular Products",
64 | enable: false,
65 | ),
66 | SizedBox(height: 10),
67 | SizedBox(
68 | height: 300,
69 | child: ListView.builder(
70 | scrollDirection: Axis.horizontal,
71 | itemCount: products.length,
72 | itemBuilder: (context, index) => InkWell(
73 | onTap: () {
74 | if (index == 1) {
75 | Navigator.push(
76 | context,
77 | MaterialPageRoute(
78 | builder: (context) => DetailsScreen()));
79 | }
80 | },
81 | child: PopularProductCard(
82 | img: products[index].img,
83 | title: products[index].title,
84 | desc: products[index].description,
85 | fav: products[index].fav,
86 | ),
87 | ),
88 | ),
89 | ),
90 | SizedBox(height: 10),
91 | TitleWidget(
92 | title: "Recommended",
93 | enable: false,
94 | ),
95 | SizedBox(height: 10),
96 | SizedBox(
97 | height: 160,
98 | child: ListView(
99 | scrollDirection: Axis.horizontal,
100 | children: [
101 | RecommendedCard(),
102 | SizedBox(
103 | width: 10,
104 | ),
105 | RecommendedCard(),
106 | ],
107 | ),
108 | ),
109 | SizedBox(height: 80),
110 | ],
111 | ),
112 | ),
113 | ),
114 | Positioned(
115 | bottom: 0,
116 | left: 0,
117 | child: Container(
118 | width: MediaQuery.of(context).size.width,
119 | height: 80,
120 | child: Stack(
121 | children: [
122 | Padding(
123 | padding: const EdgeInsets.only(
124 | bottom: 10, left: 10, right: 10),
125 | child: Stack(
126 | children: [
127 | Row(
128 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
129 | children: [
130 | CustomPaint(
131 | size: Size(
132 | MediaQuery.of(context).size.width * 0.40,
133 | 80),
134 | painter: LeftPartBNBCustomPainter(),
135 | ),
136 | CustomPaint(
137 | size: Size(
138 | MediaQuery.of(context).size.width * 0.40,
139 | 80),
140 | painter: RightPartBNBCustomPainter(),
141 | ),
142 | ],
143 | ),
144 | Positioned(
145 | right: 20,
146 | bottom: 20,
147 | child: Row(
148 | children: [
149 | SvgPicture.asset(
150 | "assets/icons/heart.svg",
151 | width: 30,
152 | height: 30,
153 | ),
154 | SizedBox(
155 | width: 30,
156 | ),
157 | CircleAvatar(
158 | backgroundImage:
159 | AssetImage("assets/images/fahd.jpg"),
160 | )
161 | ],
162 | ),
163 | ),
164 | Positioned(
165 | left: 20,
166 | bottom: 20,
167 | child: Row(
168 | children: [
169 | SvgPicture.asset(
170 | "assets/icons/home.svg",
171 | width: 30,
172 | height: 30,
173 | ),
174 | SizedBox(
175 | width: 30,
176 | ),
177 | SvgPicture.asset(
178 | "assets/icons/shop.svg",
179 | width: 30,
180 | height: 30,
181 | ),
182 | ],
183 | ),
184 | ),
185 | ],
186 | ),
187 | ),
188 | Center(
189 | heightFactor: 1,
190 | child: Container(
191 | width: 65,
192 | height: 65,
193 | child: FloatingActionButton(
194 | onPressed: () {},
195 | backgroundColor: Color(0xFF5117AC),
196 | child: SvgPicture.asset(
197 | "assets/icons/Path 181.svg",
198 | height: 30,
199 | width: 30,
200 | ),
201 | ),
202 | ),
203 | ),
204 | ],
205 | ),
206 | ),
207 | )
208 | ],
209 | ),
210 | ),
211 | );
212 | }
213 |
214 | PreferredSize AppbarBuilder(BuildContext context) {
215 | return PreferredSize(
216 | preferredSize: Size(double.infinity, 80),
217 | child: Container(
218 | decoration: BoxDecoration(color: Colors.white, boxShadow: [
219 | BoxShadow(color: Colors.grey[200], spreadRadius: 1, blurRadius: 15)
220 | ]),
221 | width: MediaQuery.of(context).size.width,
222 | height: 120,
223 | child: Padding(
224 | padding: EdgeInsets.symmetric(horizontal: 15),
225 | child: Row(
226 | crossAxisAlignment: CrossAxisAlignment.center,
227 | children: [
228 | SizedBox(
229 | width: 150,
230 | height: 35,
231 | child: TextField(
232 | enabled: false,
233 | decoration: InputDecoration(
234 | contentPadding: EdgeInsets.symmetric(vertical: 3),
235 | hintText: "Search",
236 | prefixIcon: Icon(
237 | Icons.search,
238 | color: kSecondryColor,
239 | ),
240 | hintStyle: TextStyle(
241 | color: Colors.grey[200], fontWeight: FontWeight.bold),
242 | disabledBorder: OutlineInputBorder(
243 | borderRadius: BorderRadius.all(Radius.circular(10)),
244 | borderSide:
245 | BorderSide(width: 1, color: Colors.grey[200]),
246 | ),
247 | )),
248 | ),
249 | SizedBox(
250 | width: 20,
251 | ),
252 | Text(
253 | "Start",
254 | style: TextStyle(
255 | fontSize: 25,
256 | color: kSecondryColor,
257 | fontFamily: "PoppinsBold",
258 | fontWeight: FontWeight.bold),
259 | ),
260 | Spacer(),
261 | SvgPicture.asset(
262 | "assets/icons/notif.svg",
263 | height: 30,
264 | width: 30,
265 | ),
266 | SizedBox(
267 | width: 15,
268 | ),
269 | SvgPicture.asset(
270 | "assets/icons/sale.svg",
271 | height: 30,
272 | width: 30,
273 | )
274 | ],
275 | ),
276 | ),
277 | ),
278 | );
279 | }
280 | }
281 |
282 | class LeftPartBNBCustomPainter extends CustomPainter {
283 | @override
284 | void paint(Canvas canvas, Size size) {
285 | Paint paint = Paint()
286 | ..color = Colors.white
287 | ..style = PaintingStyle.fill
288 | ..strokeWidth = 8.0;
289 | Path path = Path()..moveTo(size.width, 0);
290 | path.quadraticBezierTo(
291 | size.width * 0.8, size.height * 0.5, size.width, size.height);
292 | path.lineTo(size.width * 0.2, size.height);
293 | path.quadraticBezierTo(0, size.height, 0, size.height * 0.3);
294 |
295 | path.lineTo(0, size.height * 0.5);
296 | path.quadraticBezierTo(0, 0, size.width * 0.2, 0);
297 | path.close();
298 | canvas.drawShadow(path, Colors.black, 0.25, true);
299 | canvas.drawPath(path, paint);
300 | }
301 |
302 | @override
303 | bool shouldRepaint(covariant CustomPainter oldDelegate) {
304 | return false;
305 | }
306 | }
307 |
308 | class RightPartBNBCustomPainter extends CustomPainter {
309 | @override
310 | void paint(Canvas canvas, Size size) {
311 | Paint paint = Paint()
312 | ..color = Colors.white
313 | ..style = PaintingStyle.fill
314 | ..strokeWidth = 5.0;
315 | Path path = Path()..moveTo(0, 0);
316 | path.lineTo(size.width * 0.8, 0);
317 | path.quadraticBezierTo(size.width, 0, size.width, size.height * 0.5);
318 | path.lineTo(size.width, size.height * 0.4);
319 | path.quadraticBezierTo(
320 | size.width, size.height, size.width * 0.8, size.height);
321 | path.lineTo(0, size.height);
322 | path.quadraticBezierTo(size.width * 0.2, size.height * 0.5, 0, 0);
323 | path.close();
324 | canvas.drawShadow(path, Colors.black, 0.25, true);
325 | canvas.drawPath(path, paint);
326 | }
327 |
328 | @override
329 | bool shouldRepaint(covariant CustomPainter oldDelegate) {
330 | return false;
331 | }
332 | }
333 |
--------------------------------------------------------------------------------
/lib/size_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SizeConfig {
4 | static MediaQueryData _mediaQueryData;
5 | static double screenWidth;
6 | static double screenHeight;
7 | static double defaultSize;
8 | static Orientation orientation;
9 |
10 | void init(BuildContext context) {
11 | _mediaQueryData = MediaQuery.of(context);
12 | screenWidth = _mediaQueryData.size.width;
13 | screenHeight = _mediaQueryData.size.height;
14 | orientation = _mediaQueryData.orientation;
15 | }
16 | }
17 |
18 | double getProportionateScreenHeight(double inputHeight) {
19 | double screenHeight = SizeConfig.screenHeight;
20 | return (inputHeight / 812.0) * screenHeight;
21 | }
22 |
23 | double getProportionateScreenWidth(double inputWidth) {
24 | double screenWidth = SizeConfig.screenWidth;
25 | return (inputWidth / 375.0) * screenWidth;
26 | }
27 |
--------------------------------------------------------------------------------
/lib/widgets/categories_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 |
4 | import '../constants.dart';
5 |
6 | class CategoriesCard extends StatelessWidget {
7 | final String image, title;
8 | final Color color;
9 |
10 | const CategoriesCard({
11 | Key key,
12 | this.image,
13 | this.title,
14 | this.color,
15 | }) : super(key: key);
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Padding(
20 | padding: EdgeInsets.symmetric(horizontal: 15),
21 | child: Column(
22 | children: [
23 | Container(
24 | height: 100,
25 | width: 100,
26 | decoration: BoxDecoration(
27 | color: color, borderRadius: BorderRadius.circular(14)),
28 | child: Center(
29 | child: SvgPicture.asset(
30 | image,
31 | width: 50,
32 | height: 50,
33 | ),
34 | ),
35 | ),
36 | SizedBox(
37 | height: 5,
38 | ),
39 | Text(
40 | title,
41 | style: TextStyle(
42 | fontSize: 20, fontWeight: FontWeight.w600, color: kTextColor),
43 | )
44 | ],
45 | ),
46 | );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/lib/widgets/custom_prefix_icon.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 | import '../size_config.dart';
4 |
5 | class CustomPrefixIcon extends StatelessWidget {
6 | const CustomPrefixIcon({
7 | Key key,
8 | this.svgIcon,
9 | }) : super(key: key);
10 |
11 | final String svgIcon;
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return SvgPicture.asset(
16 | svgIcon,
17 | height: getProportionateScreenWidth(10),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/widgets/popular_product_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 |
4 | import '../constants.dart';
5 |
6 | class PopularProductCard extends StatelessWidget {
7 | final String title, img, fav, desc;
8 | const PopularProductCard({
9 | Key key,
10 | this.title,
11 | this.img,
12 | this.fav,
13 | this.desc,
14 | }) : super(key: key);
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Padding(
19 | padding: const EdgeInsets.all(8.0),
20 | child: Stack(
21 | children: [
22 | Container(
23 | height: 300,
24 | width: 200,
25 | decoration: BoxDecoration(
26 | color: Colors.white,
27 | borderRadius: BorderRadius.circular(15),
28 | boxShadow: [
29 | BoxShadow(
30 | offset: Offset(0, 0),
31 | blurRadius: 1,
32 | spreadRadius: 0.5,
33 | color: kgreyColor,
34 | )
35 | ]),
36 | child: Padding(
37 | padding: EdgeInsets.symmetric(horizontal: 10),
38 | child: Column(
39 | mainAxisAlignment: MainAxisAlignment.center,
40 | crossAxisAlignment: CrossAxisAlignment.start,
41 | children: [
42 | Align(
43 | alignment: Alignment.center,
44 | child: Container(
45 | height: 120,
46 | width: 120,
47 | decoration: BoxDecoration(
48 | shape: BoxShape.circle,
49 | color: Colors.white,
50 | boxShadow: [
51 | BoxShadow(
52 | offset: Offset(0, 0),
53 | blurRadius: 5,
54 | spreadRadius: 5,
55 | color: Colors.blue.withOpacity(0.3))
56 | ],
57 | ),
58 | child: Center(
59 | child: SvgPicture.asset(
60 | img,
61 | width: 60,
62 | height: 60,
63 | )),
64 | ),
65 | ),
66 | SizedBox(
67 | height: 25,
68 | ),
69 | Text(
70 | title,
71 | style: TextStyle(
72 | color: kTextColor,
73 | fontSize: 18,
74 | fontWeight: FontWeight.w600),
75 | ),
76 | Text(
77 | desc,
78 | style: TextStyle(color: kTextColor, fontSize: 12),
79 | ),
80 | Text(
81 | "\$12.58",
82 | style: TextStyle(
83 | color: kTextColor,
84 | fontSize: 20,
85 | fontWeight: FontWeight.bold),
86 | ),
87 | ],
88 | ),
89 | ),
90 | ),
91 | Positioned(
92 | top: 10,
93 | right: 20,
94 | child: SvgPicture.asset(
95 | fav,
96 | width: 25,
97 | height: 25,
98 | ),
99 | ),
100 | Positioned(
101 | bottom: 10,
102 | right: 10,
103 | child: Container(
104 | width: 40,
105 | height: 40,
106 | decoration: BoxDecoration(
107 | shape: BoxShape.circle,
108 | color: Colors.white,
109 | boxShadow: [
110 | BoxShadow(
111 | offset: Offset(0, 0),
112 | blurRadius: 20,
113 | spreadRadius: -8,
114 | color: Colors.grey)
115 | ],
116 | ),
117 | child: Icon(
118 | Icons.arrow_forward_ios,
119 | color: Colors.black,
120 | size: 25,
121 | )),
122 | )
123 | ],
124 | ),
125 | );
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/lib/widgets/recommended_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/svg.dart';
3 |
4 | import '../constants.dart';
5 |
6 | class RecommendedCard extends StatelessWidget {
7 | const RecommendedCard({
8 | Key key,
9 | }) : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Stack(
14 | overflow: Overflow.visible,
15 | children: [
16 | Container(
17 | height: 150,
18 | width: 350,
19 | decoration: BoxDecoration(
20 | borderRadius: BorderRadius.circular(25),
21 | color: Colors.white,
22 | boxShadow: [
23 | BoxShadow(
24 | offset: Offset(0, 0),
25 | blurRadius: 2,
26 | spreadRadius: -1,
27 | color: Colors.grey,
28 | )
29 | ],
30 | ),
31 | child: Row(
32 | children: [
33 | Spacer(),
34 | Column(
35 | crossAxisAlignment: CrossAxisAlignment.start,
36 | children: [
37 | SizedBox(
38 | height: 10,
39 | ),
40 | Text(
41 | "Natural",
42 | style: TextStyle(
43 | fontSize: 20,
44 | color: kgreyColor,
45 | fontWeight: FontWeight.w500,
46 | ),
47 | ),
48 | SizedBox(
49 | height: 15,
50 | ),
51 | Text(
52 | "Tropical shakes",
53 | style: TextStyle(
54 | fontSize: 18,
55 | color: kTextColor,
56 | fontWeight: FontWeight.w500,
57 | ),
58 | ),
59 | Text(
60 | "Made with natural juices",
61 | style: TextStyle(
62 | fontSize: 13,
63 | color: kTextColor,
64 | ),
65 | ),
66 | Text(
67 | "\$12.58",
68 | style: TextStyle(
69 | fontSize: 22,
70 | color: kTextColor,
71 | fontWeight: FontWeight.bold,
72 | ),
73 | )
74 | ],
75 | ),
76 | SizedBox(
77 | width: 10,
78 | )
79 | ],
80 | ),
81 | ),
82 | Positioned(
83 | bottom: 0,
84 | left: 5,
85 | child: SizedBox(
86 | height: 110,
87 | width: 110,
88 | child: SvgPicture.asset("assets/icons/juice2.svg")),
89 | ),
90 | Positioned(
91 | top: 15,
92 | right: 15,
93 | child: SvgPicture.asset("assets/icons/heart2.svg")),
94 | Positioned(
95 | bottom: 20,
96 | right: 15,
97 | child: Container(
98 | width: 20,
99 | height: 20,
100 | decoration: BoxDecoration(
101 | shape: BoxShape.circle,
102 | color: Colors.white,
103 | boxShadow: [
104 | BoxShadow(
105 | offset: Offset(0, 0),
106 | blurRadius: 20,
107 | spreadRadius: -8,
108 | color: Colors.grey)
109 | ]),
110 | child: Icon(
111 | Icons.arrow_forward_ios,
112 | color: Colors.black,
113 | size: 20,
114 | )),
115 | ),
116 | ],
117 | );
118 | }
119 | }
120 |
--------------------------------------------------------------------------------
/lib/widgets/title_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../constants.dart';
3 |
4 | class TitleWidget extends StatelessWidget {
5 | final String title;
6 | final bool enable;
7 | const TitleWidget({
8 | Key key,
9 | this.title,
10 | this.enable = true,
11 | }) : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Row(
16 | children: [
17 | Text(
18 | title,
19 | style: TextStyle(
20 | fontSize: 20,
21 | fontWeight: FontWeight.bold,
22 | fontFamily: "PoppinsBold",
23 | color: kTextColor),
24 | ),
25 | Spacer(),
26 | enable
27 | ? Text(
28 | "See all",
29 | style: TextStyle(
30 | fontSize: 18,
31 | fontWeight: FontWeight.bold,
32 | fontFamily: "PoppinsBold",
33 | color: kgreyColor),
34 | )
35 | : SizedBox(),
36 | ],
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.5.0-nullsafety.1"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0-nullsafety.1"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.0-nullsafety.3"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.0-nullsafety.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0-nullsafety.1"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.15.0-nullsafety.3"
46 | convert:
47 | dependency: transitive
48 | description:
49 | name: convert
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "2.1.1"
53 | cupertino_icons:
54 | dependency: "direct main"
55 | description:
56 | name: cupertino_icons
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.0"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.2.0-nullsafety.1"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_svg:
73 | dependency: "direct main"
74 | description:
75 | name: flutter_svg
76 | url: "https://pub.dartlang.org"
77 | source: hosted
78 | version: "0.19.1"
79 | flutter_test:
80 | dependency: "direct dev"
81 | description: flutter
82 | source: sdk
83 | version: "0.0.0"
84 | matcher:
85 | dependency: transitive
86 | description:
87 | name: matcher
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "0.12.10-nullsafety.1"
91 | meta:
92 | dependency: transitive
93 | description:
94 | name: meta
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "1.3.0-nullsafety.3"
98 | path:
99 | dependency: transitive
100 | description:
101 | name: path
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "1.8.0-nullsafety.1"
105 | path_drawing:
106 | dependency: transitive
107 | description:
108 | name: path_drawing
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "0.4.1+1"
112 | path_parsing:
113 | dependency: transitive
114 | description:
115 | name: path_parsing
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "0.1.4"
119 | petitparser:
120 | dependency: transitive
121 | description:
122 | name: petitparser
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "3.1.0"
126 | sky_engine:
127 | dependency: transitive
128 | description: flutter
129 | source: sdk
130 | version: "0.0.99"
131 | source_span:
132 | dependency: transitive
133 | description:
134 | name: source_span
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.8.0-nullsafety.2"
138 | stack_trace:
139 | dependency: transitive
140 | description:
141 | name: stack_trace
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "1.10.0-nullsafety.1"
145 | stream_channel:
146 | dependency: transitive
147 | description:
148 | name: stream_channel
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "2.1.0-nullsafety.1"
152 | string_scanner:
153 | dependency: transitive
154 | description:
155 | name: string_scanner
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.1.0-nullsafety.1"
159 | term_glyph:
160 | dependency: transitive
161 | description:
162 | name: term_glyph
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "1.2.0-nullsafety.1"
166 | test_api:
167 | dependency: transitive
168 | description:
169 | name: test_api
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "0.2.19-nullsafety.2"
173 | typed_data:
174 | dependency: transitive
175 | description:
176 | name: typed_data
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "1.3.0-nullsafety.3"
180 | vector_math:
181 | dependency: transitive
182 | description:
183 | name: vector_math
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "2.1.0-nullsafety.3"
187 | xml:
188 | dependency: transitive
189 | description:
190 | name: xml
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "4.5.1"
194 | sdks:
195 | dart: ">=2.10.0-110 <2.11.0"
196 | flutter: ">=1.18.0-6.0.pre <2.0.0"
197 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: delivery_app
2 | description: A new Flutter application.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.0
31 | flutter_svg: ^0.19.1
32 |
33 |
34 | dev_dependencies:
35 | flutter_test:
36 | sdk: flutter
37 |
38 | # For information on the generic Dart part of this file, see the
39 | # following page: https://dart.dev/tools/pub/pubspec
40 |
41 | # The following section is specific to Flutter.
42 | flutter:
43 |
44 | # The following line ensures that the Material Icons font is
45 | # included with your application, so that you can use the icons in
46 | # the material Icons class.
47 | uses-material-design: true
48 |
49 | # To add assets to your application, add an assets section, like this:
50 | assets:
51 | - assets/icons/
52 | - assets/images/
53 |
54 |
55 | # An image asset can refer to one or more resolution-specific "variants", see
56 | # https://flutter.dev/assets-and-images/#resolution-aware.
57 |
58 | # For details regarding adding assets from package dependencies, see
59 | # https://flutter.dev/assets-and-images/#from-packages
60 |
61 | # To add custom fonts to your application, add a fonts section here,
62 | # in this "flutter" section. Each entry in this list should have a
63 | # "family" key with the font family name, and a "fonts" key with a
64 | # list giving the asset and other descriptors for the font. For
65 | # example:
66 | fonts:
67 | - family: Poppins
68 | fonts:
69 | - asset: assets/fonts/Poppins-Regular.ttf
70 |
71 | - family: PoppinsBold
72 | fonts:
73 | - asset: assets/fonts/Poppins-SemiBold.ttf
74 |
75 | # For details regarding fonts from package dependencies,
76 | # see https://flutter.dev/custom-fonts/#from-packages
77 |
--------------------------------------------------------------------------------
/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:delivery_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 |
--------------------------------------------------------------------------------