├── .gitignore ├── .metadata ├── 2020-08-23.jpg ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── tarikul │ │ │ │ └── flutterhotelbookingapp │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── fonts │ ├── PlayfairDisplay-Bold.ttf │ ├── PlayfairDisplay-Medium.ttf │ └── PlayfairDisplay-Regular.ttf └── images │ ├── deal │ ├── deal1.jpg │ ├── deal2.jpg │ ├── deal3.jpg │ ├── deal4.jpg │ ├── deal5.jpg │ ├── deal6.jpg │ ├── deal7.jpg │ └── deal8.jpg │ ├── icons │ ├── ic_account.png │ ├── ic_app_icon.png │ ├── ic_app_icon_black.png │ ├── ic_cart.png │ ├── ic_credit_card.png │ ├── ic_delete.png │ ├── ic_discount.png │ ├── ic_favorite.png │ ├── ic_food_express.png │ ├── ic_home.png │ ├── ic_home_menu.png │ ├── ic_near_by.png │ ├── ic_notification.png │ ├── ic_popular.png │ ├── ic_room.png │ ├── ic_search.png │ └── user.png │ └── popular_destination │ └── london.jpg ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── common │ ├── animation │ │ ├── fade_route.dart │ │ ├── rotation_route.dart │ │ └── scale_route.dart │ ├── components │ │ ├── Section.dart │ │ ├── circular_progress.dart │ │ ├── hotel_list.dart │ │ ├── popular_destination.dart │ │ ├── sliding_bottom_sheet.dart │ │ ├── sliding_bottom_sheet_content.dart │ │ └── special_offer.dart │ └── widgets │ │ ├── appbar_widget.dart │ │ ├── blur_icon.dart │ │ └── search_widget.dart ├── main.dart ├── model │ ├── deal.dart │ ├── destination.dart │ └── hotel_model.dart ├── screen │ ├── home_screen.dart │ ├── main_screen_controller.dart │ ├── place_detail_screen.dart │ ├── search_screen.dart │ ├── sign_in_screen.dart │ └── sign_up_screen.dart └── utils │ ├── Urls.dart │ ├── constants.dart │ ├── parallax_page_view.dart │ ├── parallax_sliding_card.dart │ └── theme.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: f139b11009aeb8ed2a3a3aa8b0066e482709dde3 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /2020-08-23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/2020-08-23.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter hotel booking app 2 | ## 🤓 Author(s) 3 | **Md Tarikul Islam** [![Twitter Follow](https://img.shields.io/twitter/follow/tarikul711.svg?style=social)](https://twitter.com/tarikul711) 4 | A new Flutter application. 5 | ## Screenshots 6 | 7 | 8 | ## ✨ Requirements 9 | * Any Operating System (ie. MacOS X, Linux, Windows) 10 | * Any IDE with Flutter SDK installed (ie. Android Studio, VSCode, IntelliJ, etc) 11 | * A little knowledge of Dart and Flutter 12 | * A brain to think 🤓🤓 13 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.tarikul.flutterhotelbookingapp" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/tarikul/flutterhotelbookingapp/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.tarikul.flutterhotelbookingapp 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity 5 | import io.flutter.embedding.engine.FlutterEngine 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { 10 | GeneratedPluginRegistrant.registerWith(flutterEngine); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/fonts/PlayfairDisplay-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/fonts/PlayfairDisplay-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/PlayfairDisplay-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/fonts/PlayfairDisplay-Medium.ttf -------------------------------------------------------------------------------- /assets/fonts/PlayfairDisplay-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/fonts/PlayfairDisplay-Regular.ttf -------------------------------------------------------------------------------- /assets/images/deal/deal1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal1.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal2.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal3.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal4.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal5.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal6.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal7.jpg -------------------------------------------------------------------------------- /assets/images/deal/deal8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/deal/deal8.jpg -------------------------------------------------------------------------------- /assets/images/icons/ic_account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_account.png -------------------------------------------------------------------------------- /assets/images/icons/ic_app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_app_icon.png -------------------------------------------------------------------------------- /assets/images/icons/ic_app_icon_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_app_icon_black.png -------------------------------------------------------------------------------- /assets/images/icons/ic_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_cart.png -------------------------------------------------------------------------------- /assets/images/icons/ic_credit_card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_credit_card.png -------------------------------------------------------------------------------- /assets/images/icons/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_delete.png -------------------------------------------------------------------------------- /assets/images/icons/ic_discount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_discount.png -------------------------------------------------------------------------------- /assets/images/icons/ic_favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_favorite.png -------------------------------------------------------------------------------- /assets/images/icons/ic_food_express.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_food_express.png -------------------------------------------------------------------------------- /assets/images/icons/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_home.png -------------------------------------------------------------------------------- /assets/images/icons/ic_home_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_home_menu.png -------------------------------------------------------------------------------- /assets/images/icons/ic_near_by.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_near_by.png -------------------------------------------------------------------------------- /assets/images/icons/ic_notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_notification.png -------------------------------------------------------------------------------- /assets/images/icons/ic_popular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_popular.png -------------------------------------------------------------------------------- /assets/images/icons/ic_room.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_room.png -------------------------------------------------------------------------------- /assets/images/icons/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/ic_search.png -------------------------------------------------------------------------------- /assets/images/icons/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/icons/user.png -------------------------------------------------------------------------------- /assets/images/popular_destination/london.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/assets/images/popular_destination/london.jpg -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = com.tarikul.flutterhotelbookingapp; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.tarikul.flutterhotelbookingapp; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = com.tarikul.flutterhotelbookingapp; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tarikul711/flutter_hotel_booking_app_ui_api/43329ac5d9f278f72c22dd6aec7aa9df09680fb3/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 | flutterhotelbookingapp 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/common/animation/fade_route.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FadeRouteBuilder extends PageRouteBuilder { 4 | final Widget page; 5 | 6 | FadeRouteBuilder({@required this.page}) 7 | : super( 8 | pageBuilder: (context, animation1, animation2) => page, 9 | transitionsBuilder: (context, animation1, animation2, child) { 10 | return FadeTransition(opacity: animation1, child: child); 11 | }, 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/animation/rotation_route.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RotationRoute extends PageRouteBuilder { 4 | final Widget page; 5 | 6 | RotationRoute({this.page}) 7 | : super( 8 | pageBuilder: ( 9 | BuildContext context, 10 | Animation animation, 11 | Animation secondaryAnimation, 12 | ) => 13 | page, 14 | transitionDuration: Duration(seconds: 1), 15 | transitionsBuilder: ( 16 | BuildContext context, 17 | Animation animation, 18 | Animation secondaryAnimation, 19 | Widget child, 20 | ) => 21 | RotationTransition( 22 | turns: Tween( 23 | begin: 0.0, 24 | end: 1.0, 25 | ).animate( 26 | CurvedAnimation( 27 | parent: animation, 28 | curve: Curves.linear, 29 | ), 30 | ), 31 | child: child, 32 | ), 33 | ); 34 | } 35 | -------------------------------------------------------------------------------- /lib/common/animation/scale_route.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ScaleRoute extends PageRouteBuilder { 4 | final Widget page; 5 | 6 | ScaleRoute({this.page}) 7 | : super( 8 | pageBuilder: ( 9 | BuildContext context, 10 | Animation animation, 11 | Animation secondaryAnimation, 12 | ) => 13 | page, 14 | transitionsBuilder: ( 15 | BuildContext context, 16 | Animation animation, 17 | Animation secondaryAnimation, 18 | Widget child, 19 | ) => 20 | ScaleTransition( 21 | scale: Tween( 22 | begin: 0.0, 23 | end: 1.0, 24 | ).animate( 25 | CurvedAnimation( 26 | parent: animation, 27 | curve: Curves.fastOutSlowIn, 28 | ), 29 | ), 30 | child: child, 31 | ), 32 | ); 33 | } 34 | -------------------------------------------------------------------------------- /lib/common/components/Section.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Section extends StatelessWidget { 4 | final List horizontalList; 5 | final String title; 6 | 7 | Section({this.title, this.horizontalList}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | child: Column( 13 | children: [ 14 | SectionTitle((this.title != null ) ? this.title : ''), 15 | SingleChildScrollView( 16 | padding: EdgeInsets.only(left: 5.0), 17 | scrollDirection: Axis.horizontal, 18 | child: Row( 19 | children: (this.horizontalList != null ) ? this.horizontalList : [] 20 | ), 21 | ) 22 | ], 23 | ), 24 | ); 25 | } 26 | } 27 | 28 | 29 | class SectionTitle extends StatelessWidget { 30 | final String _text; 31 | 32 | SectionTitle(this._text); 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return Container( 37 | margin: EdgeInsets.only(left: 20.0), 38 | child: Align( 39 | alignment: Alignment.bottomLeft, 40 | child: Text( 41 | this._text, 42 | style: TextStyle( 43 | fontSize: 14.0, 44 | fontWeight: FontWeight.w700, 45 | ), 46 | ), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/common/components/circular_progress.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CircularProgress extends StatefulWidget { 4 | @override 5 | _CircularProgressState createState() => _CircularProgressState(); 6 | } 7 | 8 | class _CircularProgressState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | child: Center( 13 | child: CircularProgressIndicator( 14 | ), 15 | ), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/common/components/hotel_list.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutterhotelbookingapp/common/components/circular_progress.dart'; 4 | import 'package:flutterhotelbookingapp/model/hotel_model.dart'; 5 | import 'package:flutterhotelbookingapp/utils/Urls.dart'; 6 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 7 | import 'package:http/http.dart'; 8 | 9 | class HotelListComponent extends StatefulWidget { 10 | @override 11 | _HotelListComponentState createState() => _HotelListComponentState(); 12 | } 13 | 14 | List hotels = List(); 15 | 16 | class _HotelListComponentState extends State { 17 | bool isLoading = false; 18 | int pageNumber = 1; 19 | 20 | Widget requestForData(String pageNumber) { 21 | print("tarikul requestForData"); 22 | return FutureBuilder( 23 | future: getHotelList(pageNumber), 24 | builder: (context, AsyncSnapshot snapshot) { 25 | switch (snapshot.connectionState) { 26 | case ConnectionState.none: 27 | case ConnectionState.waiting: 28 | return CircularProgress(); 29 | default: 30 | if (snapshot.hasError) 31 | return Text('Error: ${snapshot.error}'); 32 | else 33 | return createListView(context, snapshot); 34 | } 35 | }, 36 | ); 37 | } 38 | 39 | Future _loadData() async { 40 | await new Future.delayed(new Duration(seconds: 2)); 41 | setState(() { 42 | requestForData("2"); 43 | }); 44 | } 45 | 46 | @override 47 | Widget build(BuildContext context) { 48 | return Column( 49 | children: [ 50 | Row( 51 | children: [ 52 | Image.asset("assets/images/icons/ic_room.png", 53 | width: 20, height: 20, color: Color(0xFF3443fa)), 54 | SizedBox( 55 | width: 10, 56 | ), 57 | Text( 58 | "Featured for you", 59 | style: kHeadingextStyle, 60 | ), 61 | ], 62 | ), 63 | NotificationListener( 64 | onNotification: (ScrollNotification scrollInfo) { 65 | print(scrollInfo.metrics.maxScrollExtent); 66 | if (!isLoading && 67 | scrollInfo.metrics.pixels == 68 | scrollInfo.metrics.maxScrollExtent) { 69 | print("tarikul pre noti"); 70 | _loadData(); 71 | // start loading data 72 | setState(() { 73 | print("tarikul noti"); 74 | isLoading = true; 75 | }); 76 | } 77 | }, 78 | child: requestForData("$pageNumber"), 79 | ), 80 | Container( 81 | height: isLoading ? 50.0 : 0, 82 | color: Colors.transparent, 83 | child: Center( 84 | child: new CircularProgressIndicator(), 85 | ), 86 | ), 87 | ], 88 | ); 89 | } 90 | } 91 | 92 | Widget createListView(BuildContext context, AsyncSnapshot snapshot) { 93 | HotelModel hotelModel = snapshot.data; 94 | // hotels = hotelModel.hotels; 95 | hotels.addAll(hotelModel.hotels); 96 | return GridView.count( 97 | crossAxisCount: 2, 98 | physics: ScrollPhysics(), 99 | // to disable GridView's scrolling 100 | shrinkWrap: true, 101 | childAspectRatio: 8.0 / 8.0, 102 | children: List.generate(hotels.length, (index) { 103 | return GridTile( 104 | child: InkResponse( 105 | child: HotelItemCard( 106 | hotel: hotels[index], 107 | ), 108 | onTap: () { 109 | 110 | }, 111 | ), 112 | ); 113 | }), 114 | ); 115 | } 116 | 117 | class HotelItemCard extends StatefulWidget { 118 | Hotel hotel; 119 | 120 | HotelItemCard({this.hotel}); 121 | 122 | @override 123 | _HotelItemCardState createState() => _HotelItemCardState(); 124 | } 125 | 126 | class _HotelItemCardState extends State { 127 | Widget hotelItemDesign(BuildContext context) { 128 | return Container( 129 | margin: EdgeInsets.only(right: 20, top: 10, bottom: 10), 130 | child: ClipRRect( 131 | borderRadius: BorderRadius.circular(15.0), 132 | child: Stack( 133 | children: [ 134 | Positioned.fill( 135 | child: Image.network( 136 | widget.hotel.thumbnail, 137 | fit: BoxFit.cover, 138 | ), 139 | ), 140 | Positioned( 141 | bottom: 0, 142 | left: 0, 143 | right: 0, 144 | child: Container( 145 | padding: EdgeInsets.symmetric(horizontal: 9.0, vertical: 5.0), 146 | decoration: BoxDecoration( 147 | color: Colors.black87.withOpacity(0.4), 148 | borderRadius: BorderRadius.only( 149 | topRight: Radius.circular(15), 150 | ), 151 | ), 152 | child: Column( 153 | crossAxisAlignment: CrossAxisAlignment.start, 154 | children: [ 155 | Text("${widget.hotel.name}", 156 | maxLines: 1, 157 | style: TextStyle( 158 | fontSize: 15, 159 | fontWeight: FontWeight.w500, 160 | color: Color(0xFFFFFFFF))), 161 | Align( 162 | alignment: Alignment.bottomRight, 163 | child: Text( 164 | "BDT ${widget.hotel.rate.toInt()}", 165 | style: TextStyle( 166 | fontSize: 18, 167 | fontWeight: FontWeight.bold, 168 | color: Color(0xFFFFFFFF)), 169 | ), 170 | ), 171 | ], 172 | ), 173 | ), 174 | ) 175 | ], 176 | ), 177 | ), 178 | ); 179 | } 180 | 181 | @override 182 | Widget build(BuildContext context) { 183 | return hotelItemDesign(context); 184 | } 185 | } 186 | 187 | HotelModel hotelModel; 188 | 189 | Future getHotelList(String pageNumber) async { 190 | if (hotelModel == null) { 191 | Response response; 192 | response = await get(Urls.HOTEL_SAMPLE_LIST + pageNumber); 193 | int statusCode = response.statusCode; 194 | final body = json.decode(response.body); 195 | if (statusCode == 200) { 196 | hotelModel = HotelModel.fromJson(body); 197 | return hotelModel; 198 | } else { 199 | return hotelModel = HotelModel(); 200 | } 201 | } else { 202 | return hotelModel; 203 | } 204 | } 205 | -------------------------------------------------------------------------------- /lib/common/components/popular_destination.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutterhotelbookingapp/common/components/Section.dart'; 4 | import 'package:flutterhotelbookingapp/common/components/circular_progress.dart'; 5 | import 'package:flutterhotelbookingapp/model/destination.dart'; 6 | import 'package:flutterhotelbookingapp/screen/place_detail_screen.dart'; 7 | import 'package:flutterhotelbookingapp/utils/Urls.dart'; 8 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 9 | import 'package:http/http.dart'; 10 | 11 | class PopularDestination extends StatefulWidget { 12 | @override 13 | _PopularDestinationState createState() => _PopularDestinationState(); 14 | } 15 | 16 | class _PopularDestinationState extends State { 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | children: [ 21 | Row( 22 | children: [ 23 | Image.asset( 24 | "assets/images/icons/ic_popular.png", 25 | width: 20, 26 | height: 20, 27 | ), 28 | SizedBox( 29 | width: 10, 30 | ), 31 | Text( 32 | "Popular Destinations", 33 | style: kHeadingextStyle, 34 | ), 35 | ], 36 | ), 37 | DestinationList(), 38 | ], 39 | ); 40 | } 41 | } 42 | 43 | class DestinationList extends StatelessWidget { 44 | List generateList(BuildContext context, AsyncSnapshot snapshot) { 45 | List list = []; 46 | int count = 0; 47 | List destinations = snapshot.data; 48 | destinations.forEach((destination) { 49 | Widget element = Container( 50 | margin: EdgeInsets.only(right: 0.0), 51 | child: GestureDetector( 52 | child: PopularDestinationCard( 53 | destination: destination, 54 | ), 55 | onTap: () {}, 56 | ), 57 | ); 58 | list.add(element); 59 | count++; 60 | }); 61 | return list; 62 | } 63 | 64 | @override 65 | Widget build(BuildContext context) { 66 | return FutureBuilder( 67 | future: getDestinationList(), 68 | builder: (context, AsyncSnapshot snapshot) { 69 | switch (snapshot.connectionState) { 70 | case ConnectionState.none: 71 | case ConnectionState.waiting: 72 | return CircularProgress(); 73 | default: 74 | if (snapshot.hasError) 75 | return Text('Error: ${snapshot.error}'); 76 | else 77 | return Section( 78 | horizontalList: this.generateList(context, snapshot), 79 | ); 80 | } 81 | }, 82 | ); 83 | } 84 | } 85 | 86 | class PopularDestinationCard extends StatefulWidget { 87 | Destination destination; 88 | 89 | PopularDestinationCard({this.destination}); 90 | 91 | @override 92 | _PopularDestinationCardState createState() => _PopularDestinationCardState(); 93 | } 94 | 95 | class _PopularDestinationCardState extends State { 96 | @override 97 | Widget build(BuildContext context) { 98 | Size size = MediaQuery.of(context).size; 99 | double localWidth = size.width * 0.75; 100 | return InkResponse( 101 | onTap: () { 102 | Navigator.of(context).push( 103 | PageRouteBuilder( 104 | pageBuilder: (BuildContext context, Animation animation, 105 | Animation secondaryAnimation) { 106 | return AnimatedBuilder( 107 | animation: animation, 108 | builder: (BuildContext context, Widget child) { 109 | return PlaceDetailScreen( 110 | heroTag: "${widget.destination.name}", 111 | imageAsset: "${widget.destination.image}", 112 | ); 113 | }); 114 | }, 115 | ), 116 | ); 117 | }, 118 | child: Container( 119 | margin: EdgeInsets.only(right: 15), 120 | padding: EdgeInsets.all(20), 121 | width: 140, 122 | height: 120, 123 | decoration: BoxDecoration( 124 | borderRadius: BorderRadius.circular(16), 125 | image: DecorationImage( 126 | image: NetworkImage(widget.destination.image), 127 | fit: BoxFit.fill, 128 | ), 129 | ), 130 | child: Padding( 131 | padding: EdgeInsets.only(top: 35), 132 | child: Container( 133 | alignment: Alignment.bottomCenter, 134 | child: Column( 135 | children: [ 136 | Container( 137 | color: Colors.black87.withOpacity(0.12), 138 | child: Text( 139 | widget.destination.name, 140 | style: kTitleTextStyle.copyWith( 141 | fontSize: 18, 142 | ), 143 | ), 144 | ), 145 | Container( 146 | color: Colors.black87.withOpacity(0.12), 147 | child: Text( 148 | "${widget.destination.hotelCount} Hotels", 149 | style: kTitleTextStyle.copyWith( 150 | fontSize: 14, 151 | shadows: [ 152 | Shadow( 153 | offset: Offset(3.0, 3.0), 154 | blurRadius: 30.0, 155 | color: Color.fromARGB(255, 0, 0, 0), 156 | ), 157 | ], 158 | ), 159 | ), 160 | ), 161 | ], 162 | ), 163 | ), 164 | )), 165 | ); 166 | } 167 | } 168 | 169 | List destinations; 170 | 171 | Future> getDestinationList() async { 172 | if (destinations == null) { 173 | Response response; 174 | response = await get(Urls.POPULAR_DESTINATION); 175 | int statusCode = response.statusCode; 176 | final body = json.decode(response.body); 177 | if (statusCode == 200) { 178 | destinations = 179 | (body as List).map((i) => Destination.fromJson(i)).toList(); 180 | 181 | return destinations; 182 | } else { 183 | return destinations = List(); 184 | } 185 | } else { 186 | return destinations; 187 | } 188 | } 189 | -------------------------------------------------------------------------------- /lib/common/components/sliding_bottom_sheet.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math' as math; 2 | import 'dart:ui'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutterhotelbookingapp/common/components/hotel_list.dart'; 5 | import 'package:flutterhotelbookingapp/common/components/sliding_bottom_sheet_content.dart'; 6 | import 'package:flutterhotelbookingapp/utils/theme.dart'; 7 | 8 | class SlidingBottomSheet extends StatefulWidget { 9 | final AnimationController controller; 10 | final double cornerRadius; 11 | 12 | SlidingBottomSheet({this.controller, this.cornerRadius}); 13 | 14 | @override 15 | _SlidingBottomSheetState createState() => _SlidingBottomSheetState( 16 | bottomSheetController: controller, cornerRadius: cornerRadius); 17 | } 18 | 19 | class _SlidingBottomSheetState extends State 20 | with SingleTickerProviderStateMixin { 21 | final AnimationController bottomSheetController; 22 | final double cornerRadius; 23 | 24 | _SlidingBottomSheetState({this.bottomSheetController, this.cornerRadius}); 25 | 26 | double get halfScreen => MediaQuery.of(context).size.height / 3; 27 | 28 | double get fullScreen => MediaQuery.of(context).size.height; 29 | 30 | @override 31 | void initState() { 32 | super.initState(); 33 | Future.delayed(Duration(milliseconds: 200)).then((v) { 34 | _animateToInitial(); 35 | }); 36 | } 37 | 38 | @override 39 | void dispose() { 40 | bottomSheetController.dispose(); 41 | super.dispose(); 42 | } 43 | 44 | double lerp(double min, double max) => 45 | lerpDouble(min, max, bottomSheetController.value); 46 | 47 | void _animateToInitial() { 48 | bottomSheetController.animateTo(0.5, duration: Duration(milliseconds: 250)); 49 | } 50 | 51 | @override 52 | Widget build(BuildContext context) { 53 | final themeData = ApplicationThemeProvider.get(); 54 | return AnimatedBuilder( 55 | animation: bottomSheetController, 56 | builder: (context, child) { 57 | final double topMargin = 20; 58 | double topMarginAnimatedValue = 59 | (1 - bottomSheetController.value) * topMargin * 2; 60 | final radiusAnimatedValue = Radius.circular( 61 | (1 - bottomSheetController.value) * cornerRadius * 1.5); 62 | final double bottomSheetDragIndicatorWidth = 76; 63 | double bottomSheetDragIndicatorWidthUpdatedValue = 64 | (1 - bottomSheetController.value) * 65 | (bottomSheetDragIndicatorWidth * 2); 66 | return Positioned( 67 | height: bottomSheetController.value * fullScreen + 150, 68 | bottom: 0, 69 | left: 0, 70 | right: 0, 71 | child: GestureDetector( 72 | onVerticalDragUpdate: _handleDragUpdate, 73 | onVerticalDragEnd: _handleDragEnd, 74 | child: WillPopScope( 75 | onWillPop: () async { 76 | if (bottomSheetController.value > 0.5) { 77 | await bottomSheetController.animateTo(0.5, 78 | duration: Duration(milliseconds: 150)); 79 | return false; 80 | } else { 81 | await bottomSheetController.animateTo(0, 82 | duration: Duration(milliseconds: 150)); 83 | return true; 84 | } 85 | }, 86 | child: Scaffold( 87 | backgroundColor: Colors.transparent, 88 | body: AnimatedContainer( 89 | duration: Duration(milliseconds: 200), 90 | decoration: BoxDecoration( 91 | color: Colors.white, 92 | borderRadius: 93 | BorderRadius.vertical(top: radiusAnimatedValue)), 94 | child: Stack(children: [ 95 | AnimatedPositioned( 96 | duration: Duration(milliseconds: 200), 97 | top: topMarginAnimatedValue, 98 | left: 0, 99 | right: 0, 100 | child: Center( 101 | child: Container( 102 | alignment: Alignment.center, 103 | decoration: BoxDecoration( 104 | color: themeData.textTheme.display4.color, 105 | borderRadius: BorderRadius.circular(3), 106 | ), 107 | height: 4, 108 | width: bottomSheetDragIndicatorWidthUpdatedValue, 109 | ), 110 | ), 111 | ), 112 | Padding(padding:EdgeInsets.only(left: 20,top: 50),child: HotelListComponent()) 113 | // BottomSheetContent(controller: bottomSheetController) 114 | ]), 115 | ), 116 | ), 117 | ), 118 | ), 119 | ); 120 | }, 121 | ); 122 | } 123 | 124 | void _handleDragUpdate(DragUpdateDetails details) { 125 | double dragSpeedToScreenSizeRatio = details.primaryDelta / fullScreen; 126 | double bottomSheetUpdatedValue = 127 | bottomSheetController.value - dragSpeedToScreenSizeRatio; 128 | 129 | if (bottomSheetUpdatedValue >= 0.5) { 130 | bottomSheetController.value = bottomSheetUpdatedValue; 131 | } 132 | } 133 | 134 | void _handleDragEnd(DragEndDetails details) { 135 | if (bottomSheetController.isAnimating || 136 | bottomSheetController.status == AnimationStatus.completed) return; 137 | 138 | final double flingVelocity = 139 | details.velocity.pixelsPerSecond.dy / fullScreen; 140 | if (flingVelocity < 0.0) { 141 | bottomSheetController.fling(velocity: math.max(1.0, -flingVelocity)); 142 | } else if (flingVelocity > 0.0) { 143 | bottomSheetController.animateTo(0.5, 144 | duration: Duration(milliseconds: 250)); 145 | } else { 146 | _animateToInitial(); 147 | } 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /lib/common/components/sliding_bottom_sheet_content.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/utils/parallax_page_view.dart'; 3 | import 'package:flutterhotelbookingapp/utils/theme.dart'; 4 | 5 | class BottomSheetContent extends StatelessWidget { 6 | final AnimationController controller; 7 | 8 | BottomSheetContent({this.controller}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | final themeData = ApplicationThemeProvider.get(); 13 | final double topPaddingMax = 44; 14 | final double topPaddingMin = MediaQuery.of(context).padding.top; 15 | double topMarginAnimatedValue = (1 - controller.value) * topPaddingMax * 2; 16 | double topMarginUpdatedValue = topMarginAnimatedValue <= topPaddingMin 17 | ? topPaddingMin 18 | : topMarginAnimatedValue; 19 | return AnimatedContainer( 20 | duration: Duration(milliseconds: 200), 21 | child: Padding( 22 | padding: EdgeInsets.only(top: topMarginUpdatedValue), 23 | child: LayoutBuilder( 24 | builder: (context, constraints) { 25 | return ScrollConfiguration( 26 | behavior: OverScrollBehavior(), 27 | child: SingleChildScrollView( 28 | child: ConstrainedBox( 29 | constraints: BoxConstraints(minHeight: constraints.maxHeight), 30 | child: IntrinsicHeight( 31 | child: Padding( 32 | padding: const EdgeInsets.symmetric(horizontal: 20), 33 | child: Column( 34 | mainAxisSize: MainAxisSize.max, 35 | crossAxisAlignment: CrossAxisAlignment.start, 36 | children: [ 37 | Row( 38 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 39 | children: [ 40 | Text( 41 | "The Curtain Hotel", 42 | style: TextStyle( 43 | color: themeData.primaryColorLight, 44 | fontSize: 24), 45 | ), 46 | Container( 47 | child: Row( 48 | children: [ 49 | Icon( 50 | Icons.star, 51 | size: 15, 52 | color: themeData.disabledColor, 53 | ), 54 | const SizedBox(width: 3), 55 | Text( 56 | "5.0", 57 | style: TextStyle( 58 | fontSize: 16, 59 | color: themeData.disabledColor, 60 | ), 61 | ), 62 | ], 63 | ), 64 | ), 65 | ], 66 | ), 67 | const SizedBox(height: 5), 68 | Row( 69 | children: [ 70 | Icon( 71 | Icons.local_airport, 72 | size: 20, 73 | color: themeData.textTheme.display3.color, 74 | ), 75 | const SizedBox(width: 5), 76 | Text("45 Curtain Road, London EC2A 3PT"), 77 | ], 78 | ), 79 | const SizedBox(height: 18), 80 | Text( 81 | "DETAILS", 82 | style: TextStyle(letterSpacing: 1), 83 | ), 84 | const SizedBox(height: 5), 85 | Text( 86 | "It’s only fitting that a five-star hotel bar has a five-star decor scheme and London’s Green Room certainly does not disappoint when it comes to the latter. Velvet upholstery, sleek, brass accents, and vibrantly colorful floral motifs are just a Read more", 87 | style: TextStyle(height: 1.4), 88 | ), 89 | const SizedBox(height: 20), 90 | Text( 91 | "FACILITIES", 92 | style: TextStyle(letterSpacing: 1), 93 | ), 94 | const SizedBox(height: 8), 95 | Row( 96 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 97 | children: [Text("StubData().facilities")], 98 | ), 99 | const SizedBox(height: 32), 100 | Row( 101 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 102 | children: [ 103 | Column( 104 | crossAxisAlignment: CrossAxisAlignment.start, 105 | children: [ 106 | Text( 107 | "CHECK IN", 108 | style: TextStyle(letterSpacing: 1), 109 | ), 110 | const SizedBox(height: 8), 111 | Text( 112 | "14:00 AM", 113 | style: themeData.textTheme.display1, 114 | ), 115 | ], 116 | ), 117 | Column( 118 | crossAxisAlignment: CrossAxisAlignment.start, 119 | children: [ 120 | Text( 121 | "CHECK OUT", 122 | style: TextStyle(letterSpacing: 1), 123 | ), 124 | const SizedBox(height: 8), 125 | Text( 126 | "12:00 AM", 127 | style: themeData.textTheme.display1, 128 | ), 129 | ], 130 | ), 131 | ], 132 | ), 133 | const SizedBox(height: 68), 134 | ], 135 | ), 136 | ), 137 | ), 138 | ), 139 | ), 140 | ); 141 | }, 142 | ), 143 | ), 144 | ); 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /lib/common/components/special_offer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/common/components/Section.dart'; 3 | import 'package:flutterhotelbookingapp/model/deal.dart'; 4 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 5 | 6 | class SpecialOfferComponent extends StatefulWidget { 7 | @override 8 | _SpecialOfferComponentState createState() => _SpecialOfferComponentState(); 9 | } 10 | 11 | class _SpecialOfferComponentState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return Column( 15 | children: [ 16 | Row( 17 | children: [ 18 | Image.asset( 19 | "assets/images/icons/ic_discount.png", 20 | width: 20, 21 | height: 20, 22 | color: Color(0xFF3443fa), 23 | ), 24 | SizedBox( 25 | width: 10, 26 | ), 27 | Text( 28 | "Special Offer", 29 | style: kHeadingextStyle, 30 | ), 31 | Spacer(), 32 | Text( 33 | "See All", 34 | style: kSubheadingextStyle.copyWith( 35 | color: Color(0xFF282b3a), fontWeight: FontWeight.w500), 36 | ), 37 | SizedBox( 38 | width: 10, 39 | ), 40 | Container( 41 | padding: EdgeInsets.only(top: 7), 42 | child: Icon( 43 | Icons.arrow_forward, 44 | color: Color(0xFF3443fa), 45 | size: 20, 46 | ), 47 | ), 48 | SizedBox( 49 | width: 10, 50 | ), 51 | ], 52 | ), 53 | SpecialOfferList() 54 | ], 55 | ); 56 | } 57 | } 58 | 59 | class SpecialOfferList extends StatelessWidget { 60 | List generateList(BuildContext context) { 61 | List list = []; 62 | int count = 0; 63 | List dealModels = [ 64 | DealModel("1", "assets/images/deal/deal1.jpg"), 65 | DealModel("2", "assets/images/deal/deal2.jpg"), 66 | DealModel("2", "assets/images/deal/deal3.jpg"), 67 | DealModel("2", "assets/images/deal/deal4.jpg"), 68 | DealModel("2", "assets/images/deal/deal5.jpg"), 69 | DealModel("2", "assets/images/deal/deal6.jpg"), 70 | DealModel("2", "assets/images/deal/deal7.jpg"), 71 | DealModel("2", "assets/images/deal/deal8.jpg"), 72 | ]; 73 | dealModels.forEach((dealModel) { 74 | Widget element = Container( 75 | margin: EdgeInsets.only(right: 0.0), 76 | child: GestureDetector( 77 | child: SpecialOfferCard( 78 | dealModel: dealModel, 79 | ), 80 | onTap: () {}, 81 | ), 82 | ); 83 | list.add(element); 84 | count++; 85 | }); 86 | return list; 87 | } 88 | 89 | @override 90 | Widget build(BuildContext context) { 91 | return Section( 92 | horizontalList: this.generateList(context), 93 | ); 94 | } 95 | } 96 | 97 | class SpecialOfferCard extends StatefulWidget { 98 | DealModel dealModel; 99 | 100 | SpecialOfferCard({this.dealModel}); 101 | 102 | @override 103 | _SpecialOfferCardState createState() => _SpecialOfferCardState(); 104 | } 105 | 106 | class _SpecialOfferCardState extends State { 107 | @override 108 | Widget build(BuildContext context) { 109 | Size size = MediaQuery.of(context).size; 110 | double localWidth = size.width * 0.75; 111 | return Container( 112 | margin: EdgeInsets.only(right: 15), 113 | padding: EdgeInsets.all(0), 114 | width: 250, 115 | height: 145, 116 | decoration: BoxDecoration( 117 | borderRadius: BorderRadius.circular(16), 118 | image: DecorationImage( 119 | image: AssetImage(widget.dealModel.image), 120 | fit: BoxFit.fill, 121 | ), 122 | ), 123 | child: Padding( 124 | padding: EdgeInsets.only(top: 55), 125 | child: Container( 126 | alignment: Alignment.bottomCenter, 127 | child: Column( 128 | children: [ 129 | Container( 130 | 131 | ), 132 | ], 133 | ), 134 | ), 135 | )); 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /lib/common/widgets/appbar_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | Widget appBarWidget(context) { 4 | return Row( 5 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 6 | children: [ 7 | Image.asset("assets/images/icons/ic_home_menu.png",width: 24,height: 24,color: Colors.black87,), 8 | Padding(padding:EdgeInsets.only(right: 20),child: Image.asset("assets/images/icons/user.png",width: 34,height: 34,)), 9 | ], 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /lib/common/widgets/blur_icon.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutterhotelbookingapp/utils/theme.dart'; 5 | 6 | class BlurIcon extends StatelessWidget { 7 | final double width; 8 | final double height; 9 | final EdgeInsets padding; 10 | final Icon icon; 11 | 12 | BlurIcon({this.width = 32, this.height = 32, this.icon, this.padding}); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | final themeData = ApplicationThemeProvider.get(); 17 | return ClipOval( 18 | child: BackdropFilter( 19 | filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0), 20 | child: Padding( 21 | padding: padding == null ? EdgeInsets.all(0) : padding, 22 | child: Container( 23 | width: width, 24 | height: height, 25 | decoration: BoxDecoration( 26 | shape: BoxShape.circle, 27 | color: themeData.hoverColor, 28 | ), 29 | child: Center(child: icon), 30 | ), 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/common/widgets/search_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 3 | 4 | class SearchWidget extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Padding( 8 | padding: EdgeInsets.only(right: 20), 9 | child: Container( 10 | margin: EdgeInsets.symmetric(vertical: 0), 11 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 16), 12 | height: 60, 13 | width: double.infinity, 14 | decoration: BoxDecoration( 15 | color: Color(0xFFF5F5F7), 16 | borderRadius: BorderRadius.circular(40), 17 | ), 18 | child: Row( 19 | children: [ 20 | Image.asset("assets/images/icons/ic_search.png",color: kSearchIconColor,), 21 | SizedBox(width: 16), 22 | Text( 23 | "Search your destination / hotel", 24 | style: TextStyle( 25 | fontSize: 14, 26 | color: Color(0xFF444444), 27 | ), 28 | ) 29 | ], 30 | ), 31 | ), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/screen/main_screen_controller.dart'; 3 | import 'package:flutter/services.dart'; 4 | 5 | void main() => runApp(MaterialApp( 6 | debugShowCheckedModeBanner: false, 7 | theme: ThemeData( 8 | fontFamily: 'PlayfairDisplay', hintColor: Color(0xFFd0cece)), 9 | home: MainScreenController(), 10 | 11 | )); 12 | -------------------------------------------------------------------------------- /lib/model/deal.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class DealModel { 4 | String id; 5 | String image; 6 | 7 | DealModel(@required this.id, @required this.image); 8 | } 9 | -------------------------------------------------------------------------------- /lib/model/destination.dart: -------------------------------------------------------------------------------- 1 | class Destination { 2 | int id; 3 | String name; 4 | String slug; 5 | int hotelCount; 6 | String image; 7 | String thingsToDo; 8 | String lat; 9 | String lng; 10 | 11 | Destination( 12 | {this.id, 13 | this.name, 14 | this.slug, 15 | this.hotelCount, 16 | this.image, 17 | this.thingsToDo, 18 | this.lat, 19 | this.lng}); 20 | 21 | Destination.fromJson(Map json) { 22 | id = json['id']; 23 | name = json['name']; 24 | slug = json['slug']; 25 | hotelCount = json['hotel_count']; 26 | image = json['image']; 27 | thingsToDo = json['things_to_do']; 28 | lat = json['lat']; 29 | lng = json['lng']; 30 | } 31 | 32 | Map toJson() { 33 | final Map data = new Map(); 34 | data['id'] = this.id; 35 | data['name'] = this.name; 36 | data['slug'] = this.slug; 37 | data['hotel_count'] = this.hotelCount; 38 | data['image'] = this.image; 39 | data['things_to_do'] = this.thingsToDo; 40 | data['lat'] = this.lat; 41 | data['lng'] = this.lng; 42 | return data; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/model/hotel_model.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | // final hotelModel = hotelModelFromJson(jsonString); 4 | HotelModel hotelModelFromJson(String str) => 5 | HotelModel.fromJson(json.decode(str)); 6 | 7 | String hotelModelToJson(HotelModel data) => json.encode(data.toJson()); 8 | 9 | class HotelModel { 10 | List specialAmenities; 11 | Facets facets; 12 | int total; 13 | int page; 14 | List hotels; 15 | 16 | HotelModel({ 17 | this.specialAmenities, 18 | this.facets, 19 | this.total, 20 | this.page, 21 | this.hotels, 22 | }); 23 | 24 | factory HotelModel.fromJson(Map json) => HotelModel( 25 | specialAmenities: 26 | List.from(json["special_amenities"].map((x) => x)), 27 | facets: Facets.fromJson(json["facets"]), 28 | total: json["total"], 29 | page: json["page"], 30 | hotels: List.from(json["hotels"].map((x) => Hotel.fromJson(x))), 31 | ); 32 | 33 | Map toJson() => { 34 | "special_amenities": List.from(specialAmenities.map((x) => x)), 35 | "facets": facets.toJson(), 36 | "total": total, 37 | "page": page, 38 | "hotels": List.from(hotels.map((x) => x.toJson())), 39 | }; 40 | } 41 | 42 | class Facets { 43 | List> neighborhood; 44 | List> features; 45 | List neighborhoodModels; 46 | List propertyTypeModels; 47 | List featuresModels; 48 | List> propertyType; 49 | 50 | Facets({ 51 | this.neighborhood, 52 | this.features, 53 | this.neighborhoodModels, 54 | this.propertyTypeModels, 55 | this.featuresModels, 56 | this.propertyType, 57 | }); 58 | 59 | factory Facets.fromJson(Map json) => Facets( 60 | neighborhood: List>.from( 61 | json["neighborhood"].map((x) => List.from(x.map((x) => x)))), 62 | features: List>.from( 63 | json["features"].map((x) => List.from(x.map((x) => x)))), 64 | neighborhoodModels: List.from( 65 | json["neighborhood_models"].map((x) => Model.fromJson(x))), 66 | propertyTypeModels: List.from( 67 | json["property_type_models"].map((x) => Model.fromJson(x))), 68 | featuresModels: List.from( 69 | json["features_models"].map((x) => FeaturesModel.fromJson(x))), 70 | propertyType: List>.from( 71 | json["property_type"].map((x) => List.from(x.map((x) => x)))), 72 | ); 73 | 74 | Map toJson() => { 75 | "neighborhood": List.from( 76 | neighborhood.map((x) => List.from(x.map((x) => x)))), 77 | "features": List.from( 78 | features.map((x) => List.from(x.map((x) => x)))), 79 | "neighborhood_models": 80 | List.from(neighborhoodModels.map((x) => x.toJson())), 81 | "property_type_models": 82 | List.from(propertyTypeModels.map((x) => x.toJson())), 83 | "features_models": 84 | List.from(featuresModels.map((x) => x.toJson())), 85 | "property_type": List.from( 86 | propertyType.map((x) => List.from(x.map((x) => x)))), 87 | }; 88 | } 89 | 90 | class FeaturesModel { 91 | String icon; 92 | int id; 93 | String name; 94 | 95 | FeaturesModel({ 96 | this.icon, 97 | this.id, 98 | this.name, 99 | }); 100 | 101 | factory FeaturesModel.fromJson(Map json) => FeaturesModel( 102 | icon: json["icon"], 103 | id: json["id"], 104 | name: json["name"], 105 | ); 106 | 107 | Map toJson() => { 108 | "icon": icon, 109 | "id": id, 110 | "name": name, 111 | }; 112 | } 113 | 114 | class Model { 115 | int id; 116 | String name; 117 | 118 | Model({ 119 | this.id, 120 | this.name, 121 | }); 122 | 123 | factory Model.fromJson(Map json) => Model( 124 | id: json["id"], 125 | name: json["name"], 126 | ); 127 | 128 | Map toJson() => { 129 | "id": id, 130 | "name": name, 131 | }; 132 | } 133 | 134 | class Hotel { 135 | int rating; 136 | List payInfo; 137 | String pin; 138 | String cancellationPolicy; 139 | double rate; 140 | CheckTime checkInTime; 141 | bool image360Enabled; 142 | String id; 143 | int hasPanoramaImages; 144 | int reviewCount; 145 | dynamic review; 146 | CheckTime checkOutTime; 147 | List amenities; 148 | String location; 149 | Offline offline; 150 | Type type; 151 | String thumbnail; 152 | double locationRating; 153 | String tags; 154 | bool crsSpecial; 155 | double minRate; 156 | String slug; 157 | String name; 158 | double discount; 159 | List vatTax; 160 | 161 | Hotel({ 162 | this.rating, 163 | this.payInfo, 164 | this.pin, 165 | this.cancellationPolicy, 166 | this.rate, 167 | this.checkInTime, 168 | this.image360Enabled, 169 | this.id, 170 | this.hasPanoramaImages, 171 | this.reviewCount, 172 | this.review, 173 | this.checkOutTime, 174 | this.amenities, 175 | this.location, 176 | this.offline, 177 | this.type, 178 | this.thumbnail, 179 | this.locationRating, 180 | this.tags, 181 | this.crsSpecial, 182 | this.minRate, 183 | this.slug, 184 | this.name, 185 | this.discount, 186 | this.vatTax, 187 | }); 188 | 189 | factory Hotel.fromJson(Map json) => Hotel( 190 | rating: json["rating"], 191 | payInfo: List.from(json["pay_info"].map((x) => x)), 192 | pin: json["pin"], 193 | cancellationPolicy: json["cancellation_policy"] == null 194 | ? null 195 | : json["cancellation_policy"], 196 | rate: json["rate"].toDouble(), 197 | checkInTime: checkTimeValues.map[json["check_in_time"]], 198 | image360Enabled: json["image_360_enabled"], 199 | id: json["id"], 200 | hasPanoramaImages: json["hasPanoramaImages"], 201 | reviewCount: json["review_count"], 202 | review: json["review"], 203 | checkOutTime: checkTimeValues.map[json["check_out_time"]], 204 | amenities: List.from(json["amenities"].map((x) => x)), 205 | location: json["location"], 206 | offline: Offline.fromJson(json["offline"]), 207 | type: typeValues.map[json["type"]], 208 | thumbnail: json["thumbnail"], 209 | locationRating: json["location_rating"].toDouble(), 210 | tags: json["tags"], 211 | crsSpecial: json["crs_special"], 212 | minRate: json["min_rate"].toDouble(), 213 | slug: json["slug"], 214 | name: json["name"], 215 | discount: json["discount"].toDouble(), 216 | vatTax: List.from(json["vat_tax"].map((x) => x)), 217 | ); 218 | 219 | Map toJson() => { 220 | "rating": rating, 221 | "pay_info": List.from(payInfo.map((x) => x)), 222 | "pin": pin, 223 | "cancellation_policy": 224 | cancellationPolicy == null ? null : cancellationPolicy, 225 | "rate": rate, 226 | "check_in_time": checkTimeValues.reverse[checkInTime], 227 | "image_360_enabled": image360Enabled, 228 | "id": id, 229 | "hasPanoramaImages": hasPanoramaImages, 230 | "review_count": reviewCount, 231 | "review": review, 232 | "check_out_time": checkTimeValues.reverse[checkOutTime], 233 | "amenities": List.from(amenities.map((x) => x)), 234 | "location": location, 235 | "offline": offline.toJson(), 236 | "type": typeValues.reverse[type], 237 | "thumbnail": thumbnail, 238 | "location_rating": locationRating, 239 | "tags": tags, 240 | "crs_special": crsSpecial, 241 | "min_rate": minRate, 242 | "slug": slug, 243 | "name": name, 244 | "discount": discount, 245 | "vat_tax": List.from(vatTax.map((x) => x)), 246 | }; 247 | } 248 | 249 | enum CheckTime { THE_1200_PM, THE_1130_AM, THE_1100_AM } 250 | 251 | final checkTimeValues = EnumValues({ 252 | "11:00 AM": CheckTime.THE_1100_AM, 253 | "11:30 AM": CheckTime.THE_1130_AM, 254 | "12:00 PM": CheckTime.THE_1200_PM 255 | }); 256 | 257 | class Offline { 258 | bool status; 259 | DisplayText displayText; 260 | 261 | Offline({ 262 | this.status, 263 | this.displayText, 264 | }); 265 | 266 | factory Offline.fromJson(Map json) => Offline( 267 | status: json["status"], 268 | displayText: displayTextValues.map[json["display_text"]], 269 | ); 270 | 271 | Map toJson() => { 272 | "status": status, 273 | "display_text": displayTextValues.reverse[displayText], 274 | }; 275 | } 276 | 277 | enum DisplayText { CONTACT_US, EMPTY } 278 | 279 | final displayTextValues = 280 | EnumValues({"Contact Us": DisplayText.CONTACT_US, "": DisplayText.EMPTY}); 281 | 282 | enum Type { HOTEL, GUEST_HOUSE, MOTEL } 283 | 284 | final typeValues = EnumValues({ 285 | "Guest House": Type.GUEST_HOUSE, 286 | "Hotel": Type.HOTEL, 287 | "Motel": Type.MOTEL 288 | }); 289 | 290 | class EnumValues { 291 | Map map; 292 | Map reverseMap; 293 | 294 | EnumValues(this.map); 295 | 296 | Map get reverse { 297 | if (reverseMap == null) { 298 | reverseMap = map.map((k, v) => new MapEntry(v, k)); 299 | } 300 | return reverseMap; 301 | } 302 | } 303 | -------------------------------------------------------------------------------- /lib/screen/home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/common/components/hotel_list.dart'; 3 | import 'package:flutterhotelbookingapp/common/components/popular_destination.dart'; 4 | import 'package:flutterhotelbookingapp/common/components/special_offer.dart'; 5 | import 'package:flutterhotelbookingapp/common/widgets/appbar_widget.dart'; 6 | import 'package:flutterhotelbookingapp/common/widgets/search_widget.dart'; 7 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 8 | 9 | class HomeScreen extends StatefulWidget { 10 | @override 11 | _HomeScreenState createState() => _HomeScreenState(); 12 | } 13 | 14 | class _HomeScreenState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | return SingleChildScrollView( 18 | child: Padding( 19 | padding: EdgeInsets.only(left: 20, top: 35), 20 | child: Column( 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | appBarWidget(context), 24 | SizedBox(height: 10), 25 | Text("Hi Tarikul!", style: kHeadingextStyle), 26 | Row( 27 | children: [ 28 | Text("You are in ".toUpperCase(), style: kSubheadingextStyle), 29 | Text("Dhaka, Bangladesh".toUpperCase(), 30 | style: kHighlitedSubheadingTextStyle), 31 | ], 32 | ), 33 | SizedBox(height: 10), 34 | SearchWidget(), 35 | SizedBox(height: 10), 36 | PopularDestination(), 37 | SizedBox(height: 15), 38 | SpecialOfferComponent(), 39 | SizedBox(height: 15), 40 | HotelListComponent(), 41 | SizedBox(height: 10), 42 | ], 43 | ), 44 | ), 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/screen/main_screen_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutterhotelbookingapp/common/widgets/appbar_widget.dart'; 4 | import 'package:flutterhotelbookingapp/screen/home_screen.dart'; 5 | import 'package:flutterhotelbookingapp/screen/search_screen.dart'; 6 | import 'package:flutterhotelbookingapp/utils/constants.dart'; 7 | import 'package:flutterhotelbookingapp/utils/theme.dart'; 8 | 9 | class MainScreenController extends StatefulWidget { 10 | @override 11 | _MainScreenControllerState createState() => _MainScreenControllerState(); 12 | } 13 | 14 | class _MainScreenControllerState extends State 15 | with TickerProviderStateMixin { 16 | TabController _controller; 17 | final List tabBarScreens = [ 18 | HomeScreen(), 19 | SearchScreen(), 20 | SearchScreen(), 21 | SearchScreen(), 22 | ]; 23 | 24 | @override 25 | void initState() { 26 | // TODO: implement initState 27 | super.initState(); 28 | _controller = TabController( 29 | length: tabBarScreens.length, vsync: this, initialIndex: 0); 30 | } 31 | 32 | @override 33 | void dispose() { 34 | _controller.dispose(); 35 | super.dispose(); 36 | } 37 | 38 | @override 39 | Widget build(BuildContext context) { 40 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( 41 | statusBarColor: Colors.transparent, 42 | statusBarIconBrightness: Brightness.dark)); 43 | final themeData = ApplicationThemeProvider.get(); 44 | return Scaffold( 45 | backgroundColor: themeData.scaffoldBackgroundColor, 46 | body: TabBarView( 47 | controller: _controller, 48 | children: tabBarScreens, 49 | physics: NeverScrollableScrollPhysics(), 50 | ), 51 | bottomNavigationBar: TabBar( 52 | controller: _controller, 53 | indicatorSize: TabBarIndicatorSize.label, 54 | indicatorColor: Colors.transparent, 55 | isScrollable: false, 56 | tabs: [ 57 | _buildTabIcon("assets/images/icons/ic_home.png", 0, themeData), 58 | _buildTabIcon("assets/images/icons/ic_search.png", 1, themeData), 59 | _buildTabIcon("assets/images/icons/ic_favorite.png", 2, themeData), 60 | _buildTabIcon("assets/images/icons/ic_cart.png", 3, themeData), 61 | ], 62 | onTap: (index) { 63 | setState(() {}); 64 | }, 65 | ), 66 | ); 67 | } 68 | 69 | Widget _buildTabIcon(String assetName, int index, ThemeData themeData) { 70 | return Tab( 71 | icon: Image.asset( 72 | assetName, 73 | width: kBottomItemSize, 74 | height: kBottomItemSize, 75 | color: index == _controller.index 76 | ? themeData.accentColor 77 | : themeData.bottomAppBarColor, 78 | ), 79 | ); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /lib/screen/place_detail_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/common/components/sliding_bottom_sheet.dart'; 3 | import 'package:flutterhotelbookingapp/common/widgets/blur_icon.dart'; 4 | import 'package:flutterhotelbookingapp/utils/parallax_page_view.dart'; 5 | import 'package:flutterhotelbookingapp/utils/theme.dart'; 6 | import 'package:page_indicator/page_indicator.dart'; 7 | import 'package:rect_getter/rect_getter.dart'; 8 | 9 | class PlaceDetailScreen extends StatefulWidget { 10 | final String heroTag; 11 | final String imageAsset; 12 | 13 | PlaceDetailScreen({ 14 | this.heroTag, 15 | this.imageAsset, 16 | }); 17 | 18 | @override 19 | _PlaceDetailScreenState createState() => 20 | _PlaceDetailScreenState(heroTag: heroTag, imageAsset: imageAsset); 21 | } 22 | 23 | class _PlaceDetailScreenState extends State 24 | with SingleTickerProviderStateMixin { 25 | final String heroTag; 26 | final String imageAsset; 27 | final double bottomSheetCornerRadius = 50; 28 | 29 | final Duration animationDuration = Duration(milliseconds: 600); 30 | final Duration delay = Duration(milliseconds: 300); 31 | GlobalKey rectGetterKey = RectGetter.createGlobalKey(); 32 | Rect rect; 33 | 34 | _PlaceDetailScreenState({ 35 | this.heroTag, 36 | this.imageAsset, 37 | }); 38 | 39 | static double bookButtonBottomOffset = -60; 40 | double bookButtonBottom = bookButtonBottomOffset; 41 | AnimationController _bottomSheetController; 42 | 43 | @override 44 | void initState() { 45 | super.initState(); 46 | _bottomSheetController = AnimationController( 47 | vsync: this, 48 | duration: Duration(milliseconds: 250), 49 | ); 50 | Future.delayed(Duration(milliseconds: 700)).then((v) { 51 | setState(() { 52 | bookButtonBottom = 0; 53 | }); 54 | }); 55 | } 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | final themeData = ApplicationThemeProvider.get(); 60 | final coverImageHeightCalc = 61 | MediaQuery.of(context).size.height / 3 + bottomSheetCornerRadius; 62 | return WillPopScope( 63 | onWillPop: () async { 64 | if (_bottomSheetController.value <= 0.5) { 65 | setState(() { 66 | bookButtonBottom = bookButtonBottomOffset; 67 | }); 68 | } 69 | return true; 70 | }, 71 | child: Scaffold( 72 | body: Stack( 73 | children: [ 74 | Container(), 75 | Hero( 76 | createRectTween: ParallaxPageView.createRectTween, 77 | tag: heroTag, 78 | child: Container( 79 | height: coverImageHeightCalc, 80 | child: ClipRRect( 81 | borderRadius: BorderRadius.all(Radius.circular(4)), 82 | child: PageIndicatorContainer( 83 | align: IndicatorAlign.bottom, 84 | length: 3, 85 | indicatorSpace: 12.0, 86 | padding: EdgeInsets.only(bottom: 60), 87 | indicatorColor: themeData.indicatorColor, 88 | indicatorSelectorColor: Colors.white, 89 | shape: IndicatorShape.circle(size: 8), 90 | child: PageView( 91 | children: [ 92 | Image.network( 93 | imageAsset, 94 | fit: BoxFit.cover, 95 | ), 96 | Image.network( 97 | imageAsset, 98 | fit: BoxFit.cover, 99 | ), 100 | /*Image.asset( 101 | "img/hotel_2.jpg", // <- stubbed data 102 | fit: BoxFit.cover, 103 | ), 104 | Image.asset( 105 | "img/hotel_3.jpg", // <- stubbed data 106 | fit: BoxFit.cover, 107 | ),*/ 108 | ], 109 | ), 110 | )), 111 | ), 112 | ), 113 | Positioned( 114 | top: 46, 115 | right: 24, 116 | child: Hero( 117 | tag: "${heroTag}heart", 118 | child: BlurIcon( 119 | icon: Icon( 120 | Icons.favorite_border, 121 | color: Colors.white, 122 | size: 15.2, 123 | ), 124 | ), 125 | ), 126 | ), 127 | Positioned( 128 | top: 46, 129 | left: 24, 130 | child: Hero( 131 | tag: "${heroTag}chevron", 132 | child: GestureDetector( 133 | onTap: () async { 134 | await _bottomSheetController.animateTo(0, 135 | duration: Duration(milliseconds: 150)); 136 | setState(() { 137 | bookButtonBottom = bookButtonBottomOffset; 138 | }); 139 | Navigator.pop(context); 140 | }, 141 | child: BlurIcon( 142 | icon: Icon( 143 | Icons.arrow_back_ios, 144 | color: Colors.white, 145 | size: 24, 146 | ), 147 | ), 148 | ), 149 | ), 150 | ), 151 | Positioned( 152 | top: 100, 153 | left: MediaQuery.of(context).size.width / 2, 154 | child: Align( 155 | alignment: Alignment.center, 156 | child: Text("Hello ABC"), 157 | ), 158 | ), 159 | SlidingBottomSheet( 160 | controller: _bottomSheetController, 161 | cornerRadius: bottomSheetCornerRadius, 162 | ), 163 | ], 164 | ), 165 | ), 166 | ); 167 | } 168 | 169 | Widget _ripple(ThemeData themeData) { 170 | if (rect == null) { 171 | return Container(); 172 | } 173 | return AnimatedPositioned( 174 | duration: animationDuration, 175 | left: rect.left, 176 | right: MediaQuery.of(context).size.width - rect.right, 177 | top: rect.top, 178 | bottom: MediaQuery.of(context).size.height - rect.bottom, 179 | child: Container( 180 | decoration: BoxDecoration( 181 | shape: BoxShape.circle, 182 | color: themeData.accentColor, 183 | ), 184 | ), 185 | ); 186 | } 187 | } 188 | -------------------------------------------------------------------------------- /lib/screen/search_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/common/widgets/appbar_widget.dart'; 3 | 4 | class SearchScreen extends StatefulWidget { 5 | @override 6 | _SearchScreenState createState() => _SearchScreenState(); 7 | } 8 | 9 | class _SearchScreenState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return SingleChildScrollView( 13 | child: Padding( 14 | padding: EdgeInsets.only(left: 20, top: 35), 15 | child: Column( 16 | crossAxisAlignment: CrossAxisAlignment.start, 17 | children: [ 18 | appBarWidget(context), 19 | Align( 20 | alignment: Alignment.center, 21 | child: Text("Coming Soon"), 22 | ), 23 | ], 24 | ), 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/screen/sign_in_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/rendering.dart'; 3 | import 'package:flutterhotelbookingapp/common/animation/scale_route.dart'; 4 | import 'package:flutterhotelbookingapp/screen/sign_up_screen.dart'; 5 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 6 | 7 | class SignInScreen extends StatefulWidget { 8 | @override 9 | _SignInScreenState createState() => _SignInScreenState(); 10 | } 11 | 12 | class _SignInScreenState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | String defaultFontFamily = 'Roboto-Light.ttf'; 16 | double defaultFontSize = 14; 17 | double defaultIconSize = 17; 18 | 19 | return Scaffold( 20 | body: Container( 21 | padding: EdgeInsets.only(left: 20, right: 20, top: 35, bottom: 30), 22 | width: double.infinity, 23 | height: double.infinity, 24 | color: Colors.white70, 25 | child: Column( 26 | children: [ 27 | Flexible( 28 | flex: 1, 29 | child: InkWell( 30 | child: Container( 31 | child: Align( 32 | alignment: Alignment.topLeft, 33 | child: Icon(Icons.close), 34 | ), 35 | ), 36 | onTap: () { 37 | Navigator.pop(context); 38 | }, 39 | ), 40 | ), 41 | Flexible( 42 | flex: 8, 43 | child: Column( 44 | mainAxisAlignment: MainAxisAlignment.center, 45 | children: [ 46 | Container( 47 | width: 230, 48 | height: 100, 49 | alignment: Alignment.center, 50 | child: Image.asset( 51 | "assets/images/menus/ic_food_express.png", 52 | ), 53 | ), 54 | SizedBox( 55 | height: 15, 56 | ), 57 | TextField( 58 | showCursor: true, 59 | decoration: InputDecoration( 60 | border: OutlineInputBorder( 61 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 62 | borderSide: BorderSide( 63 | width: 0, 64 | style: BorderStyle.none, 65 | ), 66 | ), 67 | filled: true, 68 | prefixIcon: Icon( 69 | Icons.phone, 70 | color: Color(0xFF666666), 71 | size: defaultIconSize, 72 | ), 73 | fillColor: Color(0xFFF2F3F5), 74 | hintStyle: TextStyle( 75 | color: Color(0xFF666666), 76 | fontFamily: defaultFontFamily, 77 | fontSize: defaultFontSize), 78 | hintText: "Phone Number", 79 | ), 80 | ), 81 | SizedBox( 82 | height: 15, 83 | ), 84 | TextField( 85 | showCursor: true, 86 | decoration: InputDecoration( 87 | border: OutlineInputBorder( 88 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 89 | borderSide: BorderSide( 90 | width: 0, 91 | style: BorderStyle.none, 92 | ), 93 | ), 94 | filled: true, 95 | prefixIcon: Icon( 96 | Icons.lock_outline, 97 | color: Color(0xFF666666), 98 | size: defaultIconSize, 99 | ), 100 | suffixIcon: Icon( 101 | Icons.remove_red_eye, 102 | color: Color(0xFF666666), 103 | size: defaultIconSize, 104 | ), 105 | fillColor: Color(0xFFF2F3F5), 106 | hintStyle: TextStyle( 107 | color: Color(0xFF666666), 108 | fontFamily: defaultFontFamily, 109 | fontSize: defaultFontSize, 110 | ), 111 | hintText: "Password", 112 | ), 113 | ), 114 | SizedBox( 115 | height: 15, 116 | ), 117 | Container( 118 | width: double.infinity, 119 | child: Text( 120 | "Forgot your password?", 121 | style: TextStyle( 122 | color: Color(0xFF666666), 123 | fontFamily: defaultFontFamily, 124 | fontSize: defaultFontSize, 125 | fontStyle: FontStyle.normal, 126 | ), 127 | textAlign: TextAlign.end, 128 | ), 129 | ), 130 | SizedBox( 131 | height: 15, 132 | ), 133 | SignInButtonWidget(), 134 | SizedBox( 135 | height: 2, 136 | ), 137 | FacebookGoogleLogin() 138 | ], 139 | ), 140 | ), 141 | Flexible( 142 | flex: 1, 143 | child: Align( 144 | alignment: Alignment.bottomCenter, 145 | child: Row( 146 | crossAxisAlignment: CrossAxisAlignment.center, 147 | mainAxisAlignment: MainAxisAlignment.center, 148 | children: [ 149 | Container( 150 | child: Text( 151 | "Don't have an account? ", 152 | style: TextStyle( 153 | color: Color(0xFF666666), 154 | fontFamily: defaultFontFamily, 155 | fontSize: defaultFontSize, 156 | fontStyle: FontStyle.normal, 157 | ), 158 | ), 159 | ), 160 | InkWell( 161 | onTap: () => { 162 | Navigator.push(context, ScaleRoute(page: SignUpScreen())) 163 | }, 164 | child: Container( 165 | child: Text( 166 | "Sign Up", 167 | style: TextStyle( 168 | color: Color(0xFFf7418c), 169 | fontFamily: defaultFontFamily, 170 | fontSize: defaultFontSize, 171 | fontStyle: FontStyle.normal, 172 | ), 173 | ), 174 | ), 175 | ), 176 | ], 177 | ), 178 | ), 179 | ) 180 | ], 181 | ), 182 | ), 183 | ); 184 | } 185 | } 186 | 187 | class SignInButtonWidget extends StatelessWidget { 188 | @override 189 | Widget build(BuildContext context) { 190 | return Container( 191 | width: double.infinity, 192 | decoration: new BoxDecoration( 193 | borderRadius: BorderRadius.all(Radius.circular(5.0)), 194 | boxShadow: [ 195 | BoxShadow( 196 | color: Color(0xFFfbab66), 197 | ), 198 | BoxShadow( 199 | color: Color(0xFFf7418c), 200 | ), 201 | ], 202 | gradient: new LinearGradient( 203 | colors: [Color(0xFFf7418c), Color(0xFFfbab66)], 204 | begin: const FractionalOffset(0.2, 0.2), 205 | end: const FractionalOffset(1.0, 1.0), 206 | stops: [0.0, 1.0], 207 | tileMode: TileMode.clamp), 208 | ), 209 | child: MaterialButton( 210 | highlightColor: Colors.transparent, 211 | splashColor: Color(0xFFf7418c), 212 | //shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(5.0))), 213 | child: Padding( 214 | padding: 215 | const EdgeInsets.symmetric(vertical: 10.0, horizontal: 42.0), 216 | child: Text( 217 | "SIGN IN", 218 | style: TextStyle( 219 | color: Colors.white, 220 | fontSize: 25.0, 221 | fontFamily: "WorkSansBold"), 222 | ), 223 | ), 224 | onPressed: () => {}), 225 | ); 226 | } 227 | } 228 | 229 | class FacebookGoogleLogin extends StatelessWidget { 230 | @override 231 | Widget build(BuildContext context) { 232 | return Container( 233 | child: Column( 234 | children: [ 235 | Padding( 236 | padding: EdgeInsets.only(top: 10.0), 237 | child: Row( 238 | mainAxisAlignment: MainAxisAlignment.center, 239 | children: [ 240 | Container( 241 | decoration: BoxDecoration( 242 | gradient: new LinearGradient( 243 | colors: [ 244 | Colors.black12, 245 | Colors.black54, 246 | ], 247 | begin: const FractionalOffset(0.0, 0.0), 248 | end: const FractionalOffset(1.0, 1.0), 249 | stops: [0.0, 1.0], 250 | tileMode: TileMode.clamp), 251 | ), 252 | width: 100.0, 253 | height: 1.0, 254 | ), 255 | Padding( 256 | padding: EdgeInsets.only(left: 15.0, right: 15.0), 257 | child: Text( 258 | "Or", 259 | style: TextStyle( 260 | color: Color(0xFF2c2b2b), 261 | fontSize: 16.0, 262 | fontFamily: "WorkSansMedium"), 263 | ), 264 | ), 265 | Container( 266 | decoration: BoxDecoration( 267 | gradient: new LinearGradient( 268 | colors: [ 269 | Colors.black54, 270 | Colors.black12, 271 | ], 272 | begin: const FractionalOffset(0.0, 0.0), 273 | end: const FractionalOffset(1.0, 1.0), 274 | stops: [0.0, 1.0], 275 | tileMode: TileMode.clamp), 276 | ), 277 | width: 100.0, 278 | height: 1.0, 279 | ), 280 | ], 281 | ), 282 | ), 283 | Row( 284 | mainAxisAlignment: MainAxisAlignment.center, 285 | children: [ 286 | Padding( 287 | padding: EdgeInsets.only(top: 10.0, right: 40.0), 288 | child: GestureDetector( 289 | onTap: () {}, 290 | child: Container( 291 | padding: const EdgeInsets.all(15.0), 292 | decoration: new BoxDecoration( 293 | shape: BoxShape.circle, 294 | color: Color(0xFFf7418c), 295 | ), 296 | child: Icon( 297 | FontAwesomeIcons.facebookF, 298 | color: Color(0xFFFFFFFF), 299 | ), 300 | ), 301 | ), 302 | ), 303 | Padding( 304 | padding: EdgeInsets.only(top: 10.0), 305 | child: GestureDetector( 306 | onTap: () => {}, 307 | child: Container( 308 | padding: const EdgeInsets.all(15.0), 309 | decoration: new BoxDecoration( 310 | shape: BoxShape.circle, 311 | color: Color(0xFFf7418c), 312 | ), 313 | child: new Icon( 314 | FontAwesomeIcons.google, 315 | color: Color(0xFFFFFFFF), 316 | ), 317 | ), 318 | ), 319 | ), 320 | ], 321 | ), 322 | ], 323 | )); 324 | } 325 | } 326 | -------------------------------------------------------------------------------- /lib/screen/sign_up_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/common/animation/scale_route.dart'; 3 | import 'package:flutterhotelbookingapp/screen/sign_in_screen.dart'; 4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 5 | 6 | class SignUpScreen extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | String defaultFontFamily = 'Roboto-Light.ttf'; 10 | double defaultFontSize = 14; 11 | double defaultIconSize = 17; 12 | 13 | return Scaffold( 14 | body: Container( 15 | padding: EdgeInsets.only(left: 20, right: 20, top: 35, bottom: 30), 16 | width: double.infinity, 17 | height: double.infinity, 18 | color: Colors.white70, 19 | child: Column( 20 | children: [ 21 | Flexible( 22 | flex: 1, 23 | child: InkWell( 24 | child: Container( 25 | child: Align( 26 | alignment: Alignment.topLeft, 27 | child: Icon(Icons.close), 28 | ), 29 | ), 30 | onTap: () { 31 | Navigator.pop(context); 32 | }, 33 | ), 34 | ), 35 | Flexible( 36 | flex: 15, 37 | child: Column( 38 | mainAxisAlignment: MainAxisAlignment.center, 39 | children: [ 40 | Container( 41 | width: 230, 42 | height: 100, 43 | alignment: Alignment.center, 44 | child: Image.asset( 45 | "assets/images/menus/ic_food_express.png", 46 | ), 47 | ), 48 | SizedBox( 49 | height: 15, 50 | ), 51 | Row( 52 | children: [ 53 | Flexible( 54 | flex: 1, 55 | child: TextField( 56 | showCursor: true, 57 | decoration: InputDecoration( 58 | border: OutlineInputBorder( 59 | borderRadius: 60 | BorderRadius.all(Radius.circular(10.0)), 61 | borderSide: BorderSide( 62 | width: 0, 63 | style: BorderStyle.none, 64 | ), 65 | ), 66 | filled: true, 67 | fillColor: Color(0xFFF2F3F5), 68 | hintStyle: TextStyle( 69 | color: Color(0xFF666666), 70 | fontFamily: defaultFontFamily, 71 | fontSize: defaultFontSize, 72 | ), 73 | hintText: "First Name", 74 | ), 75 | ), 76 | ), 77 | SizedBox( 78 | width: 10, 79 | ), 80 | Flexible( 81 | flex: 1, 82 | child: TextField( 83 | showCursor: true, 84 | decoration: InputDecoration( 85 | border: OutlineInputBorder( 86 | borderRadius: 87 | BorderRadius.all(Radius.circular(10.0)), 88 | borderSide: BorderSide( 89 | width: 0, 90 | style: BorderStyle.none, 91 | ), 92 | ), 93 | filled: true, 94 | fillColor: Color(0xFFF2F3F5), 95 | hintStyle: TextStyle( 96 | color: Color(0xFF666666), 97 | fontFamily: defaultFontFamily, 98 | fontSize: defaultFontSize, 99 | ), 100 | hintText: "Last Name", 101 | ), 102 | ), 103 | ), 104 | ], 105 | ), 106 | SizedBox( 107 | height: 15, 108 | ), 109 | TextField( 110 | showCursor: true, 111 | decoration: InputDecoration( 112 | border: OutlineInputBorder( 113 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 114 | borderSide: BorderSide( 115 | width: 0, 116 | style: BorderStyle.none, 117 | ), 118 | ), 119 | filled: true, 120 | prefixIcon: Icon( 121 | Icons.phone, 122 | color: Color(0xFF666666), 123 | size: defaultIconSize, 124 | ), 125 | fillColor: Color(0xFFF2F3F5), 126 | hintStyle: TextStyle( 127 | color: Color(0xFF666666), 128 | fontFamily: defaultFontFamily, 129 | fontSize: defaultFontSize), 130 | hintText: "Phone Number", 131 | ), 132 | ), 133 | SizedBox( 134 | height: 15, 135 | ), 136 | TextField( 137 | showCursor: true, 138 | decoration: InputDecoration( 139 | border: OutlineInputBorder( 140 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 141 | borderSide: BorderSide( 142 | width: 0, 143 | style: BorderStyle.none, 144 | ), 145 | ), 146 | filled: true, 147 | prefixIcon: Icon( 148 | Icons.code, 149 | color: Color(0xFF666666), 150 | size: defaultIconSize, 151 | ), 152 | fillColor: Color(0xFFF2F3F5), 153 | hintStyle: TextStyle( 154 | color: Color(0xFF666666), 155 | fontFamily: defaultFontFamily, 156 | fontSize: defaultFontSize, 157 | ), 158 | hintText: "Invitation Code", 159 | ), 160 | ), 161 | SizedBox( 162 | height: 10, 163 | ), 164 | Container( 165 | width: double.infinity, 166 | child: Row( 167 | children: [ 168 | Icon( 169 | Icons.info_outline, 170 | color: Color(0xFF666666), 171 | size: defaultIconSize, 172 | ), 173 | Text( 174 | " Leave empty if you don't have Invitation Code", 175 | style: TextStyle( 176 | color: Color(0xFF666666), 177 | fontFamily: defaultFontFamily, 178 | fontSize: defaultFontSize, 179 | fontStyle: FontStyle.normal, 180 | ), 181 | textAlign: TextAlign.left, 182 | ), 183 | ], 184 | )), 185 | SizedBox( 186 | height: 15, 187 | ), 188 | SignInButtonWidget(), 189 | SizedBox( 190 | height: 10, 191 | ), 192 | FacebookGoogleLogin() 193 | ], 194 | ), 195 | ), 196 | Flexible( 197 | flex: 1, 198 | child: Align( 199 | alignment: Alignment.bottomCenter, 200 | child: Row( 201 | crossAxisAlignment: CrossAxisAlignment.center, 202 | mainAxisAlignment: MainAxisAlignment.center, 203 | children: [ 204 | Container( 205 | child: Text( 206 | "Already have an account? ", 207 | style: TextStyle( 208 | color: Color(0xFF666666), 209 | fontFamily: defaultFontFamily, 210 | fontSize: defaultFontSize, 211 | fontStyle: FontStyle.normal, 212 | ), 213 | ), 214 | ), 215 | InkWell( 216 | onTap: () { 217 | Navigator.push(context, ScaleRoute(page: SignInScreen())); 218 | }, 219 | child: Container( 220 | child: Text( 221 | "Sign In", 222 | style: TextStyle( 223 | color: Color(0xFFf7418c), 224 | fontFamily: defaultFontFamily, 225 | fontSize: defaultFontSize, 226 | fontStyle: FontStyle.normal, 227 | ), 228 | ), 229 | ), 230 | ), 231 | ], 232 | ), 233 | ), 234 | ) 235 | ], 236 | ), 237 | ), 238 | ); 239 | } 240 | } 241 | 242 | class SignInButtonWidget extends StatelessWidget { 243 | @override 244 | Widget build(BuildContext context) { 245 | return Container( 246 | width: double.infinity, 247 | decoration: new BoxDecoration( 248 | borderRadius: BorderRadius.all(Radius.circular(5.0)), 249 | boxShadow: [ 250 | BoxShadow( 251 | color: Color(0xFFfbab66), 252 | ), 253 | BoxShadow( 254 | color: Color(0xFFf7418c), 255 | ), 256 | ], 257 | gradient: new LinearGradient( 258 | colors: [Color(0xFFf7418c), Color(0xFFfbab66)], 259 | begin: const FractionalOffset(0.2, 0.2), 260 | end: const FractionalOffset(1.0, 1.0), 261 | stops: [0.0, 1.0], 262 | tileMode: TileMode.clamp), 263 | ), 264 | child: MaterialButton( 265 | highlightColor: Colors.transparent, 266 | splashColor: Color(0xFFf7418c), 267 | //shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(5.0))), 268 | child: Padding( 269 | padding: 270 | const EdgeInsets.symmetric(vertical: 10.0, horizontal: 42.0), 271 | child: Text( 272 | "SIGN UP", 273 | style: TextStyle( 274 | color: Colors.white, 275 | fontSize: 25.0, 276 | fontFamily: "WorkSansBold"), 277 | ), 278 | ), 279 | onPressed: () => {}), 280 | ); 281 | } 282 | } 283 | 284 | class FacebookGoogleLogin extends StatelessWidget { 285 | @override 286 | Widget build(BuildContext context) { 287 | return Container( 288 | child: Column( 289 | children: [ 290 | Padding( 291 | padding: EdgeInsets.only(top: 10.0), 292 | child: Row( 293 | mainAxisAlignment: MainAxisAlignment.center, 294 | children: [ 295 | Container( 296 | decoration: BoxDecoration( 297 | gradient: new LinearGradient( 298 | colors: [ 299 | Colors.black12, 300 | Colors.black54, 301 | ], 302 | begin: const FractionalOffset(0.0, 0.0), 303 | end: const FractionalOffset(1.0, 1.0), 304 | stops: [0.0, 1.0], 305 | tileMode: TileMode.clamp), 306 | ), 307 | width: 100.0, 308 | height: 1.0, 309 | ), 310 | Padding( 311 | padding: EdgeInsets.only(left: 15.0, right: 15.0), 312 | child: Text( 313 | "Or", 314 | style: TextStyle( 315 | color: Color(0xFF2c2b2b), 316 | fontSize: 16.0, 317 | fontFamily: "WorkSansMedium"), 318 | ), 319 | ), 320 | Container( 321 | decoration: BoxDecoration( 322 | gradient: new LinearGradient( 323 | colors: [ 324 | Colors.black54, 325 | Colors.black12, 326 | ], 327 | begin: const FractionalOffset(0.0, 0.0), 328 | end: const FractionalOffset(1.0, 1.0), 329 | stops: [0.0, 1.0], 330 | tileMode: TileMode.clamp), 331 | ), 332 | width: 100.0, 333 | height: 1.0, 334 | ), 335 | ], 336 | ), 337 | ), 338 | Row( 339 | mainAxisAlignment: MainAxisAlignment.center, 340 | children: [ 341 | Padding( 342 | padding: EdgeInsets.only(top: 10.0, right: 40.0), 343 | child: GestureDetector( 344 | onTap: () {}, 345 | child: Container( 346 | padding: const EdgeInsets.all(15.0), 347 | decoration: new BoxDecoration( 348 | shape: BoxShape.circle, 349 | color: Color(0xFFf7418c), 350 | ), 351 | child: new Icon( 352 | FontAwesomeIcons.facebookF, 353 | color: Color(0xFFFFFFFF), 354 | ), 355 | ), 356 | ), 357 | ), 358 | Padding( 359 | padding: EdgeInsets.only(top: 10.0), 360 | child: GestureDetector( 361 | onTap: () => {}, 362 | child: Container( 363 | padding: const EdgeInsets.all(15.0), 364 | decoration: new BoxDecoration( 365 | shape: BoxShape.circle, 366 | color: Color(0xFFf7418c), 367 | ), 368 | child: new Icon( 369 | FontAwesomeIcons.google, 370 | color: Color(0xFFFFFFFF), 371 | ), 372 | ), 373 | ), 374 | ), 375 | ], 376 | ), 377 | ], 378 | )); 379 | } 380 | } 381 | -------------------------------------------------------------------------------- /lib/utils/Urls.dart: -------------------------------------------------------------------------------- 1 | class Urls { 2 | static const ROOT_URL = "https://amarroom.com/api/v2/"; 3 | static const POPULAR_DESTINATION = "${ROOT_URL}popular-destinations/"; 4 | static const HOTEL_SAMPLE_LIST = "${ROOT_URL}search/filtered/?location=2&checkin=24-03-2020&checkout=25-03-2020&adults=2&rooms=1&page="; 5 | static const ADD_NEW_URL = "${ROOT_URL}search/filtered/?location=2&checkin=24-03-2020&checkout=25-03-2020&adults=2&rooms=1&page="; 6 | } 7 | -------------------------------------------------------------------------------- /lib/utils/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | //Dimension 3 | const double kBottomItemSize = 30; 4 | 5 | // Colors 6 | const kTextColor = Color(0xFF0D1333); 7 | const kBlueColor = Color(0xFF6E8AFA); 8 | const kBestSellerColor = Color(0xFFFFD073); 9 | const kGreenColor = Color(0xFF49CC96); 10 | const kSearchIconColor = Color(0xFF505dfd); 11 | 12 | 13 | // My Text Styles 14 | const kHeadingextStyle = TextStyle( 15 | fontSize: 20, 16 | color: kTextColor, 17 | fontWeight: FontWeight.w700, 18 | ); 19 | const kSubheadingextStyle = TextStyle( 20 | fontSize: 15, 21 | fontFamily: 'PlayfairDisplay', 22 | color: Color(0xFF61688B), 23 | height: 2, 24 | ); 25 | const kHighlitedSubheadingTextStyle = TextStyle( 26 | fontSize: 15, 27 | fontFamily: 'PlayfairDisplay', 28 | color: Color(0xFF4651e5), 29 | fontWeight: FontWeight.w500, 30 | height: 2, 31 | ); 32 | const kHotelTitleTextStyle = TextStyle( 33 | fontSize: 15, 34 | fontFamily: 'PlayfairDisplay', 35 | color: Color(0xFF444444), 36 | fontWeight: FontWeight.w500, 37 | height: 2, 38 | ); 39 | const kHotelPriceTextStyle = TextStyle( 40 | fontSize: 15, 41 | fontFamily: 'PlayfairDisplay', 42 | color: Color(0xFF444444), 43 | fontWeight: FontWeight.w700, 44 | height: 2, 45 | ); 46 | const kHotelSubTitleTextStyle = TextStyle( 47 | fontSize: 15, 48 | fontFamily: 'PlayfairDisplay', 49 | color: Color(0xFF9e9fa2), 50 | fontWeight: FontWeight.w400, 51 | height: 2, 52 | ); 53 | 54 | const kTitleTextStyle = TextStyle( 55 | fontSize: 15, 56 | color: Colors.white, 57 | fontWeight: FontWeight.bold, 58 | ); 59 | 60 | const kSubtitleTextSyule = TextStyle( 61 | fontSize: 18, 62 | color: kTextColor, 63 | // fontWeight: FontWeight.bold, 64 | ); 65 | -------------------------------------------------------------------------------- /lib/utils/parallax_page_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutterhotelbookingapp/utils/parallax_sliding_card.dart'; 3 | 4 | class ParallaxPageView extends StatefulWidget { 5 | final double viewportFraction; 6 | final int height; 7 | final List data; 8 | final void Function(ISlidingCard) onCardTap; 9 | 10 | ParallaxPageView({ 11 | this.viewportFraction = 1, 12 | this.height = 500, 13 | this.data, 14 | this.onCardTap, 15 | }); 16 | 17 | @override 18 | _ParallaxPageViewState createState() => _ParallaxPageViewState( 19 | viewportFraction: viewportFraction, height: height, data: data); 20 | 21 | static RectTween createRectTween(Rect begin, Rect end) { 22 | return MaterialRectCenterArcTween(begin: begin, end: end); 23 | } 24 | } 25 | 26 | class _ParallaxPageViewState extends State 27 | with SingleTickerProviderStateMixin { 28 | PageController pageController; 29 | final double viewportFraction; 30 | final int height; 31 | final List data; 32 | final void Function(ISlidingCard) onCardTap; 33 | 34 | _ParallaxPageViewState({ 35 | this.viewportFraction, 36 | this.height, 37 | this.data, 38 | this.onCardTap, 39 | }); 40 | 41 | @override 42 | void initState() { 43 | super.initState(); 44 | pageController = PageController(viewportFraction: viewportFraction); 45 | } 46 | 47 | @override 48 | void dispose() { 49 | pageController.dispose(); 50 | super.dispose(); 51 | } 52 | 53 | @override 54 | Widget build(BuildContext context) { 55 | return ScrollConfiguration( 56 | behavior: OverScrollBehavior(), 57 | child: Container( 58 | height: widget.height.toDouble(), 59 | child: AnimatedBuilder( 60 | animation: pageController, 61 | builder: (context, child) { 62 | return PageView.builder( 63 | controller: pageController, 64 | itemCount: widget.data.length, 65 | itemBuilder: (context, index) { 66 | final page = (pageController.position.pixels == null || 67 | (pageController.position.minScrollExtent != null && 68 | pageController.position.maxScrollExtent != null) 69 | ? pageController.page 70 | : 0.0); 71 | return SlidingCard( 72 | height: widget.height, 73 | viewportFraction: viewportFraction, 74 | title: widget.data[index].cardTitle(), 75 | subTitle: widget.data[index].cardSubTitle(), 76 | imageAssetName: widget.data[index].cardImageAsset(), 77 | offset: page - index, 78 | position: index, 79 | onCardTap: (position) => 80 | widget.onCardTap(widget.data[position]), 81 | ); 82 | }, 83 | ); 84 | }), 85 | ), 86 | ); 87 | } 88 | } 89 | 90 | class OverScrollBehavior extends ScrollBehavior { 91 | @override 92 | Widget buildViewportChrome( 93 | BuildContext context, Widget child, AxisDirection axisDirection) { 94 | return child; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /lib/utils/parallax_sliding_card.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:math' as math; 3 | import 'dart:ui'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutterhotelbookingapp/common/widgets/blur_icon.dart'; 6 | import 'package:flutterhotelbookingapp/utils/parallax_page_view.dart'; 7 | 8 | class SlidingCard extends StatelessWidget { 9 | final String title; 10 | final String subTitle; 11 | final String imageAssetName; 12 | final double offset; 13 | final int position; 14 | final int height; 15 | final double scaleCoefficient; 16 | final double viewportFraction; 17 | final void Function(int) onCardTap; 18 | 19 | const SlidingCard({ 20 | Key key, 21 | @required this.title, 22 | @required this.subTitle, 23 | @required this.imageAssetName, 24 | this.offset, 25 | this.position, 26 | this.height, 27 | this.onCardTap, 28 | this.viewportFraction, 29 | this.scaleCoefficient = 0.0, 30 | }) : super(key: key); 31 | 32 | static double kMaxRadius; 33 | static const opacityCurve = 34 | const Interval(0.0, 0.75, curve: Curves.fastOutSlowIn); 35 | 36 | @override 37 | Widget build(BuildContext context) { 38 | kMaxRadius = MediaQuery.of(context).size.height; 39 | double gaussCurve = math.exp(-(math.pow((offset.abs() - 0.5), 2) / 0.08)); 40 | Offset cardOffsetExpression = Offset(-8 * gaussCurve * offset.sign, 0); 41 | 42 | final scale = max(0.9, offset.abs() + scaleCoefficient); 43 | double cardHeightCalc = 44 | scaleCoefficient == 0 ? height.toDouble() : height / scale; 45 | return Align( 46 | alignment: Alignment.center, 47 | child: Container( 48 | height: cardHeightCalc, 49 | child: Transform.translate( 50 | offset: cardOffsetExpression, 51 | child: GestureDetector( 52 | onTap: () => onCardTap(position), 53 | child: Card( 54 | margin: EdgeInsets.only(left: 10, right: 10, top: 8, bottom: 32), 55 | shape: RoundedRectangleBorder( 56 | borderRadius: BorderRadius.circular(16)), 57 | child: Stack( 58 | children: [ 59 | _buildShadow(), 60 | _buildCoverImage(position, imageAssetName, offset), 61 | _buildGradientShape(), 62 | Positioned( 63 | child: Hero( 64 | tag: "${title}heart", 65 | child: BlurIcon( 66 | width: 28, 67 | height: 28, 68 | icon: Icon( 69 | Icons.favorite_border, 70 | color: Colors.white, 71 | size: 15.2, 72 | ), 73 | ), 74 | ), 75 | top: 16, 76 | right: 16, 77 | ), 78 | Positioned( 79 | child: Hero( 80 | tag: "${title}chevron", 81 | child: BlurIcon( 82 | width: 0, 83 | height: 0, 84 | icon: Icon( 85 | Icons.ac_unit, 86 | color: Colors.white, 87 | size: 0, 88 | ), 89 | )), 90 | top: 16, 91 | left: 16, 92 | ), 93 | Padding( 94 | padding: const EdgeInsets.all(16.0), 95 | child: Column( 96 | mainAxisAlignment: MainAxisAlignment.end, 97 | crossAxisAlignment: CrossAxisAlignment.start, 98 | children: [ 99 | Text(title, 100 | style: TextStyle( 101 | color: Colors.white, 102 | fontSize: 15, 103 | fontWeight: FontWeight.w600)), 104 | SizedBox( 105 | height: 4, 106 | ), 107 | Text(subTitle, 108 | style: 109 | TextStyle(color: Colors.white, fontSize: 12)), 110 | ], 111 | ), 112 | ), 113 | ], 114 | ), 115 | ), 116 | ), 117 | ), 118 | ), 119 | ); 120 | } 121 | 122 | Widget _buildShadow() { 123 | return Container( 124 | margin: EdgeInsets.only(left: 14, right: 14, top: 16, bottom: 0), 125 | decoration: BoxDecoration( 126 | borderRadius: BorderRadius.circular(16), 127 | boxShadow: [ 128 | BoxShadow( 129 | offset: Offset(0.0, 4.0), 130 | color: Color(0x591a86ff), 131 | blurRadius: 18.0, 132 | ), 133 | ], 134 | ), 135 | ); 136 | } 137 | 138 | Widget _buildCoverImage(int position, String imageAssetName, double offset) { 139 | double imageBoundsCalc = viewportFraction / 0.6 * 1000; 140 | return ClipRRect( 141 | borderRadius: BorderRadius.all(Radius.circular(16)), 142 | child: Hero( 143 | createRectTween: ParallaxPageView.createRectTween, 144 | tag: "$title", 145 | child: Image.asset( 146 | '$imageAssetName', 147 | fit: BoxFit.cover, 148 | height: imageBoundsCalc, 149 | width: imageBoundsCalc * 20, 150 | alignment: Alignment(offset / 2, 0), 151 | ), 152 | ), 153 | ); 154 | } 155 | 156 | Widget _buildGradientShape() { 157 | return Container( 158 | decoration: BoxDecoration( 159 | borderRadius: BorderRadius.all( 160 | Radius.circular(16), 161 | ), 162 | gradient: LinearGradient( 163 | begin: Alignment.topCenter, 164 | end: Alignment.bottomCenter, 165 | stops: [0.0, 0.7, 1.0], 166 | colors: [ 167 | Color(0x00000000), 168 | Color(0x00000000), 169 | Color(0xff000000), 170 | ], 171 | ), 172 | ), 173 | ); 174 | } 175 | } 176 | 177 | abstract class ISlidingCard { 178 | String cardTitle(); 179 | 180 | String cardSubTitle(); 181 | 182 | String cardImageAsset(); 183 | } 184 | -------------------------------------------------------------------------------- /lib/utils/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ApplicationThemeProvider { 4 | static ThemeData get() { 5 | return ThemeData( 6 | primaryColorLight: Color(0xff5b626b), 7 | bottomAppBarColor: Color(0xff5b626b), 8 | hintColor: Color(0xffbfc2c5), 9 | accentColor: Color(0xff006be3), 10 | unselectedWidgetColor: Color(0x191a86ff), 11 | indicatorColor: Color(0x33ffffff), 12 | highlightColor: Color(0xffe8f2ff), 13 | disabledColor: Color(0xffffbb76), 14 | hoverColor: Color(0x19000000), 15 | fontFamily: 'PlayfairDisplay', 16 | canvasColor: Colors.white, 17 | scaffoldBackgroundColor: Colors.white, 18 | cardColor: Colors.white, 19 | textTheme: TextTheme( 20 | display1: TextStyle( 21 | color: Color(0x60717171), 22 | ), 23 | display2: TextStyle( 24 | fontSize: 20, 25 | color: Color(0xff7e848b), 26 | ), 27 | display3: TextStyle( 28 | color: Color(0xff2cac97), 29 | ), 30 | display4: TextStyle( 31 | color: Color(0xffededed), 32 | )), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 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 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.3" 67 | flare_dart: 68 | dependency: transitive 69 | description: 70 | name: flare_dart 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.3.4" 74 | flare_flutter: 75 | dependency: "direct main" 76 | description: 77 | name: flare_flutter 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.8.3" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | font_awesome_flutter: 92 | dependency: "direct main" 93 | description: 94 | name: font_awesome_flutter 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "8.8.1" 98 | http: 99 | dependency: "direct main" 100 | description: 101 | name: http 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.12.0+4" 105 | http_parser: 106 | dependency: transitive 107 | description: 108 | name: http_parser 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "3.1.4" 112 | image: 113 | dependency: transitive 114 | description: 115 | name: image 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.1.4" 119 | matcher: 120 | dependency: transitive 121 | description: 122 | name: matcher 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.12.6" 126 | meta: 127 | dependency: transitive 128 | description: 129 | name: meta 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "1.1.8" 133 | page_indicator: 134 | dependency: "direct main" 135 | description: 136 | name: page_indicator 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "0.3.0" 140 | path: 141 | dependency: transitive 142 | description: 143 | name: path 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "1.6.4" 147 | pedantic: 148 | dependency: transitive 149 | description: 150 | name: pedantic 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.8.0+1" 154 | petitparser: 155 | dependency: transitive 156 | description: 157 | name: petitparser 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "2.4.0" 161 | quiver: 162 | dependency: transitive 163 | description: 164 | name: quiver 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "2.0.5" 168 | rect_getter: 169 | dependency: "direct main" 170 | description: 171 | name: rect_getter 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "0.0.1" 175 | sky_engine: 176 | dependency: transitive 177 | description: flutter 178 | source: sdk 179 | version: "0.0.99" 180 | source_span: 181 | dependency: transitive 182 | description: 183 | name: source_span 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "1.5.5" 187 | stack_trace: 188 | dependency: transitive 189 | description: 190 | name: stack_trace 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "1.9.3" 194 | stream_channel: 195 | dependency: transitive 196 | description: 197 | name: stream_channel 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "2.0.0" 201 | string_scanner: 202 | dependency: transitive 203 | description: 204 | name: string_scanner 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.0.5" 208 | term_glyph: 209 | dependency: transitive 210 | description: 211 | name: term_glyph 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.1.0" 215 | test_api: 216 | dependency: transitive 217 | description: 218 | name: test_api 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "0.2.11" 222 | typed_data: 223 | dependency: transitive 224 | description: 225 | name: typed_data 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.1.6" 229 | vector_math: 230 | dependency: transitive 231 | description: 232 | name: vector_math 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "2.0.8" 236 | xml: 237 | dependency: transitive 238 | description: 239 | name: xml 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "3.5.0" 243 | sdks: 244 | dart: ">=2.4.0 <3.0.0" 245 | flutter: ">=0.3.0 <2.0.0" 246 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutterhotelbookingapp 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | font_awesome_flutter: 8.8.1 27 | http: ^0.12.0+4 28 | page_indicator: ^0.3.0 29 | rect_getter: 0.0.1 30 | flare_flutter: ^1.5.5 31 | dev_dependencies: 32 | flutter_test: 33 | sdk: flutter 34 | 35 | 36 | # For information on the generic Dart part of this file, see the 37 | # following page: https://dart.dev/tools/pub/pubspec 38 | 39 | # The following section is specific to Flutter. 40 | flutter: 41 | 42 | # The following line ensures that the Material Icons font is 43 | # included with your application, so that you can use the icons in 44 | # the material Icons class. 45 | uses-material-design: true 46 | 47 | # To add assets to your application, add an assets section, like this: 48 | # assets: 49 | # - images/a_dot_burr.jpeg 50 | # - images/a_dot_ham.jpeg 51 | assets: 52 | - assets/images/icons/ic_home_menu.png 53 | - assets/images/icons/ic_account.png 54 | - assets/images/icons/ic_cart.png 55 | - assets/images/icons/ic_discount.png 56 | - assets/images/icons/ic_room.png 57 | - assets/images/icons/ic_home.png 58 | - assets/images/icons/ic_delete.png 59 | - assets/images/icons/ic_near_by.png 60 | - assets/images/icons/ic_credit_card.png 61 | - assets/images/icons/ic_app_icon.png 62 | - assets/images/icons/ic_food_express.png 63 | - assets/images/icons/ic_app_icon_black.png 64 | - assets/images/icons/ic_favorite.png 65 | - assets/images/icons/ic_search.png 66 | - assets/images/icons/ic_home.png 67 | - assets/images/icons/ic_notification.png 68 | - assets/images/icons/user.png 69 | - assets/images/icons/ic_popular.png 70 | - assets/images/popular_destination/london.jpg 71 | - assets/images/deal/deal1.jpg 72 | - assets/images/deal/deal2.jpg 73 | - assets/images/deal/deal3.jpg 74 | - assets/images/deal/deal4.jpg 75 | - assets/images/deal/deal5.jpg 76 | - assets/images/deal/deal6.jpg 77 | - assets/images/deal/deal7.jpg 78 | - assets/images/deal/deal8.jpg 79 | # An image asset can refer to one or more resolution-specific "variants", see 80 | # https://flutter.dev/assets-and-images/#resolution-aware. 81 | 82 | # For details regarding adding assets from package dependencies, see 83 | # https://flutter.dev/assets-and-images/#from-packages 84 | 85 | # To add custom fonts to your application, add a fonts section here, 86 | # in this "flutter" section. Each entry in this list should have a 87 | # "family" key with the font family name, and a "fonts" key with a 88 | # list giving the asset and other descriptors for the font. For 89 | # example: 90 | # fonts: 91 | # - family: Schyler 92 | # fonts: 93 | # - asset: fonts/Schyler-Regular.ttf 94 | # - asset: fonts/Schyler-Italic.ttf 95 | # style: italic 96 | # - family: Trajan Pro 97 | # fonts: 98 | # - asset: fonts/TrajanPro.ttf 99 | # - asset: fonts/TrajanPro_Bold.ttf 100 | # weight: 700 101 | # 102 | # For details regarding fonts from package dependencies, 103 | # see https://flutter.dev/custom-fonts/#from-packages 104 | fonts: 105 | - family: PlayfairDisplay 106 | fonts: 107 | - asset: assets/fonts/PlayfairDisplay-Bold.ttf 108 | - asset: assets/fonts/PlayfairDisplay-Medium.ttf 109 | - asset: assets/fonts/PlayfairDisplay-Regular.ttf -------------------------------------------------------------------------------- /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:flutterhotelbookingapp/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 | --------------------------------------------------------------------------------