├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── cheap_booking │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── cities │ ├── dhaka.png │ ├── jeddah.png │ ├── maldives.png │ └── photo.png ├── icons │ ├── baby.svg │ ├── bed.svg │ ├── calender.svg │ ├── car.svg │ ├── change.svg │ ├── current_step.png │ ├── destination.svg │ ├── drawer.png │ ├── drawer.svg │ ├── location.svg │ ├── plane.svg │ ├── send-mail.svg │ └── step.png ├── images │ ├── car_card.svg │ ├── dest.svg │ ├── get_f_off.png │ ├── hotel_card.svg │ ├── page1.svg │ ├── page2.svg │ ├── plane_card.svg │ ├── splash.png │ └── super_deal.svg └── loading │ ├── city.svg │ └── plane4.gif ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── components │ ├── my_text.dart │ ├── services_cards.dart │ └── submit_button.dart ├── controllers │ ├── step_controller.dart │ └── traveler_controller.dart ├── main.dart └── screens │ ├── choce_services_screen.dart │ ├── home.dart │ ├── home │ └── home_page.dart │ ├── info_screen.dart │ ├── loading_screen.dart │ ├── page_info.dart │ ├── splash_screen.dart │ ├── steps │ ├── class_traveler_screen.dart │ └── search_destination.dart │ └── steps_screen.dart ├── pubspec.lock ├── pubspec.yaml ├── screenshots ├── cheapBooking.jpg └── cheapBooking22.jpg └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 78910062997c3a836feee883712c241a5fd22983 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cheap Booking (UI Challenge) 2 | 3 | Simple application with beautiful UI 4 | 5 | ![Alt text](/screenshots/cheapBooking.jpg?raw=true) 6 | 7 | 8 | ![Alt text](/screenshots/cheapBooking22.jpg?raw=true) 9 | 10 | # About me 11 | Expert Mobile app development and have made mobile apps for IOS and Android platform. Using Flutter and Django. 12 | If you have any Mobile Application Idea in your mind. 13 | Feel free to contact with me. I'll convert your idea into reality. 14 | - email : brahim26chouih@gamil.com 15 | - fb : [brahim.chouih](https://www.facebook.com/brahim.chouih/) 16 | - instagram : [brahim.chouih](https://www.instagram.com/brahim.chouih/) 17 | - LinkedIn : [brahimchouih](https://www.linkedin.com/in/brahimchouih/) 18 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 29 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.cheap_booking" 42 | minSdkVersion 16 43 | targetSdkVersion 29 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 13 | 20 | 24 | 28 | 33 | 37 | 38 | 39 | 40 | 41 | 42 | 44 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/cheap_booking/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.cheap_booking 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableR8=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/cities/dhaka.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/cities/dhaka.png -------------------------------------------------------------------------------- /assets/cities/jeddah.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/cities/jeddah.png -------------------------------------------------------------------------------- /assets/cities/maldives.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/cities/maldives.png -------------------------------------------------------------------------------- /assets/cities/photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/cities/photo.png -------------------------------------------------------------------------------- /assets/icons/baby.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/icons/bed.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/icons/calender.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | + 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/icons/car.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/icons/change.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/icons/current_step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/icons/current_step.png -------------------------------------------------------------------------------- /assets/icons/destination.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/icons/drawer.png -------------------------------------------------------------------------------- /assets/icons/drawer.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /assets/icons/location.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /assets/icons/plane.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /assets/icons/send-mail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/icons/step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/icons/step.png -------------------------------------------------------------------------------- /assets/images/car_card.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/images/dest.svg: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /assets/images/get_f_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/images/get_f_off.png -------------------------------------------------------------------------------- /assets/images/hotel_card.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/images/page1.svg: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | -------------------------------------------------------------------------------- /assets/images/plane_card.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/images/splash.png -------------------------------------------------------------------------------- /assets/images/super_deal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/loading/city.svg: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /assets/loading/plane4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/assets/loading/plane4.gif -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cheapBooking; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cheapBooking; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cheapBooking; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/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 | cheap_booking 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/components/my_text.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class MyText extends StatelessWidget { 5 | final String txt; 6 | final bool isTitle; 7 | final Color color; 8 | MyText( 9 | this.txt, { 10 | this.isTitle = false, 11 | this.color = Colors.black, 12 | }); 13 | @override 14 | Widget build(BuildContext context) { 15 | return Container( 16 | padding: EdgeInsets.symmetric(horizontal: Get.width * 0.05), 17 | child: Text( 18 | txt, 19 | style: TextStyle( 20 | fontSize: isTitle ? 24 : null, 21 | fontWeight: isTitle ? FontWeight.bold : null, 22 | color: color, 23 | ), 24 | ), 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/components/services_cards.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:cheap_booking/components/my_text.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_svg/flutter_svg.dart'; 6 | import 'package:get/get.dart'; 7 | 8 | class ServicesCard extends StatelessWidget { 9 | ServicesCard({ 10 | this.image, 11 | this.title, 12 | this.subtitle = '', 13 | this.colorGradient, 14 | this.onTap, 15 | }); 16 | 17 | final Function onTap; 18 | final String title; 19 | final String subtitle; 20 | final List colorGradient; 21 | final String image; 22 | @override 23 | Widget build(BuildContext context) { 24 | return Expanded( 25 | child: InkWell( 26 | onTap: onTap, 27 | child: Container( 28 | height: Get.height * 0.25, 29 | margin: EdgeInsets.symmetric( 30 | horizontal: Get.width * 0.03, 31 | vertical: Get.height * 0.02, 32 | ), 33 | decoration: BoxDecoration( 34 | gradient: LinearGradient( 35 | begin: Alignment.topLeft, 36 | end: Alignment.bottomRight, 37 | colors: colorGradient, 38 | ), 39 | borderRadius: BorderRadius.circular(30), 40 | boxShadow: [ 41 | BoxShadow( 42 | color: colorGradient[1], 43 | spreadRadius: -12, 44 | blurRadius: 20, 45 | offset: Offset(0, 10), 46 | ), 47 | ], 48 | ), 49 | child: Column( 50 | mainAxisAlignment: MainAxisAlignment.center, 51 | children: [ 52 | SvgPicture.asset( 53 | 'assets/images/${image}', 54 | // scale: Get.width / 300, 55 | ), 56 | MyText(title, isTitle: true, color: Colors.white), 57 | MyText(subtitle, color: Colors.white), 58 | ], 59 | ), 60 | ), 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/components/submit_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SubmitButton extends StatelessWidget { 4 | final Function onTap; 5 | 6 | const SubmitButton({this.onTap}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return InkWell( 11 | splashColor: Colors.transparent, 12 | highlightColor: Colors.transparent, 13 | onTap: onTap, 14 | child: Container( 15 | padding: EdgeInsets.all(15), 16 | child: Icon(Icons.check, color: Colors.white), 17 | decoration: BoxDecoration( 18 | color: Color(0xff00C6EB), 19 | shape: BoxShape.circle, 20 | boxShadow: [ 21 | BoxShadow( 22 | color: Color(0xff00C6EB), 23 | offset: Offset(0, 4), 24 | blurRadius: 15, 25 | spreadRadius: -5, 26 | ), 27 | ], 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/controllers/step_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class StepController extends GetxController { 4 | int currentStep = 3; 5 | String classes = 'Economy'; 6 | int traveler = 0; 7 | void onChanged(int newStep) { 8 | currentStep = newStep; 9 | update(); 10 | } 11 | 12 | void onChangerdClassesAndTraveler({ 13 | String classes, 14 | int traveler, 15 | }) { 16 | this.classes = classes; 17 | this.traveler = traveler; 18 | update(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/controllers/traveler_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ClassTravelerController extends GetxController { 4 | String classes = 'Economy'; 5 | Map travelers = { 6 | 'adults': 0, 7 | 'senior': 0, 8 | 'youth': 0, 9 | 'child': 0, 10 | 'seat_infant_under': 0, 11 | }; 12 | int numTravelers = 0; 13 | bool isSelected = false; 14 | void onChangedClasses(String classes) { 15 | this.classes = classes; 16 | update(['classes']); 17 | } 18 | 19 | void onChangedTraveler({String type, int travelerNumber}) { 20 | travelers[type] = travelerNumber; 21 | update(['travelers']); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/choce_services_screen.dart'; 2 | import 'package:cheap_booking/screens/home.dart'; 3 | import 'package:cheap_booking/screens/info_screen.dart'; 4 | import 'package:cheap_booking/screens/splash_screen.dart'; 5 | import 'package:cheap_booking/screens/steps/search_destination.dart'; 6 | import 'package:cheap_booking/screens/steps_screen.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:get/get.dart'; 9 | 10 | void main() { 11 | runApp(MyApp()); 12 | } 13 | 14 | class MyApp extends StatelessWidget { 15 | // This widget is the root of your application. 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetMaterialApp( 19 | title: 'Cheap Booking App', 20 | debugShowCheckedModeBanner: false, 21 | initialRoute: SplashScreen.id, 22 | theme: ThemeData.light().copyWith( 23 | primaryColor: Color(0xff00D0DF), 24 | scaffoldBackgroundColor: Color(0xffEEFDFF), 25 | iconTheme: IconThemeData( 26 | color: Color(0xff405064), 27 | ), 28 | ), 29 | getPages: [ 30 | GetPage(name: SplashScreen.id, page: () => SplashScreen()), 31 | GetPage(name: InfoScreen.id, page: () => InfoScreen()), 32 | GetPage( 33 | name: ChoseServicesScreen.id, page: () => ChoseServicesScreen()), 34 | GetPage(name: HomeScreen.id, page: () => HomeScreen()), 35 | GetPage( 36 | name: SearchDestination.id, 37 | page: () => SearchDestination(), 38 | transition: Transition.rightToLeft, 39 | curve: Curves.easeIn, 40 | ), 41 | GetPage( 42 | name: StepsScreen.id, 43 | page: () => StepsScreen(), 44 | transition: Transition.rightToLeft, 45 | curve: Curves.easeIn, 46 | ), 47 | ], 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/screens/choce_services_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/components/my_text.dart'; 2 | import 'package:cheap_booking/components/services_cards.dart'; 3 | import 'package:cheap_booking/screens/home.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_svg/flutter_svg.dart'; 6 | import 'package:flutter_svg/parser.dart'; 7 | import 'package:get/get.dart'; 8 | 9 | class ChoseServicesScreen extends StatelessWidget { 10 | static const id = 'ChoseServicesScreen'; 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | body: SingleChildScrollView( 15 | child: Column( 16 | children: [ 17 | SizedBox(height: Get.height * 0.08), 18 | MyText('Welcome to Cheap Booking', isTitle: true), 19 | SizedBox(height: Get.height * 0.03), 20 | MyText('Please select waht you want'), 21 | SizedBox(height: Get.height * 0.03), 22 | Container( 23 | margin: EdgeInsets.symmetric(horizontal: Get.width * 0.02), 24 | child: Row(children: [ 25 | ServicesCard( 26 | colorGradient: [ 27 | Color(0xff00EFDF), 28 | Color(0xff00C4F8), 29 | ], 30 | image: 'plane_card.svg', 31 | title: 'Flight', 32 | subtitle: '2000 flights', 33 | onTap: () => Get.toNamed(HomeScreen.id, arguments: 0), 34 | ), 35 | ServicesCard( 36 | colorGradient: [ 37 | Color(0xffF3E79A), 38 | Color(0xffC5A716), 39 | ], 40 | image: 'hotel_card.svg', 41 | title: 'Hotel', 42 | subtitle: '2000 hotel', 43 | onTap: () => Get.toNamed(HomeScreen.id, arguments: 1), 44 | ), 45 | ]), 46 | ), 47 | Container( 48 | margin: EdgeInsets.symmetric(horizontal: Get.width * 0.02), 49 | child: Row(children: [ 50 | ServicesCard( 51 | colorGradient: [ 52 | Color(0xff81F5BB), 53 | Color(0xff02C59E), 54 | ], 55 | image: 'car_card.svg', 56 | title: 'Car', 57 | subtitle: '2000 car', 58 | onTap: () => Get.toNamed(HomeScreen.id, arguments: 2), 59 | ), 60 | ServicesCard( 61 | colorGradient: [ 62 | Color(0xffEAB2F5), 63 | Color(0xff9E6FF1), 64 | ], 65 | image: 'super_deal.svg', 66 | title: 'SuperDeal', 67 | onTap: () => print('Super Deal'), 68 | ), 69 | ]), 70 | ), 71 | SizedBox(height: Get.height * 0.03), 72 | InkWell( 73 | onTap: () => print('GET FESTIVAL OFF 30%'), 74 | child: Container( 75 | margin: EdgeInsets.symmetric(horizontal: Get.width * 0.05), 76 | decoration: BoxDecoration( 77 | color: Color(0xffFFD821), 78 | borderRadius: BorderRadius.circular(30), 79 | boxShadow: [ 80 | BoxShadow( 81 | color: Color(0xffFFD821), 82 | spreadRadius: -8, 83 | blurRadius: 20, 84 | offset: Offset(0, 10), 85 | ), 86 | ], 87 | ), 88 | child: Image.asset('assets/images/get_f_off.png'), 89 | ), 90 | ), 91 | SizedBox(height: Get.height * 0.03), 92 | ], 93 | ), 94 | ), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /lib/screens/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/home/home_page.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:flutter_svg/flutter_svg.dart'; 5 | 6 | class HomeScreen extends StatefulWidget { 7 | static const id = 'HomeScreen'; 8 | 9 | @override 10 | _HomeScreenState createState() => _HomeScreenState(); 11 | } 12 | 13 | class _HomeScreenState extends State { 14 | PageController pageController; 15 | 16 | RxInt currentTab = 0.obs; 17 | 18 | @override 19 | void initState() { 20 | currentTab.value = Get.arguments; 21 | pageController = PageController(initialPage: Get.arguments); 22 | super.initState(); 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Scaffold( 28 | drawer: Drawer(), 29 | body: SafeArea( 30 | child: Column( 31 | children: [ 32 | SizedBox(height: Get.height * 0.01), 33 | Row( 34 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 35 | children: [ 36 | Builder( 37 | builder: (_) => GestureDetector( 38 | child: Image.asset( 39 | 'assets/icons/drawer.png', 40 | // width: Get.width * 0.02, 41 | ), 42 | onTap: () { 43 | Scaffold.of(_).openDrawer(); 44 | }, 45 | ), 46 | ), 47 | Obx( 48 | () => Row( 49 | children: [ 50 | tapIcon(iconStr: 'plane.svg', page: 0, txt: 'Flight'), 51 | tapIcon(iconStr: 'bed.svg', page: 1, txt: 'Hotel'), 52 | tapIcon(iconStr: 'car.svg', page: 2, txt: 'Car'), 53 | ], 54 | ), 55 | ), 56 | ], 57 | ), 58 | Expanded( 59 | child: PageView( 60 | controller: pageController, 61 | children: [ 62 | HomePage(titleFHC: 'flight'), 63 | HomePage(titleFHC: 'hotel'), 64 | HomePage(titleFHC: 'car'), 65 | ], 66 | onPageChanged: (index) { 67 | currentTab.value = index; 68 | currentTab.refresh(); 69 | }, 70 | ), 71 | ), 72 | ], 73 | ), 74 | ), 75 | ); 76 | } 77 | 78 | Widget tapIcon({ 79 | String txt, 80 | String iconStr, 81 | int page, 82 | }) { 83 | bool isActive = currentTab.value == page; 84 | Color color = isActive ? Color(0xff00C6EB) : Colors.grey; 85 | return InkWell( 86 | splashColor: Colors.transparent, 87 | highlightColor: Colors.transparent, 88 | onTap: () { 89 | pageController.animateToPage( 90 | page, 91 | curve: Curves.linear, 92 | duration: Duration(milliseconds: 200), 93 | ); 94 | }, 95 | child: Container( 96 | margin: EdgeInsets.symmetric( 97 | horizontal: Get.width * 0.04, 98 | ), 99 | height: Get.height * 0.07, 100 | child: Row( 101 | children: [ 102 | SvgPicture.asset( 103 | 'assets/icons/$iconStr', 104 | // width: Get.width * 0.011, 105 | color: color, 106 | ), 107 | SizedBox(width: Get.width * 0.01), 108 | Text( 109 | txt, 110 | style: TextStyle( 111 | color: color, 112 | fontWeight: FontWeight.w700, 113 | fontSize: 16, 114 | ), 115 | ), 116 | ], 117 | ), 118 | ), 119 | ); 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/screens/home/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/components/my_text.dart'; 2 | import 'package:cheap_booking/screens/steps/search_destination.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_svg/flutter_svg.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class HomePage extends StatelessWidget { 8 | final String titleFHC; 9 | TextEditingController destController = TextEditingController(); 10 | 11 | HomePage({this.titleFHC}); 12 | @override 13 | Widget build(BuildContext context) { 14 | return SingleChildScrollView( 15 | child: Container( 16 | padding: EdgeInsets.symmetric(horizontal: Get.width * 0.05), 17 | margin: EdgeInsets.only(top: Get.height * 0.03), 18 | child: Column( 19 | crossAxisAlignment: CrossAxisAlignment.start, 20 | children: [ 21 | destinationCard(), 22 | SizedBox(height: Get.height * 0.04), 23 | Text( 24 | 'Popular Destination', 25 | style: TextStyle(color: Color(0xffC7CFD8)), 26 | ), 27 | SizedBox(height: Get.height * 0.02), 28 | cityCardBuilder(), 29 | ], 30 | ), 31 | ), 32 | ); 33 | } 34 | 35 | Widget cityCardBuilder() { 36 | List cities = [ 37 | {'cityName': 'Dhaka', 'image': 'dhaka.png'}, 38 | {'cityName': 'Maldives', 'image': 'maldives.png'}, 39 | {'cityName': 'Jeddah', 'image': 'jeddah.png'}, 40 | {'cityName': 'Dhaka', 'image': 'photo.png'}, 41 | {'cityName': 'Dhaka', 'image': 'dhaka.png'}, 42 | {'cityName': 'Jeddah', 'image': 'jeddah.png'}, 43 | {'cityName': 'Dhaka', 'image': 'photo.png'}, 44 | ]; 45 | if (titleFHC == 'hotel') { 46 | cities = cities.reversed.toList(); 47 | } 48 | List children = []; 49 | int j = -1; 50 | for (int i = 0; i < cities.length / 2; i++) { 51 | List rowChild = []; 52 | j++; 53 | rowChild.add(cityCard( 54 | cityName: cities[j]['cityName'], 55 | image: cities[j]['image'], 56 | )); 57 | j++; 58 | try { 59 | rowChild.add(cityCard( 60 | cityName: cities[j]['cityName'], 61 | image: cities[j]['image'], 62 | )); 63 | } catch (e) { 64 | rowChild.add(Expanded(child: Container())); 65 | } 66 | 67 | children.add( 68 | Row(children: rowChild), 69 | ); 70 | } 71 | return ListView.builder( 72 | itemCount: children.length, 73 | itemBuilder: (_, i) => children[i], 74 | shrinkWrap: true, 75 | primary: false, 76 | ); 77 | } 78 | 79 | Widget cityCard({String cityName, String image}) { 80 | return Expanded( 81 | child: Container( 82 | margin: EdgeInsets.only(bottom: 20), 83 | child: Stack( 84 | children: [ 85 | Image.asset('assets/cities/$image'), 86 | Align( 87 | alignment: Alignment.bottomCenter, 88 | child: Container( 89 | margin: EdgeInsets.only( 90 | right: Get.width * 0.05, 91 | left: Get.width * 0.05, 92 | top: Get.height * 0.11, 93 | ), 94 | // height: 80, 95 | width: Get.width * 0.35, 96 | padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10), 97 | decoration: BoxDecoration( 98 | color: Colors.white, 99 | borderRadius: BorderRadius.circular(5), 100 | boxShadow: [ 101 | BoxShadow( 102 | blurRadius: 14, 103 | spreadRadius: -8, 104 | color: Colors.grey, 105 | offset: Offset(0, 4), 106 | ) 107 | ], 108 | ), 109 | child: Column( 110 | crossAxisAlignment: CrossAxisAlignment.center, 111 | children: [ 112 | Text( 113 | cityName, 114 | style: TextStyle( 115 | fontSize: 18, 116 | fontWeight: FontWeight.w500, 117 | ), 118 | ), 119 | Text( 120 | '20 $titleFHC available Start from \$210', 121 | textAlign: TextAlign.center, 122 | style: TextStyle( 123 | fontSize: 12, 124 | color: Color(0xff707070), 125 | ), 126 | ), 127 | ], 128 | ), 129 | ), 130 | ), 131 | ], 132 | ), 133 | ), 134 | ); 135 | } 136 | 137 | Widget destinationCard() { 138 | return Container( 139 | height: 180, 140 | width: Get.width * 0.9, 141 | decoration: BoxDecoration( 142 | color: Colors.white, 143 | borderRadius: BorderRadius.circular(20), 144 | boxShadow: [ 145 | BoxShadow( 146 | blurRadius: 20, 147 | spreadRadius: -14, 148 | ), 149 | ], 150 | ), 151 | child: Row( 152 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 153 | children: [ 154 | SvgPicture.asset('assets/images/dest.svg'), 155 | Column( 156 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 157 | children: [ 158 | Container( 159 | alignment: Alignment.center, 160 | child: Text('Medea'), 161 | width: Get.width * 0.7, 162 | height: 55, 163 | decoration: BoxDecoration( 164 | borderRadius: BorderRadius.circular(10), 165 | border: Border.all(color: Colors.grey), 166 | ), 167 | ), 168 | Container( 169 | alignment: Alignment.center, 170 | padding: EdgeInsets.symmetric(horizontal: 10, vertical: 10), 171 | child: TextField( 172 | onTap: () { 173 | Get.toNamed( 174 | SearchDestination.id, 175 | arguments: [destController.text], 176 | ); 177 | }, 178 | controller: destController, 179 | onChanged: (value) => Get.toNamed( 180 | SearchDestination.id, 181 | arguments: [destController.text], 182 | ), 183 | decoration: InputDecoration( 184 | border: InputBorder.none, 185 | focusedBorder: InputBorder.none, 186 | hintText: 'Enter Destination', 187 | ), 188 | ), 189 | width: Get.width * 0.7, 190 | height: Get.height * 0.09, 191 | decoration: BoxDecoration( 192 | borderRadius: BorderRadius.circular(10), 193 | border: Border.all(color: Colors.grey), 194 | ), 195 | ), 196 | ], 197 | ), 198 | SvgPicture.asset('assets/icons/change.svg') 199 | ], 200 | ), 201 | ); 202 | } 203 | } 204 | -------------------------------------------------------------------------------- /lib/screens/info_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/choce_services_screen.dart'; 2 | import 'package:cheap_booking/screens/page_info.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | class InfoScreen extends StatelessWidget { 7 | static const id = 'InfoScreen'; 8 | PageController pageController = PageController(); 9 | var currentPage = 0.obs; 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | body: Column( 14 | children: [ 15 | Container( 16 | height: Get.height * 0.9, 17 | child: PageView( 18 | controller: pageController, 19 | children: [ 20 | PageInfo( 21 | image: 'page1.svg', 22 | title: 'Book Cheapest Flight', 23 | content: 24 | 'We compare prices from 200+ booking site to help you find the lowest price ', 25 | ), 26 | PageInfo( 27 | image: 'page2.svg', 28 | title: 'Reliable Transport', 29 | content: 30 | 'We compare prices from 200+ booking site to help you find the lowest price ', 31 | ), 32 | page3(), 33 | ], 34 | onPageChanged: (value) { 35 | currentPage.value = value; 36 | if (value == 2) { 37 | Get.offAndToNamed(ChoseServicesScreen.id); 38 | } 39 | }, 40 | ), 41 | ), 42 | Container( 43 | child: Row( 44 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 45 | children: [ 46 | Obx( 47 | () => Row( 48 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 49 | children: [ 50 | SizedBox(width: Get.width * 0.05), 51 | stepInfo(0 == currentPage.value), 52 | stepInfo(1 == currentPage.value), 53 | stepInfo(2 == currentPage.value), 54 | ], 55 | ), 56 | ), 57 | TextButton( 58 | onPressed: () { 59 | Get.offAndToNamed(ChoseServicesScreen.id); 60 | }, 61 | child: Text( 62 | 'Skip', 63 | style: TextStyle(color: Color(0xff18ABF1)), 64 | ), 65 | ), 66 | ], 67 | ), 68 | ), 69 | ], 70 | ), 71 | ); 72 | } 73 | 74 | Widget stepInfo(bool isCurrent) { 75 | return Container( 76 | margin: EdgeInsets.only(right: Get.width * 0.01), 77 | child: Image.asset( 78 | 'assets/icons/${isCurrent ? "current_step" : "step"}.png'), 79 | ); 80 | } 81 | 82 | Widget page3() { 83 | return Container(); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/screens/loading_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/choce_services_screen.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_svg/flutter_svg.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | class LoadingScreen extends StatelessWidget { 7 | RxBool isDone = false.obs; 8 | void loading(bool value) async { 9 | Future.delayed(Duration(seconds: 2), () { 10 | isDone.value = value; 11 | }); 12 | Future.delayed(Duration(seconds: 2), () { 13 | Get.offAllNamed(ChoseServicesScreen.id); 14 | }); 15 | } 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | loading(true); 20 | return Scaffold( 21 | backgroundColor: Color(0xffCCEAF7), 22 | body: Column( 23 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 24 | children: [ 25 | Image.asset('assets/loading/plane4.gif'), 26 | Obx( 27 | () => Text( 28 | !isDone.value ? 'Loading ...' : 'Is Done', 29 | style: TextStyle( 30 | color: Color(0xff00D0DF), 31 | fontSize: 30, 32 | ), 33 | ), 34 | ), 35 | SvgPicture.asset('assets/loading/city.svg'), 36 | ], 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/screens/page_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/components/my_text.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_svg/flutter_svg.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | class PageInfo extends StatelessWidget { 7 | final String image; 8 | final String title; 9 | final String content; 10 | PageInfo({this.image, this.title, this.content}); 11 | @override 12 | Widget build(BuildContext context) { 13 | return Container( 14 | child: Column( 15 | mainAxisAlignment: MainAxisAlignment.end, 16 | children: [ 17 | Expanded( 18 | child: Container( 19 | child: SvgPicture.asset('assets/images/$image'), 20 | ), 21 | ), 22 | MyText(title, isTitle: true), 23 | SizedBox(height: Get.height * 0.04), 24 | MyText(content), 25 | SizedBox(height: Get.height * 0.1), 26 | ], 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/screens/splash_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/info_screen.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class SplashScreen extends StatelessWidget { 6 | static const id = 'SplashScreen'; 7 | 8 | void loadingData() async { 9 | Future.delayed(Duration(seconds: 3), () { 10 | Get.offAndToNamed(InfoScreen.id); 11 | }); 12 | } 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | loadingData(); 17 | return Scaffold( 18 | body: Stack( 19 | alignment: Alignment.bottomCenter, 20 | children: [ 21 | Container( 22 | decoration: BoxDecoration( 23 | image: DecorationImage( 24 | image: AssetImage('assets/images/splash.png'), 25 | fit: BoxFit.cover, 26 | ), 27 | ), 28 | ), 29 | Container( 30 | height: Get.height * 0.5, 31 | alignment: Alignment.center, 32 | child: Text( 33 | 'Cheap Booking', 34 | style: TextStyle( 35 | color: Color(0xff00D0DF), 36 | fontSize: 30, 37 | ), 38 | ), 39 | ), 40 | ], 41 | ), 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/screens/steps/class_traveler_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/components/submit_button.dart'; 2 | import 'package:cheap_booking/controllers/step_controller.dart'; 3 | import 'package:cheap_booking/controllers/traveler_controller.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class ClassTravelerScreen extends StatelessWidget { 8 | final classTravelerController = Get.find(); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | appBar: AppBar( 14 | leading: IconButton( 15 | icon: Icon( 16 | Icons.arrow_back, 17 | color: Color(0xff405064), 18 | ), 19 | onPressed: () => Get.back(), 20 | ), 21 | centerTitle: true, 22 | title: Text( 23 | 'Class & Traveler', 24 | style: TextStyle( 25 | color: Get.theme.primaryColor, 26 | ), 27 | ), 28 | backgroundColor: Colors.transparent, 29 | elevation: 0, 30 | ), 31 | body: Column( 32 | children: [ 33 | GetBuilder( 34 | id: 'classes', 35 | builder: (_) => Column( 36 | children: [ 37 | SizedBox(height: Get.height * 0.02), 38 | Row( 39 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 40 | children: [ 41 | classes('Economy'), 42 | classes('Pro Economy'), 43 | ], 44 | ), 45 | SizedBox(height: Get.height * 0.03), 46 | Row( 47 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 48 | children: [ 49 | classes('Business'), 50 | classes('First Class'), 51 | ], 52 | ), 53 | ], 54 | ), 55 | ), 56 | SizedBox(height: Get.height * 0.05), 57 | GetBuilder( 58 | id: 'travelers', 59 | builder: (_) => Column( 60 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 61 | children: [ 62 | travelers(txt: 'Adults 18-64', type: 'adults'), 63 | travelers(txt: 'Senior 65+', type: 'senior'), 64 | travelers(txt: 'Youth 12-17', type: 'youth'), 65 | travelers(txt: 'Child 2-11', type: 'child'), 66 | travelers( 67 | txt: 'Seat Infant Under 2', 68 | type: 'seat_infant_under', 69 | ), 70 | ], 71 | ), 72 | ), 73 | SizedBox(height: Get.height * 0.05), 74 | SubmitButton( 75 | onTap: () { 76 | if (classTravelerController.numTravelers != 0) { 77 | classTravelerController.isSelected = true; 78 | Get.back(); 79 | } 80 | }, 81 | ), 82 | ], 83 | ), 84 | ); 85 | } 86 | 87 | Widget classes(String txt) { 88 | bool isSelected = classTravelerController.classes == txt; 89 | return InkWell( 90 | splashColor: Colors.transparent, 91 | highlightColor: Colors.transparent, 92 | onTap: () => classTravelerController.onChangedClasses(txt), 93 | child: Container( 94 | child: Text( 95 | txt, 96 | style: TextStyle( 97 | color: isSelected ? Colors.white : null, 98 | ), 99 | ), 100 | alignment: Alignment.center, 101 | width: 130, 102 | height: 40, 103 | decoration: BoxDecoration( 104 | color: isSelected ? Color(0xff00D8CB) : Color(0xffEDF2F8), 105 | border: !isSelected ? Border.all(color: Color(0xffCAD0D6)) : null, 106 | borderRadius: BorderRadius.circular(10), 107 | boxShadow: isSelected 108 | ? [ 109 | BoxShadow( 110 | color: Color(0xff00D8CB), 111 | blurRadius: 20, 112 | spreadRadius: -5, 113 | ) 114 | ] 115 | : null, 116 | ), 117 | ), 118 | ); 119 | } 120 | 121 | Widget travelers({String txt, String type}) { 122 | return Container( 123 | margin: EdgeInsets.symmetric(horizontal: 40, vertical: 10), 124 | child: Row( 125 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 126 | children: [ 127 | plusMinusButton('+', type), 128 | Column( 129 | children: [ 130 | Text( 131 | classTravelerController.travelers[type].toString(), 132 | style: TextStyle( 133 | fontWeight: FontWeight.bold, 134 | fontSize: 20, 135 | ), 136 | ), 137 | Text(txt, style: TextStyle(color: Color(0xff7E7C85))), 138 | ], 139 | ), 140 | plusMinusButton('-', type), 141 | ], 142 | ), 143 | ); 144 | } 145 | 146 | Widget plusMinusButton(String pm, String type) { 147 | return InkWell( 148 | onTap: () { 149 | int traveler = classTravelerController.travelers[type]; 150 | if (pm == "+") { 151 | traveler++; 152 | classTravelerController.numTravelers++; 153 | } else if (traveler > 0) { 154 | traveler--; 155 | classTravelerController.numTravelers--; 156 | } 157 | classTravelerController.onChangedTraveler( 158 | type: type, 159 | travelerNumber: traveler, 160 | ); 161 | }, 162 | child: Container( 163 | child: Icon( 164 | pm == '+' ? Icons.add : Icons.remove, 165 | color: Colors.black, 166 | ), 167 | decoration: BoxDecoration( 168 | color: Color(0xffEDF2F8), 169 | border: Border.all(color: Colors.grey), 170 | borderRadius: BorderRadius.circular(10), 171 | ), 172 | ), 173 | ); 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /lib/screens/steps/search_destination.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/screens/steps_screen.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class SearchDestination extends StatelessWidget { 6 | static const id = 'SearchDestination'; 7 | TextEditingController destController = 8 | TextEditingController(text: Get.arguments[0]); 9 | 10 | List destinations = [ 11 | 'Dhaka (DAC)', 12 | 'Chittagram (CHT)', 13 | 'Jeddah (JED)', 14 | 'Ryad (RAD)', 15 | 'Madina (MAD)', 16 | 'Jeddah (JED)', 17 | 'Ryad (RAD)', 18 | 'Jeddah (JED)', 19 | 'Ryad (RAD)', 20 | ]; 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | appBar: AppBar( 25 | backgroundColor: Colors.white, 26 | toolbarHeight: 70, 27 | centerTitle: true, 28 | shadowColor: Color(0xff0E141D).withOpacity(0.3), 29 | elevation: 15, 30 | leading: IconButton( 31 | onPressed: () => Get.back(), 32 | icon: Icon( 33 | Icons.arrow_back, 34 | color: Color(0xff405064), 35 | ), 36 | ), 37 | title: TextField( 38 | controller: destController, 39 | autofocus: true, 40 | decoration: InputDecoration( 41 | border: InputBorder.none, 42 | focusedBorder: InputBorder.none, 43 | hintText: 'Where to', 44 | ), 45 | ), 46 | ), 47 | body: ListView.builder( 48 | itemCount: destinations.length, 49 | itemBuilder: (_, i) => ListTile( 50 | title: Text(destinations[i]), 51 | onTap: () => Get.toNamed( 52 | StepsScreen.id, 53 | arguments: [destinations[i]], 54 | ), 55 | trailing: Row( 56 | mainAxisSize: MainAxisSize.min, 57 | children: [ 58 | Text('\$320', style: TextStyle(color: Colors.grey)), 59 | SizedBox(width: Get.width * 0.035), 60 | Text('.', style: TextStyle(color: Colors.grey)), 61 | SizedBox(width: Get.width * 0.035), 62 | Text('2h 25min', style: TextStyle(color: Colors.grey)), 63 | ], 64 | ), 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/screens/steps_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cheap_booking/components/submit_button.dart'; 2 | import 'package:cheap_booking/controllers/step_controller.dart'; 3 | import 'package:cheap_booking/controllers/traveler_controller.dart'; 4 | import 'package:cheap_booking/screens/loading_screen.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter/rendering.dart'; 8 | import 'package:flutter_svg/flutter_svg.dart'; 9 | import 'package:get/get.dart'; 10 | 11 | import 'steps/class_traveler_screen.dart'; 12 | 13 | class StepsScreen extends StatelessWidget { 14 | static const id = 'StepsScreen'; 15 | final Color colorActive = Color(0xff00D7FF); 16 | String destination = Get.arguments[0]; 17 | final stepController = Get.put(StepController()); 18 | final classTravelerController = Get.put(ClassTravelerController()); 19 | DateTime dateDepature; 20 | DateTime dateArival; 21 | 22 | Rx _typeTrip = TypeTrip.none.obs; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | appBar: AppBar( 28 | leading: IconButton( 29 | icon: Icon( 30 | Icons.arrow_back, 31 | color: Color(0xff405064), 32 | ), 33 | onPressed: () => Get.back(), 34 | ), 35 | centerTitle: true, 36 | title: Text( 37 | 'Search Flight', 38 | style: TextStyle( 39 | color: Get.theme.primaryColor, 40 | ), 41 | ), 42 | backgroundColor: Colors.transparent, 43 | elevation: 0, 44 | ), 45 | body: Column( 46 | children: [ 47 | Container( 48 | height: 400, 49 | margin: EdgeInsets.only(top: 20), 50 | child: Row( 51 | children: [ 52 | SizedBox(width: 20), 53 | GetBuilder( 54 | builder: (_) => Column( 55 | crossAxisAlignment: CrossAxisAlignment.center, 56 | children: [ 57 | SizedBox(height: 20), 58 | SvgPicture.asset( 59 | 'assets/icons/location.svg', 60 | color: colorActive, 61 | ), 62 | customizeVerticalDivider(colorActive), 63 | SvgPicture.asset( 64 | 'assets/icons/destination.svg', 65 | color: colorActive, 66 | ), 67 | customizeVerticalDivider(colorActive), 68 | SvgPicture.asset( 69 | 'assets/icons/send-mail.svg', 70 | color: stepController.currentStep > 3 71 | ? colorActive 72 | : Colors.grey, 73 | ), 74 | customizeVerticalDivider(stepController.currentStep > 3 75 | ? colorActive 76 | : Colors.grey), 77 | SvgPicture.asset( 78 | 'assets/icons/calender.svg', 79 | color: stepController.currentStep > 4 80 | ? colorActive 81 | : Colors.grey, 82 | ), 83 | customizeVerticalDivider(stepController.currentStep > 4 84 | ? colorActive 85 | : Colors.grey), 86 | SvgPicture.asset( 87 | 'assets/icons/baby.svg', 88 | color: stepController.currentStep > 5 89 | ? colorActive 90 | : Colors.grey, 91 | ), 92 | SizedBox(height: 20), 93 | ], 94 | ), 95 | ), 96 | SizedBox(width: 20), 97 | GetBuilder( 98 | builder: (_) => Column( 99 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 100 | children: [ 101 | Container( 102 | alignment: Alignment.center, 103 | child: Text('Medea'), 104 | width: Get.width * 0.75, 105 | height: 55, 106 | decoration: BoxDecoration( 107 | borderRadius: BorderRadius.circular(10), 108 | border: Border.all(color: colorActive), 109 | ), 110 | ), 111 | Container( 112 | alignment: Alignment.center, 113 | child: Text(destination), 114 | width: Get.width * 0.75, 115 | height: 55, 116 | decoration: BoxDecoration( 117 | borderRadius: BorderRadius.circular(10), 118 | border: Border.all(color: colorActive), 119 | ), 120 | ), 121 | Container( 122 | width: Get.width * 0.75, 123 | child: Row( 124 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 125 | children: [ 126 | typeTrip( 127 | 'One Way', 128 | _typeTrip.value == TypeTrip.oneWay, 129 | TypeTrip.oneWay, 130 | ), 131 | typeTrip( 132 | 'Round Trip', 133 | _typeTrip.value == TypeTrip.roundTrip, 134 | TypeTrip.roundTrip, 135 | ), 136 | typeTrip( 137 | 'Multi City', 138 | _typeTrip.value == TypeTrip.multiCity, 139 | TypeTrip.multiCity, 140 | ), 141 | ], 142 | ), 143 | ), 144 | stepController.currentStep >= 4 145 | ? selectTime() 146 | : SizedBox(height: 55), 147 | stepController.currentStep >= 5 148 | ? selectClassesAndTraveler() 149 | : SizedBox(height: 55), 150 | ], 151 | ), 152 | ), 153 | ], 154 | ), 155 | ), 156 | SizedBox(height: Get.height * 0.05), 157 | GetBuilder( 158 | builder: (_) => stepController.currentStep == 6 159 | ? SubmitButton( 160 | onTap: () { 161 | Get.to(LoadingScreen()); 162 | }, 163 | ) 164 | : Container()), 165 | ], 166 | ), 167 | ); 168 | } 169 | 170 | Widget customizeVerticalDivider(Color color) { 171 | return Expanded( 172 | child: Container( 173 | child: VerticalDivider( 174 | color: color, 175 | thickness: 2, 176 | ), 177 | ), 178 | ); 179 | } 180 | 181 | Widget typeTrip(String txt, bool isSelected, TypeTrip _typeTrip) { 182 | return InkWell( 183 | splashColor: Colors.transparent, 184 | highlightColor: Colors.transparent, 185 | onTap: () { 186 | this._typeTrip.value = _typeTrip; 187 | if (stepController.currentStep == 3) { 188 | stepController.onChanged(4); 189 | } 190 | stepController.update(); 191 | print(stepController.currentStep); 192 | }, 193 | child: Container( 194 | child: Text( 195 | txt, 196 | style: TextStyle( 197 | color: isSelected ? Colors.white : null, 198 | ), 199 | ), 200 | alignment: Alignment.center, 201 | width: 80, 202 | height: 40, 203 | decoration: BoxDecoration( 204 | color: isSelected ? Color(0xff00D8CB) : Color(0xffEDF2F8), 205 | border: !isSelected ? Border.all(color: Color(0xffCAD0D6)) : null, 206 | borderRadius: BorderRadius.circular(10), 207 | boxShadow: isSelected 208 | ? [ 209 | BoxShadow( 210 | color: Color(0xff00D8CB), 211 | blurRadius: 20, 212 | spreadRadius: -5, 213 | ) 214 | ] 215 | : null, 216 | ), 217 | ), 218 | ); 219 | } 220 | 221 | Widget selectTime() { 222 | return Container( 223 | child: Row( 224 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 225 | crossAxisAlignment: CrossAxisAlignment.stretch, 226 | children: [ 227 | InkWell( 228 | splashColor: Colors.transparent, 229 | highlightColor: Colors.transparent, 230 | onTap: () async { 231 | DateTime lastDate; 232 | try { 233 | lastDate = DateTime( 234 | dateArival.year, dateArival.month, dateArival.day - 1); 235 | } catch (e) { 236 | lastDate = DateTime(DateTime.now().year + 1); 237 | } 238 | dateDepature = await showDatePicker( 239 | context: Get.context, 240 | initialDate: DateTime.now(), 241 | firstDate: DateTime.now(), 242 | lastDate: lastDate, 243 | ) ?? 244 | dateDepature; 245 | if (dateDepature != null && 246 | dateArival != null && 247 | stepController.currentStep == 4) { 248 | stepController.onChanged(5); 249 | } 250 | stepController.update(); 251 | }, 252 | child: Container( 253 | width: Get.width * 0.357, 254 | height: 55, 255 | alignment: Alignment.center, 256 | child: Text( 257 | dateDepature == null 258 | ? '1 Jun 2021' 259 | : dateDepature.toString().substring(0, 10), 260 | style: TextStyle( 261 | color: dateDepature == null ? Colors.grey : null, 262 | ), 263 | textAlign: TextAlign.center, 264 | ), 265 | ), 266 | ), 267 | InkWell( 268 | splashColor: Colors.transparent, 269 | highlightColor: Colors.transparent, 270 | onTap: () async { 271 | DateTime firstDate; 272 | try { 273 | firstDate = DateTime(dateDepature.year, dateDepature.month, 274 | dateDepature.day + 1); 275 | } catch (e) {} 276 | dateArival = await showDatePicker( 277 | context: Get.context, 278 | initialDate: firstDate ?? DateTime.now(), 279 | firstDate: firstDate ?? DateTime.now(), 280 | lastDate: DateTime(DateTime.now().year + 1), 281 | ) ?? 282 | dateArival; 283 | if (dateDepature != null && 284 | dateArival != null && 285 | stepController.currentStep == 4) { 286 | stepController.onChanged(5); 287 | } 288 | stepController.update(); 289 | }, 290 | child: Container( 291 | width: Get.width * 0.357, 292 | height: 55, 293 | alignment: Alignment.center, 294 | child: Text( 295 | dateArival == null 296 | ? '1 Jun 2021' 297 | : dateArival.toString().substring(0, 10), 298 | style: TextStyle( 299 | color: dateArival == null ? Colors.grey : null, 300 | ), 301 | ), 302 | ), 303 | ), 304 | ], 305 | ), 306 | width: Get.width * 0.75, 307 | height: 55, 308 | decoration: BoxDecoration( 309 | borderRadius: BorderRadius.circular(10), 310 | border: Border.all( 311 | color: stepController.currentStep == 4 ? Colors.grey : colorActive, 312 | ), 313 | ), 314 | ); 315 | } 316 | 317 | Widget selectClassesAndTraveler() { 318 | bool isSelected = classTravelerController.isSelected; 319 | return InkWell( 320 | splashColor: Colors.transparent, 321 | highlightColor: Colors.transparent, 322 | onTap: () async { 323 | await Get.to(ClassTravelerScreen()); 324 | stepController.onChanged(6); 325 | }, 326 | child: Container( 327 | child: Row( 328 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 329 | crossAxisAlignment: CrossAxisAlignment.stretch, 330 | children: [ 331 | Container( 332 | width: Get.width * 0.357, 333 | height: 55, 334 | alignment: Alignment.center, 335 | child: Text( 336 | isSelected ? classTravelerController.classes : 'Economy', 337 | textAlign: TextAlign.center, 338 | ), 339 | ), 340 | Container( 341 | width: Get.width * 0.357, 342 | height: 55, 343 | alignment: Alignment.center, 344 | child: Text( 345 | isSelected 346 | ? '${classTravelerController.numTravelers} Traveler' 347 | : '0 Traveler', 348 | textAlign: TextAlign.center, 349 | ), 350 | ), 351 | ], 352 | ), 353 | width: Get.width * 0.75, 354 | height: 55, 355 | decoration: BoxDecoration( 356 | borderRadius: BorderRadius.circular(10), 357 | border: Border.all( 358 | color: isSelected ? colorActive : Colors.grey, 359 | ), 360 | ), 361 | ), 362 | ); 363 | } 364 | } 365 | 366 | enum TypeTrip { 367 | oneWay, 368 | roundTrip, 369 | multiCity, 370 | none, 371 | } 372 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.5.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 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.2.0" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.2" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.2.0" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_svg: 73 | dependency: "direct main" 74 | description: 75 | name: flutter_svg 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "0.19.3" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | get: 85 | dependency: "direct main" 86 | description: 87 | name: get 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "3.26.0" 91 | matcher: 92 | dependency: transitive 93 | description: 94 | name: matcher 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.12.10" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.3.0" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.8.0" 112 | path_drawing: 113 | dependency: transitive 114 | description: 115 | name: path_drawing 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.4.1+1" 119 | path_parsing: 120 | dependency: transitive 121 | description: 122 | name: path_parsing 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.1.4" 126 | petitparser: 127 | dependency: transitive 128 | description: 129 | name: petitparser 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "3.1.0" 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.8.0" 145 | stack_trace: 146 | dependency: transitive 147 | description: 148 | name: stack_trace 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.10.0" 152 | stream_channel: 153 | dependency: transitive 154 | description: 155 | name: stream_channel 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.1.0" 159 | string_scanner: 160 | dependency: transitive 161 | description: 162 | name: string_scanner 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.1.0" 166 | term_glyph: 167 | dependency: transitive 168 | description: 169 | name: term_glyph 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.2.0" 173 | test_api: 174 | dependency: transitive 175 | description: 176 | name: test_api 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.2.19" 180 | typed_data: 181 | dependency: transitive 182 | description: 183 | name: typed_data 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "1.3.0" 187 | vector_math: 188 | dependency: transitive 189 | description: 190 | name: vector_math 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "2.1.0" 194 | xml: 195 | dependency: transitive 196 | description: 197 | name: xml 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "4.5.1" 201 | sdks: 202 | dart: ">=2.12.0-0.0 <3.0.0" 203 | flutter: ">=1.24.0-10.1.pre" 204 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: cheap_booking 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | get: ^3.24.0 27 | flutter_svg: ^0.19.3 28 | 29 | # The following adds the Cupertino Icons font to your application. 30 | # Use with the CupertinoIcons class for iOS style icons. 31 | cupertino_icons: ^1.0.0 32 | 33 | dev_dependencies: 34 | flutter_test: 35 | sdk: flutter 36 | 37 | # For information on the generic Dart part of this file, see the 38 | # following page: https://dart.dev/tools/pub/pubspec 39 | 40 | # The following section is specific to Flutter. 41 | flutter: 42 | 43 | # The following line ensures that the Material Icons font is 44 | # included with your application, so that you can use the icons in 45 | # the material Icons class. 46 | uses-material-design: true 47 | 48 | # To add assets to your application, add an assets section, like this: 49 | # assets: 50 | # - images/a_dot_burr.jpeg 51 | # - images/a_dot_ham.jpeg 52 | assets: 53 | - assets/images/ 54 | - assets/icons/ 55 | - assets/cities/ 56 | - assets/loading/ 57 | 58 | # An image asset can refer to one or more resolution-specific "variants", see 59 | # https://flutter.dev/assets-and-images/#resolution-aware. 60 | 61 | # For details regarding adding assets from package dependencies, see 62 | # https://flutter.dev/assets-and-images/#from-packages 63 | 64 | # To add custom fonts to your application, add a fonts section here, 65 | # in this "flutter" section. Each entry in this list should have a 66 | # "family" key with the font family name, and a "fonts" key with a 67 | # list giving the asset and other descriptors for the font. For 68 | # example: 69 | # fonts: 70 | # - family: Schyler 71 | # fonts: 72 | # - asset: fonts/Schyler-Regular.ttf 73 | # - asset: fonts/Schyler-Italic.ttf 74 | # style: italic 75 | # - family: Trajan Pro 76 | # fonts: 77 | # - asset: fonts/TrajanPro.ttf 78 | # - asset: fonts/TrajanPro_Bold.ttf 79 | # weight: 700 80 | # 81 | # For details regarding fonts from package dependencies, 82 | # see https://flutter.dev/custom-fonts/#from-packages 83 | -------------------------------------------------------------------------------- /screenshots/cheapBooking.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/screenshots/cheapBooking.jpg -------------------------------------------------------------------------------- /screenshots/cheapBooking22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrahimChouih/CheapBooking/9c6a538420c7df3b959d28aeeca9840cc39c12c7/screenshots/cheapBooking22.jpg -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:cheap_booking/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 | --------------------------------------------------------------------------------