├── .gitignore ├── .metadata ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── ifoodclone │ │ │ │ └── MainActivity.java │ │ └── 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 ├── categories.json ├── highlights.json └── restaurants.json ├── getCategoriesInfo.js ├── getHighlightsInfo.js ├── getRestaurantInfo.js ├── gitassets ├── animation_1.gif ├── animation_2.gif ├── animation_3.gif ├── highlights_and_categories.jpeg └── restaurantss.jpeg ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── 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 │ └── main.m ├── lib ├── components │ ├── category_card.dart │ ├── highlight_card.dart │ └── restaurant_card.dart ├── constants.dart ├── main.dart ├── models │ ├── category.dart │ ├── highlight.dart │ └── restaurant.dart └── screens │ └── list_restaurants.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 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /.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: b712a172f9694745f50505c93340883493b505e5 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ifoodclone 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | 18 | - [Script used to get restaurants info into a json array](./getRestaurantInfo.js) 19 | - [Script used to get highlights info into a json array](./getHighlightsInfo.js) 20 | - [Script used to get categories info into a json array](./getCategoriesInfo.js) 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 46 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 |
Highlights and CategoriesRestaurants
32 | 33 | 35 | 36 |
Animation 1Animation 2
44 | 45 | 47 | 48 |
Animation 3
55 | 56 |
-------------------------------------------------------------------------------- /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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.ifoodclone" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/ifoodclone/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.ifoodclone; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | -------------------------------------------------------------------------------- /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-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/categories.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-lanches-v2.jpg", 4 | "name": "Lanches" 5 | }, 6 | { 7 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-pizza.jpg", 8 | "name": "Pizza" 9 | }, 10 | { 11 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-japonesa.jpg", 12 | "name": "Japonesa" 13 | }, 14 | { 15 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-carnes.jpg", 16 | "name": "Carnes" 17 | }, 18 | { 19 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-acai.jpg", 20 | "name": "Açaí" 21 | }, 22 | { 23 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-cafeteria.jpg", 24 | "name": "Cafeterias" 25 | }, 26 | { 27 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-doces-e-bolos.jpg", 28 | "name": "Doces & Bolos" 29 | }, 30 | { 31 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-salgados.jpg", 32 | "name": "Salgados" 33 | }, 34 | { 35 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-bebidas.jpg", 36 | "name": "Bebidas" 37 | }, 38 | { 39 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-saudavel-v2.jpg", 40 | "name": "Saudável" 41 | }, 42 | { 43 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-brasileira-v2.jpg", 44 | "name": "Brasileira" 45 | }, 46 | { 47 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_low/discoveries/19C1-comida-rapida.jpg", 48 | "name": "Cozinha Rápida" 49 | } 50 | ] -------------------------------------------------------------------------------- /assets/highlights.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "Restaurantes famosos", 4 | "tip": "Todo mundo conhece (e gosta)", 5 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood_capas_famosos_v1_dezembro_2018.jpg" 6 | }, 7 | { 8 | "title": "Seleção iFood", 9 | "tip": "Recomendados pra sua fome", 10 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood_capas_soifood_v3_fevereiro_2019.jpg" 11 | }, 12 | { 13 | "title": "Taxa na faixa", 14 | "tip": "A taxa é cortesia pra você", 15 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood_capas_entregagratis_v6_maio_2019.jpg" 16 | }, 17 | { 18 | "title": "Pra Retirar", 19 | "tip": "Peça e retire no restaurante", 20 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood-capas-retirar.jpg" 21 | }, 22 | { 23 | "title": "Promoções perto de você", 24 | "tip": "Pra sua fome de desconto", 25 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood_capas_promo_v1_dezembro_2018.jpg" 26 | }, 27 | { 28 | "title": "Opções saudáveis", 29 | "tip": "Pra comer leve e gostoso", 30 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_high/discoveries/ifood_saudavel_v4_marco_2019.jpg" 31 | } 32 | ] -------------------------------------------------------------------------------- /assets/restaurants.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Spoleto Cascavel", 4 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201810311725_156aad44-d4d0-4058-8393-4b97e2317d37.png", 5 | "rating": "4.5", 6 | "foodType": "Italiana", 7 | "distance": "0,6 km", 8 | "deliveryTime": "35-45 min", 9 | "deliveryPrice": "Entrega R$ 5.90" 10 | }, 11 | { 12 | "name": "Oriental Light", 13 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/fb6fe86f-7f5e-4f4d-a074-9d119b03a0dc/201906241225_wDe9_i.jpg", 14 | "rating": "Novo!", 15 | "foodType": "Saudável", 16 | "distance": "0,4 km", 17 | "deliveryTime": "45-55 min", 18 | "deliveryPrice": "Entrega R$ 6.00" 19 | }, 20 | { 21 | "name": "Santo Grau Bebidas", 22 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201902091123_f042d49a-92b1-489c-98c5-1e72f30538b4.jpg", 23 | "rating": "4.9", 24 | "foodType": "Bebidas", 25 | "distance": "0,8 km", 26 | "deliveryTime": "50-60 min", 27 | "deliveryPrice": "Entrega Grátis" 28 | }, 29 | { 30 | "name": "Paladare", 31 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201906261754_22d601f8-7f8e-4850-acd7-eb8cf785376c.png", 32 | "rating": "Novo!", 33 | "foodType": "Italiana", 34 | "distance": "0,5 km", 35 | "deliveryTime": "50-60 min", 36 | "deliveryPrice": "Entrega R$ 7.00" 37 | }, 38 | { 39 | "name": "Sodiê - Cascavel 1", 40 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201907091135_0875ceb0-0bc7-4cea-b12e-8b48258ae568.jpg", 41 | "rating": "Novo!", 42 | "foodType": "Doces & Bolos", 43 | "distance": "0,7 km", 44 | "deliveryTime": "55-65 min", 45 | "deliveryPrice": "Entrega R$ 10.00" 46 | }, 47 | { 48 | "name": "Bubble Mix Tea Cascavel", 49 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201903161100_68d495a7-23d7-492f-b27c-feadb866bda0.jpg", 50 | "rating": "4.9", 51 | "foodType": "Bebidas", 52 | "distance": "0,7 km", 53 | "deliveryTime": "50-60 min", 54 | "deliveryPrice": "Entrega R$ 10.00" 55 | }, 56 | { 57 | "name": "Cafe Chiarini", 58 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201904241853_62eb6a2c-e3e3-4df7-96c5-ddc5f62e75e3.jpg", 59 | "rating": "4.8", 60 | "foodType": "Pastel", 61 | "distance": "2,3 km", 62 | "deliveryTime": "50-60 min", 63 | "deliveryPrice": "Entrega R$ 8.00" 64 | }, 65 | { 66 | "name": "Bob's Shopping Jl Cascavel", 67 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201904251106_3648a28a-967f-496a-a17f-c3ec57e2b283.png", 68 | "rating": "4.7", 69 | "foodType": "Lanches", 70 | "distance": "0,5 km", 71 | "deliveryTime": "50-60 min", 72 | "deliveryPrice": "Entrega R$ 7.00" 73 | }, 74 | { 75 | "name": "Subway - Centro", 76 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/b6333c34-5a68-45a1-b104-9bfe2af55c69/201904011511_IzSe_s.png", 77 | "rating": "4.7", 78 | "foodType": "Lanches", 79 | "distance": "1,4 km", 80 | "deliveryTime": "60-70 min", 81 | "deliveryPrice": "Entrega R$ 9.00" 82 | }, 83 | { 84 | "name": "Dinathura", 85 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201806271016_2fa8b2a0-b680-4d4b-a6f2-d8325fa7e126.jpg", 86 | "rating": "4.6", 87 | "foodType": "Saudável", 88 | "distance": "0,6 km", 89 | "deliveryTime": "35-45 min", 90 | "deliveryPrice": "Entrega Grátis" 91 | }, 92 | { 93 | "name": "Galo Bebidas", 94 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/1555607e-49d1-4971-9e9c-3cd60a23b388/201905012006_Y3gf_i.jpg", 95 | "rating": "4.6", 96 | "foodType": "Bebidas", 97 | "distance": "2,6 km", 98 | "deliveryTime": "50-60 min", 99 | "deliveryPrice": "Entrega R$ 10.00" 100 | }, 101 | { 102 | "name": "Fiapo da Manga", 103 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/cbc60ce3-4c6c-4ebf-8707-2e525fa5a563/201905231752_SCmP_i.png", 104 | "rating": "4.6", 105 | "foodType": "Brasileira", 106 | "distance": "0,7 km", 107 | "deliveryTime": "50-60 min", 108 | "deliveryPrice": "Entrega R$ 5.00" 109 | }, 110 | { 111 | "name": "Portato - Italian Fast Food", 112 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/0203fed3-3629-4ceb-93ed-70bcb12f4d10/201812030811_logop.png", 113 | "rating": "4.5", 114 | "foodType": "Italiana", 115 | "distance": "0,5 km", 116 | "deliveryTime": "60-70 min", 117 | "deliveryPrice": "Entrega R$ 10.00" 118 | }, 119 | { 120 | "name": "Ki Sabor Marmitaria", 121 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/42922bf4-19e8-4d6a-b416-9504ca6b6fa7/201906200934_1lPK_i.jpg", 122 | "rating": "4.5", 123 | "foodType": "Marmita", 124 | "distance": "4,3 km", 125 | "deliveryTime": "60-70 min", 126 | "deliveryPrice": "Entrega Grátis" 127 | }, 128 | { 129 | "name": "MEGA ESFIHA", 130 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/e719afeb-4ff7-4147-8ba7-130f802e8ad6/201903182001_image.png", 131 | "rating": "4.5", 132 | "foodType": "Pizza", 133 | "distance": "1,0 km", 134 | "deliveryTime": "50-60 min", 135 | "deliveryPrice": "Entrega R$ 5.00" 136 | }, 137 | { 138 | "name": "Mini Coxinhas Cascavel", 139 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/0c1920ea-dac5-4fa4-ad15-df6c7aedcadd/201810302112_minic.png", 140 | "rating": "4.5", 141 | "foodType": "Salgados", 142 | "distance": "2,9 km", 143 | "deliveryTime": "50-60 min", 144 | "deliveryPrice": "Entrega R$ 6.90" 145 | }, 146 | { 147 | "name": "Miyagi Culinária Japonesa e Brasileira", 148 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/050d8872-29b7-4f1a-97b0-7fdc47c1a6ee/201907022053_FWTe_i.jpg", 149 | "rating": "4.4", 150 | "foodType": "Japonesa", 151 | "distance": "1,1 km", 152 | "deliveryTime": "50-60 min", 153 | "deliveryPrice": "Entrega Grátis" 154 | }, 155 | { 156 | "name": "Bonsai", 157 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201803291220_659d6a67-c0f1-487e-bedd-cac529aa9373.jpg", 158 | "rating": "4.4", 159 | "foodType": "Japonesa", 160 | "distance": "0,4 km", 161 | "deliveryTime": "80-90 min", 162 | "deliveryPrice": "Entrega R$ 10.00" 163 | }, 164 | { 165 | "name": "The Walkies Gastropub", 166 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/72204337-9125-4c07-b112-79783842e3dc/201903131229_image.png", 167 | "rating": "4.3", 168 | "foodType": "Brasileira", 169 | "distance": "0,5 km", 170 | "deliveryTime": "60-70 min", 171 | "deliveryPrice": "Entrega R$ 7.00" 172 | }, 173 | { 174 | "name": "Raum Bier Restaurante e Choperia", 175 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201808181456_5815e890-2686-41ff-b283-21d2f9847395.png", 176 | "rating": "4.3", 177 | "foodType": "Brasileira", 178 | "distance": "2,9 km", 179 | "deliveryTime": "65-75 min", 180 | "deliveryPrice": "Entrega R$ 5.00" 181 | }, 182 | { 183 | "name": "Arabi’s Esfiharia", 184 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/8bb4af8b-569b-4519-9079-03aa34bd7a92/201807252127_images.png", 185 | "rating": "4.2", 186 | "foodType": "Árabe", 187 | "distance": "2,9 km", 188 | "deliveryTime": "70-80 min", 189 | "deliveryPrice": "Entrega R$ 8.00" 190 | }, 191 | { 192 | "name": "Marmita Buscape", 193 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/41dca0ce-a836-4d14-92af-1a9a53a68b83/201905250927_WI20_i.png", 194 | "rating": "3.7", 195 | "foodType": "Brasileira", 196 | "distance": "2,7 km", 197 | "deliveryTime": "55-65 min", 198 | "deliveryPrice": "Entrega R$ 3.00" 199 | }, 200 | { 201 | "name": "Mais Acaí Cascavel JL Shopping", 202 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201803061112_53d9d261-4b1d-4f66-91e0-2a2f04111a46.jpg", 203 | "rating": "3.6", 204 | "foodType": "Saudável", 205 | "distance": "0,6 km", 206 | "deliveryTime": "70-80 min", 207 | "deliveryPrice": "Entrega R$ 5.00" 208 | }, 209 | { 210 | "name": "Delta Marmitaria", 211 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201904101259_1775b2d7-d494-424d-8ad6-ff41ed88689e.jpg", 212 | "rating": "3.5", 213 | "foodType": "Marmita", 214 | "distance": "5,5 km", 215 | "deliveryTime": "80-90 min", 216 | "deliveryPrice": "Entrega R$ 13.00" 217 | }, 218 | { 219 | "name": "Croasonho - Cascavel", 220 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/0257dc63-58d5-4189-83c5-ed91d2614cd8/201906241139_xpz0_i.png", 221 | "rating": "4.6", 222 | "foodType": "Lanches", 223 | "distance": "1,9 km", 224 | "deliveryTime": "85-95 min", 225 | "deliveryPrice": "Fechado" 226 | }, 227 | { 228 | "name": "Old Dog - Lanchão & Cia", 229 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/old_olddo_ueri05.png", 230 | "rating": "4.6", 231 | "foodType": "Lanches", 232 | "distance": "0,8 km", 233 | "deliveryTime": "60-70 min", 234 | "deliveryPrice": "Fechado" 235 | }, 236 | { 237 | "name": "Restaurante Água Doce Cachaçaria", 238 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201804021654_87e180d4-ff27-4e91-b0d1-a9af53b33218.jpg", 239 | "rating": "4.6", 240 | "foodType": "Brasileira", 241 | "distance": "1,2 km", 242 | "deliveryTime": "90-100 min", 243 | "deliveryPrice": "Fechado" 244 | }, 245 | { 246 | "name": "Açaí Concept Cascavel", 247 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/logo_ACAIC_CAVEL.jpg", 248 | "rating": "4.6", 249 | "foodType": "Açaí", 250 | "distance": "2,7 km", 251 | "deliveryTime": "78-88 min", 252 | "deliveryPrice": "Fechado" 253 | }, 254 | { 255 | "name": "Frango Americano - Cascavel", 256 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201803211017_0ec7d095-bbd2-401d-81f8-31bf1c17149d.png", 257 | "rating": "4.4", 258 | "foodType": "Carnes", 259 | "distance": "0,0 km", 260 | "deliveryTime": "60-70 min", 261 | "deliveryPrice": "Fechado" 262 | }, 263 | { 264 | "name": "Pizza Hut Cascavel", 265 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201801251022_7baa37a1-e88d-423b-8a70-15a77c572c59.png", 266 | "rating": "4.4", 267 | "foodType": "Pizza", 268 | "distance": "0,6 km", 269 | "deliveryTime": "60-70 min", 270 | "deliveryPrice": "Fechado" 271 | }, 272 | { 273 | "name": "Panelinha Marmitaria", 274 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/069fb487-1674-45d9-89f7-c154e5d3a5fb/201907011133_Kux8_i.png", 275 | "rating": "Novo!", 276 | "foodType": "Marmita", 277 | "distance": "3,8 km", 278 | "deliveryTime": "60-70 min", 279 | "deliveryPrice": "Fechado" 280 | }, 281 | { 282 | "name": "Bera Lanches", 283 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201806091120_b4eb818b-6def-4a79-b7ba-c86be4509084.jpg", 284 | "rating": "Novo!", 285 | "foodType": "Lanches", 286 | "distance": "0,4 km", 287 | "deliveryTime": "50-60 min", 288 | "deliveryPrice": "Fechado" 289 | }, 290 | { 291 | "name": "Acai Dona Violeta", 292 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201901261920_c09c293b-a1f6-45d1-99ef-abd6a02f7d1e.jpg", 293 | "rating": "5.0", 294 | "foodType": "Açaí", 295 | "distance": "1,6 km", 296 | "deliveryTime": "60-70 min", 297 | "deliveryPrice": "Fechado" 298 | }, 299 | { 300 | "name": "Marlene Porções", 301 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/c05cf397-2cb8-48e8-af80-ad49ec605d23/201903211437_55505.jpg", 302 | "rating": "Novo!", 303 | "foodType": "Lanches", 304 | "distance": "1,6 km", 305 | "deliveryTime": "40-50 min", 306 | "deliveryPrice": "Fechado" 307 | }, 308 | { 309 | "name": "Like Bar", 310 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201902220942_79db5517-6ff9-46fe-bc6a-7ce67403a5a2.jpg", 311 | "rating": "Novo!", 312 | "foodType": "Brasileira", 313 | "distance": "2,8 km", 314 | "deliveryTime": "45-55 min", 315 | "deliveryPrice": "Fechado" 316 | }, 317 | { 318 | "name": "Cantinho da Araci", 319 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201904111745_78c93829-da2a-41a6-8de7-ddd92b80667c.png", 320 | "rating": "Novo!", 321 | "foodType": "Lanches", 322 | "distance": "3,7 km", 323 | "deliveryTime": "45-55 min", 324 | "deliveryPrice": "Fechado" 325 | }, 326 | { 327 | "name": "Ideal Lanches", 328 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/2832d041-23b8-4496-a39f-39a66c0d84b5/201905031627_ZO1K_i.jpg", 329 | "rating": "5.0", 330 | "foodType": "Lanches", 331 | "distance": "6,0 km", 332 | "deliveryTime": "75-85 min", 333 | "deliveryPrice": "Fechado" 334 | }, 335 | { 336 | "name": "Murillus Vegan", 337 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201905161906_b9fd965d-6d35-433b-8ec0-df8ad6079955.jpg", 338 | "rating": "Novo!", 339 | "foodType": "Saudável", 340 | "distance": "2,4 km", 341 | "deliveryTime": "60-70 min", 342 | "deliveryPrice": "Fechado" 343 | }, 344 | { 345 | "name": "Rei do Acaraje", 346 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/2832235e-801c-4b9a-855a-afed147e038b/201907121536_I5a6_i.jpg", 347 | "rating": "Novo!", 348 | "foodType": "Hambúrguer", 349 | "distance": "4,7 km", 350 | "deliveryTime": "70-80 min", 351 | "deliveryPrice": "Fechado" 352 | }, 353 | { 354 | "name": "Schornstein Kneipe", 355 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/4861e371-6826-4f0f-8a34-937bcd399f75/201905301632_b9PI_i.png", 356 | "rating": "Novo!", 357 | "foodType": "Alemã", 358 | "distance": "4,7 km", 359 | "deliveryTime": "80-90 min", 360 | "deliveryPrice": "Fechado" 361 | }, 362 | { 363 | "name": "Donna Pizza", 364 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/fcaddf12-5354-4f3e-b183-6bcfcb59885f/201905281753_LwY0_.jpeg", 365 | "rating": "Novo!", 366 | "foodType": "Pizza", 367 | "distance": "0,3 km", 368 | "deliveryTime": "40-50 min", 369 | "deliveryPrice": "Fechado" 370 | }, 371 | { 372 | "name": "Obah Burger", 373 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/61b8561c-3539-40f3-a212-231777c3b0f8/201906261648_snH4_i.jpg", 374 | "rating": "Novo!", 375 | "foodType": "Lanches", 376 | "distance": "1,8 km", 377 | "deliveryTime": "50-60 min", 378 | "deliveryPrice": "Fechado" 379 | }, 380 | { 381 | "name": "Café Kiwi", 382 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201906281049_162dfb7c-b9b8-4c35-b7fa-2053e1809b03.jpg", 383 | "rating": "Novo!", 384 | "foodType": "Cafeteria", 385 | "distance": "1,7 km", 386 | "deliveryTime": "30-40 min", 387 | "deliveryPrice": "Fechado" 388 | }, 389 | { 390 | "name": "Cachopa Lanches", 391 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/6104f2d3-96c0-4e6f-b46e-9b43ebcb5839/201906242316_4iZg_i.jpg", 392 | "rating": "Novo!", 393 | "foodType": "Lanches", 394 | "distance": "0,3 km", 395 | "deliveryTime": "45-55 min", 396 | "deliveryPrice": "Fechado" 397 | }, 398 | { 399 | "name": "Maionese Lanches", 400 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201906182150_0815719e-4cd1-4cc8-8ebe-4dfe35511a42.png", 401 | "rating": "Novo!", 402 | "foodType": "Lanches", 403 | "distance": "3,1 km", 404 | "deliveryTime": "50-60 min", 405 | "deliveryPrice": "Fechado" 406 | }, 407 | { 408 | "name": "Cantinho Caseiro", 409 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/f522a33e-f484-444b-8527-dbab2827b306/201906171954_fHBw_.jpeg", 410 | "rating": "Novo!", 411 | "foodType": "Brasileira", 412 | "distance": "1,7 km", 413 | "deliveryTime": "44-54 min", 414 | "deliveryPrice": "Fechado" 415 | }, 416 | { 417 | "name": "Cao Veio Burguer", 418 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/f8740839-2517-4bff-bc2f-2705fffc20bd/201906190927_S41M_i.png", 419 | "rating": "Novo!", 420 | "foodType": "Lanches", 421 | "distance": "0,1 km", 422 | "deliveryTime": "75-85 min", 423 | "deliveryPrice": "Fechado" 424 | }, 425 | { 426 | "name": "X-zoiao Delivery", 427 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/b1748823-6cb9-4d05-b609-da552c8a50c7/201906252059_QLzv_i.jpg", 428 | "rating": "Novo!", 429 | "foodType": "Lanches", 430 | "distance": "3,4 km", 431 | "deliveryTime": "60-70 min", 432 | "deliveryPrice": "Fechado" 433 | }, 434 | { 435 | "name": "Dogster Hot Dog Company", 436 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/7ed7a94c-ee13-4ad3-8665-41db25bfe1d3/201906252039_4sal_i.jpg", 437 | "rating": "Novo!", 438 | "foodType": "Lanches", 439 | "distance": "1,4 km", 440 | "deliveryTime": "50-60 min", 441 | "deliveryPrice": "Fechado" 442 | }, 443 | { 444 | "name": "Chazy Burguer", 445 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/d6e1a53b-2939-4649-871f-217c8128fffc/201906270815_DF3l_.jpeg", 446 | "rating": "Novo!", 447 | "foodType": "Lanches", 448 | "distance": "1,4 km", 449 | "deliveryTime": "55-65 min", 450 | "deliveryPrice": "Fechado" 451 | }, 452 | { 453 | "name": "Executive Burger", 454 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/cc8dc589-20e4-48d6-a461-bd33e6b5d182/201906281449_xee7_i.png", 455 | "rating": "Novo!", 456 | "foodType": "Lanches", 457 | "distance": "1,3 km", 458 | "deliveryTime": "60-70 min", 459 | "deliveryPrice": "Fechado" 460 | }, 461 | { 462 | "name": "Frajola Lanches", 463 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201907031322_d1027f23-bdcf-42d2-b201-2bc60f68406f.png", 464 | "rating": "Novo!", 465 | "foodType": "Lanches", 466 | "distance": "0,5 km", 467 | "deliveryTime": "50-60 min", 468 | "deliveryPrice": "Fechado" 469 | }, 470 | { 471 | "name": "Maximus Pizzaria", 472 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/5ca1390f-bd10-4bdb-b994-9a7f6d1fcba6/201907091845_WS7G_i.png", 473 | "rating": "Novo!", 474 | "foodType": "Pizza", 475 | "distance": "1,3 km", 476 | "deliveryTime": "50-60 min", 477 | "deliveryPrice": "Fechado" 478 | }, 479 | { 480 | "name": "Daly Esfiha", 481 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201907081727_97e2107a-d0c9-46bf-8737-7639a96742d8.png", 482 | "rating": "Novo!", 483 | "foodType": "Árabe", 484 | "distance": "1,1 km", 485 | "deliveryTime": "40-50 min", 486 | "deliveryPrice": "Fechado" 487 | }, 488 | { 489 | "name": "Tetri´s", 490 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/ab935d0c-80ed-4d7f-890f-e04a30c4236e/201905251113_hmo6_i.png", 491 | "rating": "5.0", 492 | "foodType": "Saudável", 493 | "distance": "4,3 km", 494 | "deliveryTime": "65-75 min", 495 | "deliveryPrice": "Fechado" 496 | }, 497 | { 498 | "name": "San Bar", 499 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/1f9840b3-da36-4c03-b019-daa5347d18a9/201902251928_logom.jpg", 500 | "rating": "4.9", 501 | "foodType": "Lanches", 502 | "distance": "3,3 km", 503 | "deliveryTime": "50-60 min", 504 | "deliveryPrice": "Fechado" 505 | }, 506 | { 507 | "name": "Mercedita Empanadas", 508 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201706021031_36f8f97d-06ea-49e4-91e8-4f33d7185a55.png", 509 | "rating": "4.9", 510 | "foodType": "Lanches", 511 | "distance": "2,2 km", 512 | "deliveryTime": "60-70 min", 513 | "deliveryPrice": "Fechado" 514 | }, 515 | { 516 | "name": "Old West Brew Pub", 517 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/5299bbba-203b-4cb4-916d-5c94f54f3133/201810111132_15873.jpg", 518 | "rating": "4.9", 519 | "foodType": "Lanches", 520 | "distance": "1,3 km", 521 | "deliveryTime": "45-55 min", 522 | "deliveryPrice": "Fechado" 523 | }, 524 | { 525 | "name": "Bao Story Vegan", 526 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/201712141408_3affde59-cbb2-4281-98aa-9190124aed2f.jpg", 527 | "rating": "4.8", 528 | "foodType": "Vegetariana", 529 | "distance": "0,8 km", 530 | "deliveryTime": "65-75 min", 531 | "deliveryPrice": "Fechado" 532 | }, 533 | { 534 | "name": "Comida Quente", 535 | "picture": "https://static-images.ifood.com.br/image/upload/f_auto,t_thumbnail/logosgde/c04f2510-79c3-4024-a422-a40c55147215/201905301102_iEil_i.png", 536 | "rating": "4.8", 537 | "foodType": "Brasileira", 538 | "distance": "1,7 km", 539 | "deliveryTime": "39-49 min", 540 | "deliveryPrice": "Fechado" 541 | } 542 | ] -------------------------------------------------------------------------------- /getCategoriesInfo.js: -------------------------------------------------------------------------------- 1 | function getCategoriesInfo() { 2 | const categoryElements = Array.from(document.querySelectorAll('.cuisine-item')); 3 | const categoryArray = categoryElements.map(category => { 4 | const picture = category.querySelector('img').src 5 | const name = category.querySelector('.cuisine-item__title').innerText 6 | 7 | return { 8 | picture, 9 | name 10 | } 11 | }); 12 | 13 | const uniqueCategories = categoryArray.reduce((categories, category) => { 14 | if (categories.find(cat => cat.name === category.name)) return categories 15 | 16 | return [ 17 | ...categories, 18 | category 19 | ] 20 | }, []); 21 | 22 | return uniqueCategories; 23 | } -------------------------------------------------------------------------------- /getHighlightsInfo.js: -------------------------------------------------------------------------------- 1 | function getHighlightsInfo() { 2 | const highlightsElements = Array.from(document.querySelectorAll('.highlights-carousel__wrapper .slick-slide')); 3 | 4 | const highlightsArray = highlightsElements.map(highlight => { 5 | const picture = highlight.querySelector('img').src 6 | const title = highlight.querySelector('.highlights-carousel__title').innerText 7 | const tip = highlight.querySelector('.highlights-carousel__description').innerText 8 | 9 | return { 10 | title, 11 | tip, 12 | picture 13 | } 14 | }); 15 | 16 | const uniqueHighlights = highlightsArray.reduce((highlights, highlight) => { 17 | if (highlights.find(high => high.title === highlight.title)) { 18 | return highlights 19 | } 20 | 21 | return [ 22 | ...highlights, 23 | highlight 24 | ] 25 | }, []); 26 | 27 | return uniqueHighlights; 28 | } -------------------------------------------------------------------------------- /getRestaurantInfo.js: -------------------------------------------------------------------------------- 1 | function getRestaurantsInfo() { 2 | const restaurants = document.querySelectorAll('.restaurant-card') 3 | return Array.from(restaurants).map(restaurant => { 4 | let name = restaurant.querySelector('.restaurant-name').innerText 5 | let picture = restaurant.querySelector('img').src 6 | let [rating, foodType, distance] = restaurant.querySelector('.restaurant-card__info').innerText.split('•') 7 | let [deliveryTime, deliveryPrice] = restaurant.querySelector('.restaurant-card__footer').innerText.split('•') 8 | 9 | return { 10 | name, 11 | picture, 12 | rating, 13 | foodType, 14 | distance, 15 | deliveryTime, 16 | deliveryPrice 17 | } 18 | }) 19 | } -------------------------------------------------------------------------------- /gitassets/animation_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/gitassets/animation_1.gif -------------------------------------------------------------------------------- /gitassets/animation_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/gitassets/animation_2.gif -------------------------------------------------------------------------------- /gitassets/animation_3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/gitassets/animation_3.gif -------------------------------------------------------------------------------- /gitassets/highlights_and_categories.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/gitassets/highlights_and_categories.jpeg -------------------------------------------------------------------------------- /gitassets/restaurantss.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/gitassets/restaurantss.jpeg -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 1020; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = en; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 275 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 276 | CLANG_WARN_EMPTY_BODY = YES; 277 | CLANG_WARN_ENUM_CONVERSION = YES; 278 | CLANG_WARN_INFINITE_RECURSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 282 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 283 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 284 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 285 | CLANG_WARN_STRICT_PROTOTYPES = YES; 286 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 287 | CLANG_WARN_UNREACHABLE_CODE = YES; 288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 289 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 290 | COPY_PHASE_STRIP = NO; 291 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 292 | ENABLE_NS_ASSERTIONS = NO; 293 | ENABLE_STRICT_OBJC_MSGSEND = YES; 294 | GCC_C_LANGUAGE_STANDARD = gnu99; 295 | GCC_NO_COMMON_BLOCKS = YES; 296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 298 | GCC_WARN_UNDECLARED_SELECTOR = YES; 299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 300 | GCC_WARN_UNUSED_FUNCTION = YES; 301 | GCC_WARN_UNUSED_VARIABLE = YES; 302 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 303 | MTL_ENABLE_DEBUG_INFO = NO; 304 | SDKROOT = iphoneos; 305 | TARGETED_DEVICE_FAMILY = "1,2"; 306 | VALIDATE_PRODUCT = YES; 307 | }; 308 | name = Profile; 309 | }; 310 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 311 | isa = XCBuildConfiguration; 312 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 316 | DEVELOPMENT_TEAM = S8QB4VV633; 317 | ENABLE_BITCODE = NO; 318 | FRAMEWORK_SEARCH_PATHS = ( 319 | "$(inherited)", 320 | "$(PROJECT_DIR)/Flutter", 321 | ); 322 | INFOPLIST_FILE = Runner/Info.plist; 323 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 324 | LIBRARY_SEARCH_PATHS = ( 325 | "$(inherited)", 326 | "$(PROJECT_DIR)/Flutter", 327 | ); 328 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ifoodclone; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | VERSIONING_SYSTEM = "apple-generic"; 331 | }; 332 | name = Profile; 333 | }; 334 | 97C147031CF9000F007C117D /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 337 | buildSettings = { 338 | ALWAYS_SEARCH_USER_PATHS = NO; 339 | CLANG_ANALYZER_NONNULL = YES; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 345 | CLANG_WARN_BOOL_CONVERSION = YES; 346 | CLANG_WARN_COMMA = YES; 347 | CLANG_WARN_CONSTANT_CONVERSION = YES; 348 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 350 | CLANG_WARN_EMPTY_BODY = YES; 351 | CLANG_WARN_ENUM_CONVERSION = YES; 352 | CLANG_WARN_INFINITE_RECURSION = YES; 353 | CLANG_WARN_INT_CONVERSION = YES; 354 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 355 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147041CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 412 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 414 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 415 | CLANG_WARN_STRICT_PROTOTYPES = YES; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 422 | ENABLE_NS_ASSERTIONS = NO; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu99; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 427 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 428 | GCC_WARN_UNDECLARED_SELECTOR = YES; 429 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 430 | GCC_WARN_UNUSED_FUNCTION = YES; 431 | GCC_WARN_UNUSED_VARIABLE = YES; 432 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 433 | MTL_ENABLE_DEBUG_INFO = NO; 434 | SDKROOT = iphoneos; 435 | TARGETED_DEVICE_FAMILY = "1,2"; 436 | VALIDATE_PRODUCT = YES; 437 | }; 438 | name = Release; 439 | }; 440 | 97C147061CF9000F007C117D /* Debug */ = { 441 | isa = XCBuildConfiguration; 442 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 443 | buildSettings = { 444 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ifoodclone; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | VERSIONING_SYSTEM = "apple-generic"; 460 | }; 461 | name = Debug; 462 | }; 463 | 97C147071CF9000F007C117D /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 466 | buildSettings = { 467 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 468 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 469 | ENABLE_BITCODE = NO; 470 | FRAMEWORK_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | INFOPLIST_FILE = Runner/Info.plist; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 476 | LIBRARY_SEARCH_PATHS = ( 477 | "$(inherited)", 478 | "$(PROJECT_DIR)/Flutter", 479 | ); 480 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ifoodclone; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | VERSIONING_SYSTEM = "apple-generic"; 483 | }; 484 | name = Release; 485 | }; 486 | /* End XCBuildConfiguration section */ 487 | 488 | /* Begin XCConfigurationList section */ 489 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 97C147031CF9000F007C117D /* Debug */, 493 | 97C147041CF9000F007C117D /* Release */, 494 | 249021D3217E4FDB00AE95B9 /* Profile */, 495 | ); 496 | defaultConfigurationIsVisible = 0; 497 | defaultConfigurationName = Release; 498 | }; 499 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 500 | isa = XCConfigurationList; 501 | buildConfigurations = ( 502 | 97C147061CF9000F007C117D /* Debug */, 503 | 97C147071CF9000F007C117D /* Release */, 504 | 249021D4217E4FDB00AE95B9 /* Profile */, 505 | ); 506 | defaultConfigurationIsVisible = 0; 507 | defaultConfigurationName = Release; 508 | }; 509 | /* End XCConfigurationList section */ 510 | }; 511 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 512 | } 513 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RegiByte/Flutter-ifood/d72442d9c4616dd846eb793c288bc4034361bf0f/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 | ifoodclone 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/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/components/category_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:cached_network_image/cached_network_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CategoryCard extends StatelessWidget { 5 | String name; 6 | String picture; 7 | Key key; 8 | 9 | CategoryCard({ 10 | this.key, 11 | @required this.name, 12 | @required this.picture, 13 | }); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Padding( 18 | key: key, 19 | padding: const EdgeInsets.only( 20 | top: 8.0, 21 | right: 8.0, 22 | ), 23 | child: Column( 24 | crossAxisAlignment: CrossAxisAlignment.center, 25 | children: [ 26 | Expanded( 27 | child: Container( 28 | width: 100, 29 | decoration: BoxDecoration( 30 | color: Colors.red, 31 | borderRadius: BorderRadius.circular(8.0), 32 | ), 33 | child: ClipRRect( 34 | borderRadius: BorderRadius.circular(8.0), 35 | child: CachedNetworkImage( 36 | fit: BoxFit.cover, 37 | imageUrl: picture, 38 | placeholder: (context, url) => Center( 39 | child: Container( 40 | width: 100, 41 | height: 100, 42 | child: CircularProgressIndicator(), 43 | ), 44 | ), 45 | errorWidget: (context, url, error) => Center( 46 | child: Icon( 47 | Icons.error, 48 | ), 49 | ), 50 | ), 51 | ), 52 | ), 53 | ), 54 | SizedBox( 55 | height: 5.0, 56 | ), 57 | Text( 58 | name, 59 | style: TextStyle(color: Colors.black54, fontSize: 12.0), 60 | ) 61 | ], 62 | ), 63 | ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /lib/components/highlight_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:cached_network_image/cached_network_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class HighlightCard extends StatelessWidget { 5 | final Key key; 6 | final String picture; 7 | final String tip; 8 | 9 | HighlightCard({ 10 | this.key, 11 | @required this.picture, 12 | @required this.tip, 13 | }); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Padding( 18 | padding: const EdgeInsets.only( 19 | left: 5.0, 20 | right: 5.0, 21 | bottom: 5.0, 22 | ), 23 | key: key, 24 | child: Column( 25 | crossAxisAlignment: CrossAxisAlignment.start, 26 | children: [ 27 | Expanded( 28 | child: Container( 29 | width: 280.0, 30 | decoration: BoxDecoration( 31 | borderRadius: BorderRadius.circular(4.0), 32 | ), 33 | child: ClipRRect( 34 | borderRadius: BorderRadius.circular(4.0), 35 | child: CachedNetworkImage( 36 | fit: BoxFit.cover, 37 | imageUrl: picture, 38 | placeholder: (context, url) => Container( 39 | width: 100, 40 | height: 100, 41 | child: Center( 42 | child: CircularProgressIndicator(), 43 | ), 44 | ), 45 | errorWidget: (context, url, error) => Center( 46 | child: Icon( 47 | Icons.error, 48 | ), 49 | ), 50 | ), 51 | ), 52 | ), 53 | ), 54 | SizedBox( 55 | height: 10.0, 56 | ), 57 | Text( 58 | tip, 59 | textAlign: TextAlign.left, 60 | ) 61 | ], 62 | ), 63 | ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /lib/components/restaurant_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:cached_network_image/cached_network_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:ifoodclone/constants.dart'; 4 | 5 | class RestaurantCard extends StatelessWidget { 6 | final String name; 7 | final String picture; 8 | final String rating; 9 | final String foodType; 10 | final String distance; 11 | final String deliveryTime; 12 | final String deliveryPrice; 13 | final Key key; 14 | 15 | RestaurantCard({ 16 | this.name, 17 | this.picture, 18 | this.rating, 19 | this.foodType, 20 | this.distance, 21 | this.deliveryTime, 22 | this.deliveryPrice, 23 | this.key, 24 | }); 25 | 26 | Widget _dotSeparator() { 27 | return Container( 28 | decoration: BoxDecoration( 29 | color: Colors.black54, 30 | borderRadius: BorderRadius.circular(50), 31 | ), 32 | margin: EdgeInsets.symmetric(horizontal: 4), 33 | width: 3, 34 | height: 3, 35 | ); 36 | } 37 | 38 | @override 39 | Widget build(BuildContext context) { 40 | return Container( 41 | color: Colors.white, 42 | key: key, 43 | child: Padding( 44 | padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 2.0), 45 | child: Card( 46 | elevation: 2.5, 47 | child: Container( 48 | decoration: BoxDecoration( 49 | border: Border.all(color: Colors.grey[200]), 50 | borderRadius: BorderRadius.all( 51 | Radius.circular(4), 52 | ), 53 | ), 54 | child: Row( 55 | children: [ 56 | Container( 57 | width: 80, 58 | child: Center( 59 | child: Container( 60 | width: 50, 61 | height: 50, 62 | decoration: BoxDecoration( 63 | color: Colors.white, 64 | shape: BoxShape.circle, 65 | border: Border.all( 66 | width: 1.0, 67 | color: Colors.grey[200], 68 | ), 69 | ), 70 | child: ClipOval( 71 | child: CachedNetworkImage( 72 | imageUrl: picture, 73 | placeholder: (context, url) => Container( 74 | height: 80, 75 | width: 80, 76 | child: Center( 77 | child: CircularProgressIndicator(), 78 | ), 79 | ), 80 | errorWidget: (context, url, error) => Center( 81 | child: Icon(Icons.error), 82 | ), 83 | fit: BoxFit.contain, 84 | ), 85 | ), 86 | ), 87 | ), 88 | ), 89 | VerticalDivider(), 90 | Flexible( 91 | child: Padding( 92 | padding: const EdgeInsets.all(4.0), 93 | child: Column( 94 | mainAxisAlignment: MainAxisAlignment.spaceAround, 95 | crossAxisAlignment: CrossAxisAlignment.start, 96 | children: [ 97 | Text( 98 | name, 99 | overflow: TextOverflow.ellipsis, 100 | softWrap: false, 101 | style: TextStyle( 102 | fontWeight: FontWeight.bold, 103 | ), 104 | ), 105 | Row( 106 | children: [ 107 | Icon( 108 | Icons.star, 109 | color: Colors.orangeAccent, 110 | size: 15.0, 111 | ), 112 | SizedBox( 113 | width: 3, 114 | ), 115 | Text( 116 | rating, 117 | style: TextStyle( 118 | color: Colors.orangeAccent, 119 | fontSize: 13, 120 | ), 121 | ), 122 | _dotSeparator(), 123 | Text( 124 | foodType, 125 | style: TextStyle( 126 | color: Colors.black54, 127 | fontSize: 13, 128 | ), 129 | ), 130 | _dotSeparator(), 131 | Text( 132 | distance, 133 | style: TextStyle( 134 | color: Colors.black54, 135 | fontSize: 13, 136 | ), 137 | ) 138 | ], 139 | ), 140 | SizedBox( 141 | height: 1.0, 142 | ), 143 | Row( 144 | children: [ 145 | Text( 146 | deliveryTime, 147 | style: TextStyle( 148 | color: Colors.black54, 149 | fontSize: 12, 150 | ), 151 | ), 152 | _dotSeparator(), 153 | Text( 154 | deliveryPrice, 155 | style: TextStyle( 156 | color: deliveryPrice == kFreeDeliveryText 157 | ? Colors.green 158 | : Colors.black54, 159 | fontSize: 12, 160 | ), 161 | ) 162 | ], 163 | ) 164 | ], 165 | ), 166 | ), 167 | ) 168 | ], 169 | ), 170 | ), 171 | ), 172 | ), 173 | ); 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /lib/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const kBackgroundColor = const Color(0xFFF2F2F2); 4 | const kBrandGrey = const Color(0xFFF6F5F5); 5 | const kBrandDarkGrey = const Color(0xFFA6A29F); 6 | const kBrandDarkerGrey = const Color(0xFF3F3E3E); 7 | const kBrandDarkenGrey = const Color(0xFFA6A29F); 8 | const kBrandRed = const Color(0XFFEA1d2C); 9 | const kRedLabelTextStyle = TextStyle(color: kBrandRed); 10 | const kFreeDeliveryText = 'Entrega Grátis'; 11 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ifoodclone/screens/list_restaurants.dart'; 3 | 4 | void main() => runApp(MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | title: 'IFood', 11 | color: Colors.white, 12 | debugShowCheckedModeBanner: false, 13 | theme: ThemeData( 14 | primarySwatch: Colors.red, 15 | brightness: Brightness.light, 16 | ), 17 | initialRoute: ListRestaurants.id, 18 | routes: {ListRestaurants.id: (context) => ListRestaurants()}, 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/models/category.dart: -------------------------------------------------------------------------------- 1 | class Category { 2 | final String name; 3 | final String picture; 4 | 5 | Category({this.name, this.picture}); 6 | 7 | factory Category.fromJson(jsonData) { 8 | return Category( 9 | name: jsonData['name'], 10 | picture: jsonData['picture'], 11 | ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/models/highlight.dart: -------------------------------------------------------------------------------- 1 | class Highlight { 2 | final String title; 3 | final String tip; 4 | final String picture; 5 | 6 | Highlight({this.title, this.tip, this.picture}); 7 | 8 | factory Highlight.fromJson(jsonData) { 9 | return Highlight( 10 | title: jsonData['title'], 11 | tip: jsonData['tip'], 12 | picture: jsonData['picture'], 13 | ); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/models/restaurant.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class Restaurant { 4 | final String name; 5 | final String picture; 6 | final String rating; 7 | final String foodType; 8 | final String distance; 9 | final String deliveryTime; 10 | final String deliveryPrice; 11 | 12 | Restaurant({ 13 | this.name, 14 | this.picture, 15 | this.rating, 16 | this.foodType, 17 | this.distance, 18 | this.deliveryPrice, 19 | this.deliveryTime, 20 | }); 21 | 22 | factory Restaurant.fromJson(jsonData) { 23 | return Restaurant( 24 | name: jsonData['name'], 25 | picture: jsonData['picture'], 26 | rating: jsonData['rating'], 27 | foodType: jsonData['foodType'], 28 | distance: jsonData['distance'], 29 | deliveryTime: jsonData['deliveryTime'], 30 | deliveryPrice: jsonData['deliveryPrice'], 31 | ); 32 | } 33 | 34 | toJson() { 35 | return jsonEncode({ 36 | 'name': name, 37 | 'picture': picture, 38 | 'rating': rating, 39 | 'foodType': foodType, 40 | 'distance': distance, 41 | 'deliveryTime': deliveryTime, 42 | 'deliveryPrice': deliveryPrice 43 | }); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /lib/screens/list_restaurants.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/services.dart' show rootBundle; 5 | import 'package:ifoodclone/components/category_card.dart'; 6 | import 'package:ifoodclone/components/highlight_card.dart'; 7 | import 'package:ifoodclone/components/restaurant_card.dart'; 8 | import 'package:ifoodclone/constants.dart'; 9 | import 'package:ifoodclone/models/category.dart'; 10 | import 'package:ifoodclone/models/highlight.dart'; 11 | import 'package:ifoodclone/models/restaurant.dart'; 12 | 13 | class ListRestaurants extends StatefulWidget { 14 | static String id = 'list_restaurants'; 15 | 16 | @override 17 | _ListRestaurantsState createState() => _ListRestaurantsState(); 18 | } 19 | 20 | class _ListRestaurantsState extends State { 21 | bool _loading = false; 22 | List _categories = []; 23 | List _highlights = []; 24 | List _restaurants = []; 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | 30 | _loadData(); 31 | } 32 | 33 | Future _loadData() async { 34 | setState(() { 35 | _loading = true; 36 | }); 37 | 38 | List categories = []; 39 | List highlights = []; 40 | List restaurants = []; 41 | 42 | if (_categories.length < 1) { 43 | categories = await _loadCategories(); 44 | } 45 | 46 | if (_highlights.length < 1) { 47 | highlights = await _loadHighlights(); 48 | } 49 | if (_restaurants.length < 1) { 50 | restaurants = await _loadRestaurants(); 51 | } 52 | 53 | setState(() { 54 | _categories = categories.length > 1 ? categories : _categories; 55 | _highlights = highlights.length > 1 ? highlights : _highlights; 56 | _restaurants = restaurants.length > 1 ? restaurants : _restaurants; 57 | _loading = false; 58 | }); 59 | } 60 | 61 | Future> _loadCategories() async { 62 | List json = 63 | jsonDecode(await rootBundle.loadString('assets/categories.json')); 64 | List categories = []; 65 | 66 | for (var category in json) { 67 | categories.add(Category.fromJson(category)); 68 | } 69 | 70 | return categories; 71 | } 72 | 73 | Future> _loadHighlights() async { 74 | List json = 75 | jsonDecode(await rootBundle.loadString('assets/highlights.json')); 76 | List highlights = []; 77 | 78 | for (var category in json) { 79 | highlights.add(Highlight.fromJson(category)); 80 | } 81 | 82 | return highlights; 83 | } 84 | 85 | Future> _loadRestaurants() async { 86 | List json = 87 | jsonDecode(await rootBundle.loadString('assets/restaurants.json')); 88 | List restaurants = []; 89 | 90 | for (var restaurant in json) { 91 | restaurants.add(Restaurant.fromJson(restaurant)); 92 | } 93 | 94 | return restaurants; 95 | } 96 | 97 | Widget _buildHighlights() { 98 | return Container( 99 | height: 190.0, 100 | color: Colors.white, 101 | child: Padding( 102 | padding: const EdgeInsets.only(top: 10, left: 10, bottom: 10), 103 | child: ListView.builder( 104 | scrollDirection: Axis.horizontal, 105 | itemCount: _highlights.length, 106 | itemBuilder: (BuildContext context, int index) { 107 | Highlight highlight = _highlights[index]; 108 | 109 | return HighlightCard( 110 | key: Key('${highlight.title}_${highlight.tip}'), 111 | tip: highlight.tip, 112 | picture: highlight.picture, 113 | ); 114 | }, 115 | ), 116 | ), 117 | ); 118 | } 119 | 120 | Widget _buildCategories() { 121 | return Padding( 122 | padding: const EdgeInsets.symmetric(vertical: 10.0), 123 | child: Container( 124 | height: 145, 125 | color: Colors.white, 126 | child: Padding( 127 | padding: const EdgeInsets.only(top: 10.0, left: 15.0, bottom: 10.0), 128 | child: Column( 129 | crossAxisAlignment: CrossAxisAlignment.start, 130 | children: [ 131 | Text( 132 | 'Categories', 133 | style: TextStyle( 134 | fontSize: 16.0, 135 | fontWeight: FontWeight.bold, 136 | ), 137 | ), 138 | Expanded( 139 | child: ListView.builder( 140 | scrollDirection: Axis.horizontal, 141 | itemCount: _categories.length, 142 | itemBuilder: (context, index) { 143 | Category category = _categories[index]; 144 | 145 | return CategoryCard( 146 | key: Key('${category.name}_${category.picture}'), 147 | name: category.name, 148 | picture: category.picture, 149 | ); 150 | }, 151 | ), 152 | ) 153 | ], 154 | ), 155 | ), 156 | ), 157 | ); 158 | } 159 | 160 | Widget _buildRestaurants() { 161 | return SliverFixedExtentList( 162 | itemExtent: 108.0, 163 | delegate: SliverChildBuilderDelegate( 164 | (context, index) { 165 | Restaurant restaurant = _restaurants[index]; 166 | 167 | return RestaurantCard( 168 | key: Key('${restaurant.name}_${restaurant.picture}'), 169 | picture: restaurant.picture, 170 | name: restaurant.name, 171 | deliveryPrice: restaurant.deliveryPrice, 172 | deliveryTime: restaurant.deliveryTime, 173 | distance: restaurant.distance, 174 | foodType: restaurant.foodType, 175 | rating: restaurant.rating, 176 | ); 177 | }, 178 | childCount: _restaurants.length, 179 | ), 180 | ); 181 | } 182 | 183 | @override 184 | Widget build(BuildContext context) { 185 | return Scaffold( 186 | body: Container( 187 | color: Colors.white, 188 | child: SafeArea( 189 | child: Container( 190 | color: kBackgroundColor, 191 | child: CustomScrollView( 192 | slivers: [ 193 | SliverAppBar( 194 | backgroundColor: Colors.white, 195 | expandedHeight: 80.0, 196 | flexibleSpace: FlexibleSpaceBar( 197 | background: Stack( 198 | children: [ 199 | Positioned( 200 | top: 20, 201 | left: 20, 202 | child: Column( 203 | mainAxisAlignment: MainAxisAlignment.start, 204 | crossAxisAlignment: CrossAxisAlignment.start, 205 | children: [ 206 | Text( 207 | 'ENTREGAR EM', 208 | textAlign: TextAlign.left, 209 | style: TextStyle( 210 | color: kBrandDarkenGrey, 211 | fontSize: 17.0, 212 | ), 213 | ), 214 | Row( 215 | crossAxisAlignment: CrossAxisAlignment.center, 216 | children: [ 217 | Text( 218 | 'Av. Brasil, 123', 219 | style: TextStyle( 220 | color: kBrandDarkerGrey, 221 | fontSize: 18.0, 222 | fontWeight: FontWeight.w500), 223 | ), 224 | Icon( 225 | Icons.keyboard_arrow_down, 226 | color: kBrandRed, 227 | size: 18.0, 228 | ) 229 | ], 230 | ), 231 | ], 232 | ), 233 | ), 234 | ], 235 | ), 236 | ), 237 | ), 238 | SliverPersistentHeader( 239 | pinned: true, 240 | floating: false, 241 | delegate: _SliverAppBarDelegate( 242 | AppBar( 243 | backgroundColor: Colors.white, 244 | elevation: 0.0, 245 | centerTitle: false, 246 | title: Container( 247 | decoration: BoxDecoration( 248 | color: kBrandGrey, 249 | borderRadius: BorderRadius.circular(4.0), 250 | ), 251 | child: TextField( 252 | decoration: InputDecoration( 253 | icon: Padding( 254 | padding: const EdgeInsets.all(8.0), 255 | child: Icon( 256 | Icons.search, 257 | color: kBrandRed, 258 | ), 259 | ), 260 | hintText: 'Prato ou restaurante', 261 | hintStyle: TextStyle(color: kBrandDarkGrey), 262 | border: InputBorder.none, 263 | ), 264 | ), 265 | ), 266 | actions: [ 267 | Padding( 268 | padding: const EdgeInsets.only(right: 10.0), 269 | child: Center( 270 | child: Text( 271 | 'Filtros', 272 | style: TextStyle( 273 | color: kBrandRed, 274 | fontSize: 16.0, 275 | ), 276 | ), 277 | ), 278 | ) 279 | ], 280 | ), 281 | ), 282 | ), 283 | if (_loading) 284 | SliverList( 285 | delegate: SliverChildListDelegate( 286 | [ 287 | Container( 288 | width: double.infinity, 289 | height: 200.0, 290 | child: Center( 291 | child: CircularProgressIndicator( 292 | strokeWidth: 5, 293 | valueColor: 294 | AlwaysStoppedAnimation(Colors.red), 295 | ), 296 | ), 297 | ), 298 | ], 299 | ), 300 | ) 301 | else ...[ 302 | SliverToBoxAdapter( 303 | child: _buildHighlights(), 304 | ), 305 | SliverToBoxAdapter( 306 | child: _buildCategories(), 307 | ), 308 | SliverList( 309 | delegate: SliverChildListDelegate([ 310 | Container( 311 | color: Colors.white, 312 | child: Padding( 313 | padding: const EdgeInsets.all(15.0), 314 | child: Text( 315 | 'Restaurantes', 316 | style: TextStyle( 317 | fontSize: 16.0, 318 | fontWeight: FontWeight.bold, 319 | ), 320 | ), 321 | ), 322 | ), 323 | ]), 324 | ), 325 | _buildRestaurants() 326 | ], 327 | ], 328 | ), 329 | ), 330 | ), 331 | ), 332 | bottomNavigationBar: BottomNavigationBar( 333 | type: BottomNavigationBarType.fixed, 334 | unselectedItemColor: Colors.black45, 335 | selectedItemColor: Colors.black87, 336 | showUnselectedLabels: true, 337 | items: [ 338 | BottomNavigationBarItem( 339 | icon: Icon(Icons.home), 340 | title: Text('Início'), 341 | ), 342 | BottomNavigationBarItem( 343 | icon: Icon(Icons.search), 344 | title: Text('Busca'), 345 | ), 346 | BottomNavigationBarItem( 347 | icon: Icon(Icons.description), 348 | title: Text('Pedidos'), 349 | ), 350 | BottomNavigationBarItem( 351 | icon: Icon(Icons.person_outline), 352 | title: Text('Perfil'), 353 | ), 354 | ]), 355 | ); 356 | } 357 | } 358 | 359 | class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate { 360 | final AppBar _appBar; 361 | 362 | _SliverAppBarDelegate(this._appBar); 363 | 364 | @override 365 | Widget build( 366 | BuildContext context, double shrinkOffset, bool overlapsContent) { 367 | return Container( 368 | child: _appBar, 369 | ); 370 | } 371 | 372 | @override 373 | double get maxExtent => 60; 374 | 375 | @override 376 | double get minExtent => 60; 377 | 378 | @override 379 | bool shouldRebuild(SliverPersistentHeaderDelegate oldDelegate) { 380 | return false; 381 | } 382 | } 383 | -------------------------------------------------------------------------------- /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.2.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.0.4" 18 | cached_network_image: 19 | dependency: "direct main" 20 | description: 21 | name: cached_network_image 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.1.2" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.14.11" 39 | convert: 40 | dependency: transitive 41 | description: 42 | name: convert 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.1" 46 | crypto: 47 | dependency: transitive 48 | description: 49 | name: crypto 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.0.6" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.1.2" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_cache_manager: 66 | dependency: transitive 67 | description: 68 | name: flutter_cache_manager 69 | url: "https://pub.dartlang.org" 70 | source: hosted 71 | version: "1.1.0" 72 | flutter_test: 73 | dependency: "direct dev" 74 | description: flutter 75 | source: sdk 76 | version: "0.0.0" 77 | http: 78 | dependency: transitive 79 | description: 80 | name: http 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.12.0+2" 84 | http_parser: 85 | dependency: transitive 86 | description: 87 | name: http_parser 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "3.1.3" 91 | matcher: 92 | dependency: transitive 93 | description: 94 | name: matcher 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.12.5" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.1.6" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.6.2" 112 | path_provider: 113 | dependency: transitive 114 | description: 115 | name: path_provider 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "1.1.2" 119 | pedantic: 120 | dependency: transitive 121 | description: 122 | name: pedantic 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "1.7.0" 126 | quiver: 127 | dependency: transitive 128 | description: 129 | name: quiver 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "2.0.3" 133 | sky_engine: 134 | dependency: transitive 135 | description: flutter 136 | source: sdk 137 | version: "0.0.99" 138 | source_span: 139 | dependency: transitive 140 | description: 141 | name: source_span 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.5.5" 145 | sqflite: 146 | dependency: transitive 147 | description: 148 | name: sqflite 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.1.6+1" 152 | stack_trace: 153 | dependency: transitive 154 | description: 155 | name: stack_trace 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.9.3" 159 | stream_channel: 160 | dependency: transitive 161 | description: 162 | name: stream_channel 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "2.0.0" 166 | string_scanner: 167 | dependency: transitive 168 | description: 169 | name: string_scanner 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.0.4" 173 | synchronized: 174 | dependency: transitive 175 | description: 176 | name: synchronized 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.1.0+1" 180 | term_glyph: 181 | dependency: transitive 182 | description: 183 | name: term_glyph 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "1.1.0" 187 | test_api: 188 | dependency: transitive 189 | description: 190 | name: test_api 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "0.2.5" 194 | typed_data: 195 | dependency: transitive 196 | description: 197 | name: typed_data 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.1.6" 201 | uuid: 202 | dependency: transitive 203 | description: 204 | name: uuid 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "2.0.2" 208 | vector_math: 209 | dependency: transitive 210 | description: 211 | name: vector_math 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "2.0.8" 215 | sdks: 216 | dart: ">=2.2.2 <3.0.0" 217 | flutter: ">=1.2.1 <2.0.0" 218 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ifoodclone 2 | description: A new Flutter project. 3 | 4 | version: 1.0.0+1 5 | 6 | environment: 7 | sdk: ">=2.2.2 <3.0.0" 8 | 9 | dependencies: 10 | flutter: 11 | sdk: flutter 12 | 13 | cupertino_icons: ^0.1.2 14 | cached_network_image: ^1.1.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | 20 | 21 | flutter: 22 | 23 | uses-material-design: true 24 | 25 | assets: 26 | - assets/ 27 | # To add assets to your application, add an assets section, like this: 28 | # assets: 29 | # - images/a_dot_burr.jpeg 30 | # - images/a_dot_ham.jpeg 31 | 32 | # An image asset can refer to one or more resolution-specific "variants", see 33 | # https://flutter.dev/assets-and-images/#resolution-aware. 34 | 35 | # For details regarding adding assets from package dependencies, see 36 | # https://flutter.dev/assets-and-images/#from-packages 37 | 38 | # To add custom fonts to your application, add a fonts section here, 39 | # in this "flutter" section. Each entry in this list should have a 40 | # "family" key with the font family name, and a "fonts" key with a 41 | # list giving the asset and other descriptors for the font. For 42 | # example: 43 | # fonts: 44 | # - family: Schyler 45 | # fonts: 46 | # - asset: fonts/Schyler-Regular.ttf 47 | # - asset: fonts/Schyler-Italic.ttf 48 | # style: italic 49 | # - family: Trajan Pro 50 | # fonts: 51 | # - asset: fonts/TrajanPro.ttf 52 | # - asset: fonts/TrajanPro_Bold.ttf 53 | # weight: 700 54 | # 55 | # For details regarding fonts from package dependencies, 56 | # see https://flutter.dev/custom-fonts/#from-packages 57 | -------------------------------------------------------------------------------- /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:ifoodclone/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 | --------------------------------------------------------------------------------