Repository: sangvaleap/app-flutter-real-estate Branch: main Commit: 42c072aaa400 Files: 57 Total size: 90.1 KB Directory structure: gitextract_keuw3mqv/ ├── .gitignore ├── .metadata ├── .vscode/ │ └── settings.json ├── README.md ├── android/ │ ├── .gitignore │ ├── app/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── debug/ │ │ │ └── AndroidManifest.xml │ │ ├── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin/ │ │ │ │ └── com/ │ │ │ │ └── example/ │ │ │ │ └── real_estate/ │ │ │ │ └── MainActivity.kt │ │ │ └── res/ │ │ │ ├── drawable/ │ │ │ │ └── launch_background.xml │ │ │ ├── drawable-v21/ │ │ │ │ └── launch_background.xml │ │ │ ├── values/ │ │ │ │ └── styles.xml │ │ │ └── values-night/ │ │ │ └── styles.xml │ │ └── profile/ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle/ │ │ └── wrapper/ │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ └── settings.gradle ├── ios/ │ ├── .gitignore │ ├── Flutter/ │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Runner/ │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets/ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ └── LaunchImage.imageset/ │ │ │ ├── Contents.json │ │ │ └── README.md │ │ ├── Base.lproj/ │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── Runner-Bridging-Header.h │ ├── Runner.xcodeproj/ │ │ ├── project.pbxproj │ │ ├── project.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata/ │ │ └── xcschemes/ │ │ └── Runner.xcscheme │ └── Runner.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ ├── IDEWorkspaceChecks.plist │ └── WorkspaceSettings.xcsettings ├── lib/ │ ├── main.dart │ ├── pages/ │ │ ├── explore.dart │ │ ├── home.dart │ │ └── root.dart │ ├── theme/ │ │ └── color.dart │ ├── utils/ │ │ └── data.dart │ └── widgets/ │ ├── bottombar_item.dart │ ├── broker_item.dart │ ├── category_item.dart │ ├── company_item.dart │ ├── custom_image.dart │ ├── custom_textbox.dart │ ├── icon_box.dart │ ├── property_item.dart │ ├── recent_item.dart │ └── recommend_item.dart ├── pubspec.yaml └── test/ └── widget_test.dart ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub related **/doc/api/ **/ios/Flutter/.last_build_id .dart_tool/ .flutter-plugins .flutter-plugins-dependencies .packages .pub-cache/ .pub/ /build/ # Web related lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols # Obfuscation related app.*.map.json # Android Studio will place build artifacts here /android/app/debug /android/app/profile /android/app/release ================================================ FILE: .metadata ================================================ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # # This file should be version controlled and should not be manually edited. version: revision: d79295af24c3ed621c33713ecda14ad196fd9c31 channel: stable project_type: app ================================================ FILE: .vscode/settings.json ================================================ { "dart.flutterSdkPath": "/Users/sangvaleapvanny/fvm/versions/stable" } ================================================ FILE: README.md ================================================ # Real Estate App - Flutter - Preview video: https://youtu.be/11u0KeymAAs - Support my work: https://www.patreon.com/sangvaleap - [My Twitter](https://twitter.com/sangvaleap) - [My Patreon](https://www.patreon.com/sangvaleap) - [My Linkedin](https://www.linkedin.com/in/sangvaleap-vanny-353b25aa/) Screen Shot 2022-01-05 at 6 43 05 PM Screen Shot 2022-01-05 at 6 43 24 PM Screen Shot 2022-01-05 at 6 43 45 PM Screen Shot 2022-01-05 at 6 44 48 PM Screen Shot 2022-01-05 at 6 45 16 PM Screen Shot 2022-01-05 at 6 44 06 PM Screen Shot 2022-01-05 at 6 44 22 PM ================================================ FILE: android/.gitignore ================================================ gradle-wrapper.jar /.gradle /captures/ /gradlew /gradlew.bat /local.properties GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties ================================================ FILE: android/app/build.gradle ================================================ def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 30 sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.real_estate" minSdkVersion 16 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } ================================================ FILE: android/app/src/debug/AndroidManifest.xml ================================================ ================================================ FILE: android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: android/app/src/main/kotlin/com/example/real_estate/MainActivity.kt ================================================ package com.example.real_estate import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { } ================================================ FILE: android/app/src/main/res/drawable/launch_background.xml ================================================ ================================================ FILE: android/app/src/main/res/drawable-v21/launch_background.xml ================================================ ================================================ FILE: android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: android/app/src/main/res/values-night/styles.xml ================================================ ================================================ FILE: android/app/src/profile/AndroidManifest.xml ================================================ ================================================ FILE: android/build.gradle ================================================ buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir } ================================================ FILE: android/gradle/wrapper/gradle-wrapper.properties ================================================ #Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip ================================================ FILE: android/gradle.properties ================================================ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true ================================================ FILE: android/settings.gradle ================================================ include ':app' def localPropertiesFile = new File(rootProject.projectDir, "local.properties") def properties = new Properties() assert localPropertiesFile.exists() localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" ================================================ FILE: ios/.gitignore ================================================ *.mode1v3 *.mode2v3 *.moved-aside *.pbxuser *.perspectivev3 **/*sync/ .sconsign.dblite .tags* **/.vagrant/ **/DerivedData/ Icon? **/Pods/ **/.symlinks/ profile xcuserdata **/.generated/ Flutter/App.framework Flutter/Flutter.framework Flutter/Flutter.podspec Flutter/Generated.xcconfig Flutter/ephemeral/ Flutter/app.flx Flutter/app.zip Flutter/flutter_assets/ Flutter/flutter_export_environment.sh ServiceDefinitions.json Runner/GeneratedPluginRegistrant.* # Exceptions to above rules. !default.mode1v3 !default.mode2v3 !default.pbxuser !default.perspectivev3 ================================================ FILE: ios/Flutter/AppFrameworkInfo.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable App CFBundleIdentifier io.flutter.flutter.app CFBundleInfoDictionaryVersion 6.0 CFBundleName App CFBundlePackageType FMWK CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 MinimumOSVersion 8.0 ================================================ FILE: ios/Flutter/Debug.xcconfig ================================================ #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" ================================================ FILE: ios/Flutter/Release.xcconfig ================================================ #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" ================================================ FILE: ios/Podfile ================================================ # Uncomment this line to define a global platform for your project # platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end ================================================ FILE: ios/Runner/AppDelegate.swift ================================================ import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } ================================================ FILE: ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@3x.png", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@3x.png", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@3x.png", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@3x.png", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@1x.png", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@1x.png", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@1x.png", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@2x.png", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "Icon-App-83.5x83.5@2x.png", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "Icon-App-1024x1024@1x.png", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "LaunchImage.png", "scale" : "1x" }, { "idiom" : "universal", "filename" : "LaunchImage@2x.png", "scale" : "2x" }, { "idiom" : "universal", "filename" : "LaunchImage@3x.png", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md ================================================ # Launch Screen Assets You can customize the launch screen with your own desired assets by replacing the image files in this directory. 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. ================================================ FILE: ios/Runner/Base.lproj/LaunchScreen.storyboard ================================================ ================================================ FILE: ios/Runner/Base.lproj/Main.storyboard ================================================ ================================================ FILE: ios/Runner/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName real_estate CFBundlePackageType APPL CFBundleShortVersionString $(FLUTTER_BUILD_NAME) CFBundleSignature ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ================================================ FILE: ios/Runner/Runner-Bridging-Header.h ================================================ #import "GeneratedPluginRegistrant.h" ================================================ FILE: ios/Runner.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 6C8ECD6F2486B73DB85F45CD /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2279A86D9B11C7C39B90F506 /* Pods_Runner.framework */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ 9705A1C41CF9048500538489 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 1C5CC7E46934FDE0E447442D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 2279A86D9B11C7C39B90F506 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33FEEB79E32B62423941CBAA /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; AA70A6DF0334C2E535E224A2 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 6C8ECD6F2486B73DB85F45CD /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 6E75A15E6B4C7D2038234B4B /* Frameworks */ = { isa = PBXGroup; children = ( 2279A86D9B11C7C39B90F506 /* Pods_Runner.framework */, ); name = Frameworks; sourceTree = ""; }; 92F4E10C4DBF0C36141E5840 /* Pods */ = { isa = PBXGroup; children = ( 33FEEB79E32B62423941CBAA /* Pods-Runner.debug.xcconfig */, AA70A6DF0334C2E535E224A2 /* Pods-Runner.release.xcconfig */, 1C5CC7E46934FDE0E447442D /* Pods-Runner.profile.xcconfig */, ); name = Pods; path = Pods; sourceTree = ""; }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, ); name = Flutter; sourceTree = ""; }; 97C146E51CF9000F007C117D = { isa = PBXGroup; children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, 92F4E10C4DBF0C36141E5840 /* Pods */, 6E75A15E6B4C7D2038234B4B /* Frameworks */, ); sourceTree = ""; }; 97C146EF1CF9000F007C117D /* Products */ = { isa = PBXGroup; children = ( 97C146EE1CF9000F007C117D /* Runner.app */, ); name = Products; sourceTree = ""; }; 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 97C147021CF9000F007C117D /* Info.plist */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( 94D7F106CD18BA2772B4BC0B /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 6FF052D9A0599EBE3CDD6061 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); dependencies = ( ); name = Runner; productName = Runner; productReference = 97C146EE1CF9000F007C117D /* Runner.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 1020; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; LastSwiftMigration = 1100; }; }; }; buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = 97C146E51CF9000F007C117D; productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 97C146ED1CF9000F007C117D /* Runner */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Thin Binary"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; 6FF052D9A0599EBE3CDD6061 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; 94D7F106CD18BA2772B4BC0B /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( ); inputPaths = ( "${PODS_PODFILE_DIR_PATH}/Podfile.lock", "${PODS_ROOT}/Manifest.lock", ); name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( ); outputPaths = ( "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Run Script"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 97C146FA1CF9000F007C117D /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( 97C146FB1CF9000F007C117D /* Base */, ); name = Main.storyboard; sourceTree = ""; }; 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( 97C147001CF9000F007C117D /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Profile; }; 249021D4217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.example.realEstate; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Release; }; 97C147061CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.example.realEstate; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 97C147071CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.example.realEstate; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147031CF9000F007C117D /* Debug */, 97C147041CF9000F007C117D /* Release */, 249021D3217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147061CF9000F007C117D /* Debug */, 97C147071CF9000F007C117D /* Release */, 249021D4217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } ================================================ FILE: ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme ================================================ ================================================ FILE: ios/Runner.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: lib/main.dart ================================================ import 'package:flutter/material.dart'; import 'pages/root.dart'; import 'theme/color.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Real Estate App', theme: ThemeData( primaryColor: AppColor.primary, ), home: const RootApp(), ); } } ================================================ FILE: lib/pages/explore.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'package:real_estate/utils/data.dart'; import 'package:real_estate/widgets/broker_item.dart'; import 'package:real_estate/widgets/company_item.dart'; import 'package:real_estate/widgets/custom_textbox.dart'; import 'package:real_estate/widgets/icon_box.dart'; import 'package:real_estate/widgets/recommend_item.dart'; class ExplorePage extends StatefulWidget { const ExplorePage({Key? key}) : super(key: key); @override _ExplorePageState createState() => _ExplorePageState(); } class _ExplorePageState extends State { @override Widget build(BuildContext context) { return CustomScrollView( slivers: [ SliverAppBar( backgroundColor: AppColor.appBgColor, pinned: true, snap: true, floating: true, title: _buildHeader(), ), SliverToBoxAdapter(child: _buildBody()) ], ); } _buildHeader() { return Row( children: [ Expanded( child: CustomTextBox( hint: "Search", prefix: Icon(Icons.search, color: Colors.grey), ), ), const SizedBox( width: 10, ), IconBox( child: Icon(Icons.filter_list_rounded, color: Colors.white), bgColor: AppColor.secondary, radius: 10, ) ], ); } _buildBody() { return SingleChildScrollView( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox( height: 20, ), const Padding( padding: EdgeInsets.only(left: 15), child: Text( "Matched Properties", style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600), ), ), const SizedBox( height: 20, ), _buildRecommended(), const SizedBox( height: 20, ), const Padding( padding: EdgeInsets.only(left: 15), child: Text( "Companies", style: TextStyle( fontSize: 18, fontWeight: FontWeight.w600, ), ), ), const SizedBox( height: 20, ), _buildCompanies(), const SizedBox( height: 20, ), _buildBrokers(), const SizedBox( height: 100, ), ], ), ); } _buildRecommended() { List lists = List.generate( recommended.length, (index) => RecommendItem( data: recommended[index], ), ); return SingleChildScrollView( scrollDirection: Axis.horizontal, padding: EdgeInsets.only(bottom: 5, left: 15), child: Row(children: lists), ); } int _selectedCategory = 0; _buildCompanies() { List lists = List.generate( companies.length, (index) => CompanyItem( data: companies[index], color: AppColor.listColors[index % 10], selected: index == _selectedCategory, onTap: () { setState(() { _selectedCategory = index; }); }, ), ); return SingleChildScrollView( scrollDirection: Axis.horizontal, padding: EdgeInsets.only(bottom: 5, left: 15), child: Row(children: lists), ); } _buildBrokers() { List lists = List.generate( brokers.length, (index) => BrokerItem( data: brokers[index], ), ); return Padding( padding: EdgeInsets.symmetric(horizontal: 15), child: Column(children: lists), ); } } ================================================ FILE: lib/pages/home.dart ================================================ import 'package:carousel_slider/carousel_slider.dart'; import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'package:real_estate/utils/data.dart'; import 'package:real_estate/widgets/category_item.dart'; import 'package:real_estate/widgets/custom_image.dart'; import 'package:real_estate/widgets/custom_textbox.dart'; import 'package:real_estate/widgets/icon_box.dart'; import 'package:real_estate/widgets/property_item.dart'; import 'package:real_estate/widgets/recent_item.dart'; import 'package:real_estate/widgets/recommend_item.dart'; class HomePage extends StatefulWidget { const HomePage({Key? key}) : super(key: key); @override _HomePageState createState() => _HomePageState(); } class _HomePageState extends State { @override Widget build(BuildContext context) { return CustomScrollView( slivers: [ SliverAppBar( backgroundColor: AppColor.appBgColor, pinned: true, snap: true, floating: true, title: _buildHeader(), ), SliverToBoxAdapter(child: _buildBody()) ], ); } _buildHeader() { return Column( children: [ Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Hello!", style: TextStyle( color: AppColor.darker, fontSize: 14, fontWeight: FontWeight.w500, ), ), Text( "Sangvaleap", style: TextStyle( color: Colors.black87, fontSize: 17, fontWeight: FontWeight.w600, ), ), ], ), CustomImage( profile, width: 35, height: 35, trBackground: true, borderColor: AppColor.primary, radius: 10, ), ], ), ], ); } _buildBody() { return SingleChildScrollView( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox( height: 15, ), _buildSearch(), const SizedBox( height: 20, ), _buildCategories(), const SizedBox( height: 20, ), Padding( padding: EdgeInsets.symmetric(horizontal: 15), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: const [ Text( "Popular", style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600), ), Text( "See all", style: TextStyle(fontSize: 14, color: AppColor.darker), ), ], ), ), const SizedBox( height: 20, ), _buildPopulars(), const SizedBox( height: 20, ), Padding( padding: EdgeInsets.symmetric(horizontal: 15), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( "Recommended", style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600), ), Text( "See all", style: TextStyle(fontSize: 14, color: AppColor.darker), ), ], ), ), const SizedBox( height: 20, ), _buildRecommended(), const SizedBox( height: 20, ), Padding( padding: EdgeInsets.symmetric(horizontal: 15), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( "Recent", style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600), ), Text( "See all", style: TextStyle(fontSize: 14, color: AppColor.darker), ), ], ), ), const SizedBox( height: 20, ), _buildRecent(), const SizedBox( height: 100, ), ], ), ); } Widget _buildSearch() { return Padding( padding: const EdgeInsets.symmetric(horizontal: 15), child: Row( children: [ Expanded( child: CustomTextBox( hint: "Search", prefix: Icon(Icons.search, color: Colors.grey), ), ), const SizedBox( width: 10, ), IconBox( child: Icon(Icons.filter_list_rounded, color: Colors.white), bgColor: AppColor.secondary, radius: 10, ) ], ), ); } int _selectedCategory = 0; Widget _buildCategories() { List lists = List.generate( categories.length, (index) => CategoryItem( data: categories[index], selected: index == _selectedCategory, onTap: () { setState(() { _selectedCategory = index; }); }, ), ); return SingleChildScrollView( scrollDirection: Axis.horizontal, padding: EdgeInsets.only(bottom: 5, left: 15), child: Row(children: lists), ); } Widget _buildPopulars() { return CarouselSlider( options: CarouselOptions( height: 240, enlargeCenterPage: true, disableCenter: true, viewportFraction: .8, ), items: List.generate( populars.length, (index) => PropertyItem( data: populars[index], ), ), ); } Widget _buildRecommended() { List lists = List.generate( recommended.length, (index) => RecommendItem( data: recommended[index], ), ); return SingleChildScrollView( scrollDirection: Axis.horizontal, padding: EdgeInsets.only(bottom: 5, left: 15), child: Row(children: lists), ); } Widget _buildRecent() { List lists = List.generate( recents.length, (index) => RecentItem( data: recents[index], ), ); return SingleChildScrollView( scrollDirection: Axis.horizontal, padding: EdgeInsets.only(bottom: 5, left: 15), child: Row(children: lists), ); } } ================================================ FILE: lib/pages/root.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/pages/explore.dart'; import 'package:real_estate/theme/color.dart'; import 'package:real_estate/widgets/bottombar_item.dart'; import 'home.dart'; class RootApp extends StatefulWidget { const RootApp({Key? key}) : super(key: key); @override _RootAppState createState() => _RootAppState(); } class _RootAppState extends State { int _activeTab = 0; final List _barItems = [ { "icon": Icons.home_outlined, "active_icon": Icons.home_rounded, "page": HomePage(), }, { "icon": Icons.search_outlined, "active_icon": Icons.search, "page": ExplorePage(), }, { "icon": Icons.favorite_border, "active_icon": Icons.favorite_outlined, "page": HomePage(), }, { "icon": Icons.forum_outlined, "active_icon": Icons.forum_rounded, "page": HomePage(), }, { "icon": Icons.settings_outlined, "active_icon": Icons.settings_rounded, "page": HomePage(), }, ]; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: AppColor.appBgColor, body: _buildPage(), floatingActionButton: _buildBottomBar(), floatingActionButtonLocation: FloatingActionButtonLocation.miniCenterDocked, ); } Widget _buildPage() { return IndexedStack( index: _activeTab, children: List.generate( _barItems.length, (index) => _barItems[index]["page"], ), ); } Widget _buildBottomBar() { return Container( height: 55, width: double.infinity, margin: EdgeInsets.symmetric(horizontal: 15), decoration: BoxDecoration( color: AppColor.bottomBarColor, borderRadius: BorderRadius.circular(20), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), blurRadius: 1, spreadRadius: 1, offset: Offset(0, 1), ) ], ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, crossAxisAlignment: CrossAxisAlignment.end, children: List.generate( _barItems.length, (index) => BottomBarItem( _activeTab == index ? _barItems[index]["active_icon"] : _barItems[index]["icon"], isActive: _activeTab == index, activeColor: AppColor.primary, onTap: () { setState(() { _activeTab = index; }); }, ), ), ), ); } } ================================================ FILE: lib/theme/color.dart ================================================ import 'package:flutter/material.dart'; class AppColor { static const primary = Color(0xFF3498db); static const secondary = Color(0xFF2ecc71); static const darker = Color(0xFF3E4249); static const cardColor = Colors.white; static const mainColor = Color(0xFF000000); static const appBgColor = Color(0xFFFAFAFA); static const shadowColor = Colors.black87; static const textBoxColor = Colors.white; static const bottomBarColor = Colors.white; static const inActiveColor = Colors.grey; static const yellow = Color(0xFFffcb66); static const green = Color(0xFFb2e1b5); static const pink = Color(0xFFf5bde8); static const purple = Color(0xFFd9bcff); static const red = Color(0xFFff4b60); static const orange = Color(0xFFFFC8A2); static const sky = Color(0xFFABDEE6); static const blue = Color(0xFF509BE4); static const listColors = [ green, purple, yellow, orange, sky, secondary, red, blue, pink, yellow, ]; } ================================================ FILE: lib/utils/data.dart ================================================ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; var profile = "https://avatars.githubusercontent.com/u/86506519?v=4"; List populars = [ { "image": "https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Single Villa", "price": "\$280k", "location": "Phnom Penh, Cambodia", "is_favorited": true, }, { "image": "https://images.unsplash.com/photo-1598928506311-c55ded91a20c?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Convertible Studio", "price": "\$150k", "location": "Phnom Penh, Cambodia", "is_favorited": false, }, { "image": "https://images.unsplash.com/photo-1576941089067-2de3c901e126?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Twin Castle", "price": "\$175k", "location": "Phnom Penh, Cambodia", "is_favorited": false, }, { "image": "https://images.unsplash.com/photo-1549517045-bc93de075e53?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Twin Villa", "price": "\$120k", "location": "Phnom Penh, Cambodia", "is_favorited": false, }, ]; List recommended = [ { "image": "https://images.unsplash.com/photo-1592595896616-c37162298647?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Garden House", "price": "\$180k", "location": "Phnom Penh", "is_favorited": true, }, { "image": "https://images.unsplash.com/photo-1576941089067-2de3c901e126?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Twin Castle", "price": "\$175k", "location": "Phnom Penh, Cambodia", "is_favorited": false, }, { "image": "https://images.unsplash.com/photo-1625602812206-5ec545ca1231?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "King Villa", "price": "\$180k", "location": "Phnom Penh, Cambodia", "is_favorited": true, }, ]; List recents = [ { "image": "https://images.unsplash.com/photo-1549517045-bc93de075e53?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Double Villa", "price": "\$180k", "location": "Phnom Penh", "is_favorited": false, }, { "image": "https://images.unsplash.com/photo-1598928506311-c55ded91a20c?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Convertible Studio", "price": "\$150k", "location": "Phnom Penh", "is_favorited": false, }, { "image": "https://images.unsplash.com/photo-1576941089067-2de3c901e126?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Double Villa", "price": "\$180k", "location": "Phnom Penh", "is_favorited": false, }, ]; List categories = [ { "name" : "All", "icon" : FontAwesomeIcons.boxes }, { "name" : "Villa", "icon" : FontAwesomeIcons.university }, { "name" : "Shop", "icon" : FontAwesomeIcons.storeAlt }, { "name" : "Building", "icon" : FontAwesomeIcons.building }, { "name" : "House", "icon" : FontAwesomeIcons.home }, ]; var brokers = [ { "image": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MjV8fHByb2ZpbGV8ZW58MHx8MHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "John Siphron", "type": "Broker", "description": "Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document", "rate": 4, }, { "image":"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MTF8fHByb2ZpbGV8ZW58MHx8MHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name" : "Corey Aminoff", "type": "Broker", "description": "Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document", "rate": 4, }, { "image" : "https://images.unsplash.com/photo-1617069470302-9b5592c80f66?ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8Z2lybHxlbnwwfHwwfHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Siriya Aminoff", "type": "Broker", "description": "Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document", "rate": 4, }, { "image" : "https://images.unsplash.com/photo-1545167622-3a6ac756afa4?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MTB8fHByb2ZpbGV8ZW58MHx8MHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Rubin Joe", "type": "Broker", "description": "Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document", "rate": 4, }, ]; List companies = [ { "image": "https://images.unsplash.com/photo-1549517045-bc93de075e53?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "TS Home", "location": "Phnom Penh, Cambodia", "type": "Broker", "is_favorited": false, "icon" : Icons.domain_rounded }, { "image": "https://images.unsplash.com/photo-1618221469555-7f3ad97540d6?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Century 21", "location": "Phnom Penh, Cambodia", "type": "Broker", "is_favorited": true, "icon" : Icons.house_siding_rounded }, { "image": "https://images.unsplash.com/photo-1625602812206-5ec545ca1231?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Dabest Pro", "location": "Phnom Penh, Cambodia", "type": "Broker", "is_favorited": true, "icon" : Icons.home_work_rounded }, { "image": "https://images.unsplash.com/photo-1625602812206-5ec545ca1231?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8Zm9vZHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60", "name": "Cam Reality", "location": "Phnom Penh, Cambodia", "type": "Broker", "is_favorited": true, "icon" : Icons.location_city_rounded }, ]; ================================================ FILE: lib/widgets/bottombar_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class BottomBarItem extends StatelessWidget { const BottomBarItem( this.icon, { this.onTap, this.color = AppColor.inActiveColor, this.activeColor = AppColor.primary, this.isActive = false, this.isNotified = false, }); final IconData icon; final Color color; final Color activeColor; final bool isNotified; final bool isActive; final GestureTapCallback? onTap; @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( alignment: Alignment.center, child: Stack( alignment: Alignment.center, children: [ Container( padding: EdgeInsets.all(7), decoration: BoxDecoration( borderRadius: BorderRadius.circular(50), color: isActive ? AppColor.primary.withOpacity(.1) : Colors.transparent, ), child: Icon( icon, size: 25, color: isActive ? activeColor : color, ), ), Positioned( bottom: -8, child: Icon( Icons.arrow_drop_up, size: 20.0, color: isActive ? activeColor : Colors.transparent, ), ), ], ), ), ); } } ================================================ FILE: lib/widgets/broker_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'custom_image.dart'; class BrokerItem extends StatelessWidget { const BrokerItem({Key? key, required this.data}) : super(key: key); final data; @override Widget build(BuildContext context) { return Container( padding: EdgeInsets.all(10), margin: EdgeInsets.only(bottom: 10), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: .5, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ _buildProfile(), const SizedBox( height: 10, ), Text( data["description"], style: TextStyle(height: 1.5, color: AppColor.darker), ), const SizedBox( height: 10, ), _buildRate() ], ), ); } Widget _buildProfile() { return Row( children: [ CustomImage( data["image"], width: 35, height: 35, ), const SizedBox( width: 10, ), Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( data["name"], style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500), ), const SizedBox( height: 3, ), Text( data["type"], style: TextStyle(fontSize: 12, color: Colors.grey), ), ], ) ], ); } Widget _buildRate() { return Row( children: [ Icon( Icons.star, size: 16, color: AppColor.yellow, ), Icon( Icons.star, size: 16, color: AppColor.yellow, ), Icon( Icons.star, size: 16, color: AppColor.yellow, ), Icon( Icons.star, size: 16, color: AppColor.yellow, ), Icon( Icons.star_outline, size: 16, color: AppColor.yellow, ), ], ); } } ================================================ FILE: lib/widgets/category_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class CategoryItem extends StatelessWidget { const CategoryItem({ Key? key, required this.data, this.selected = false, this.onTap, }) : super(key: key); final data; final bool selected; final GestureTapCallback? onTap; @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: AnimatedContainer( duration: const Duration(milliseconds: 500), curve: Curves.fastOutSlowIn, padding: EdgeInsets.fromLTRB(5, 20, 5, 0), margin: EdgeInsets.only(right: 10), width: 90, height: 90, decoration: BoxDecoration( color: selected ? AppColor.primary : AppColor.cardColor, borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: .5, blurRadius: .5, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Column( children: [ Icon( data["icon"], size: 25, color: selected ? Colors.white : Colors.black, ), const SizedBox( height: 5, ), Expanded( child: Text( data["name"], maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( fontSize: 13, color: selected ? Colors.white : AppColor.darker, ), ), ), ], ), ), ); } } ================================================ FILE: lib/widgets/company_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class CompanyItem extends StatelessWidget { const CompanyItem({ Key? key, required this.data, this.bgColor = Colors.white, this.color = AppColor.primary, this.selected = false, this.onTap, }) : super(key: key); final data; final Color bgColor; final Color color; final bool selected; final GestureTapCallback? onTap; @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( width: 110, height: 110, margin: EdgeInsets.only(right: 15), padding: EdgeInsets.fromLTRB(5, 10, 5, 0), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: .5, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( padding: EdgeInsets.all(7), decoration: BoxDecoration( shape: BoxShape.circle, color: color.withOpacity(.3), ), child: Icon(data["icon"], color: color), ), const SizedBox( height: 8, ), Text( data["name"], maxLines: 1, style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500), ), const SizedBox( height: 5, ), Expanded( child: Text( data["type"], style: TextStyle(fontSize: 12, color: AppColor.darker), ), ), Visibility( visible: selected, child: Container( width: double.infinity, height: 2, decoration: BoxDecoration(color: AppColor.primary), ), ), ], ), ), ); } } ================================================ FILE: lib/widgets/custom_image.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class CustomImage extends StatelessWidget { const CustomImage( this.name, { this.width = 100, this.height = 100, this.bgColor, this.borderWidth = 0, this.borderColor, this.trBackground = false, this.isNetwork = true, this.radius = 50, }); final String name; final double width; final double height; final double borderWidth; final Color? borderColor; final Color? bgColor; final bool trBackground; final bool isNetwork; final double radius; @override Widget build(BuildContext context) { return Container( width: width, height: height, decoration: BoxDecoration( color: bgColor, borderRadius: BorderRadius.circular(radius), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: 1, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], image: DecorationImage( image: NetworkImage(name), fit: BoxFit.cover, ), ), ); } } ================================================ FILE: lib/widgets/custom_textbox.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class CustomTextBox extends StatelessWidget { const CustomTextBox({ Key? key, this.hint = "", this.prefix, this.suffix, this.controller, this.readOnly = false, }) : super(key: key); final String hint; final Widget? prefix; final Widget? suffix; final bool readOnly; final TextEditingController? controller; @override Widget build(BuildContext context) { return Container( alignment: Alignment.center, padding: EdgeInsets.only(bottom: 3), height: 40, decoration: BoxDecoration( color: AppColor.textBoxColor, border: Border.all(color: AppColor.textBoxColor), borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(.05), spreadRadius: .5, blurRadius: .5, offset: Offset(0, 1), // changes position of shadow ), ], ), child: TextField( readOnly: readOnly, controller: controller, decoration: InputDecoration( prefixIcon: prefix, suffixIcon: suffix, border: InputBorder.none, hintText: hint, hintStyle: TextStyle( color: Colors.grey, fontSize: 15, ), ), ), ); } } ================================================ FILE: lib/widgets/icon_box.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; class IconBox extends StatelessWidget { const IconBox({ Key? key, required this.child, this.bgColor, this.onTap, this.borderColor = Colors.transparent, this.radius = 50, }) : super(key: key); final Widget child; final Color borderColor; final Color? bgColor; final double radius; final GestureTapCallback? onTap; @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( padding: EdgeInsets.all(5), decoration: BoxDecoration( color: bgColor, borderRadius: BorderRadius.circular(radius), border: Border.all(color: borderColor), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: 1, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: child, ), ); } } ================================================ FILE: lib/widgets/property_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'custom_image.dart'; import 'icon_box.dart'; class PropertyItem extends StatelessWidget { const PropertyItem({Key? key, required this.data}) : super(key: key); final data; @override Widget build(BuildContext context) { return Container( width: double.infinity, height: 240, margin: EdgeInsets.fromLTRB(0, 0, 0, 5), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(25), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: .5, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Stack( children: [ CustomImage( data["image"], width: double.infinity, height: 150, radius: 25, ), Positioned( right: 20, top: 130, child: _buildFavorite(), ), Positioned( left: 15, top: 160, child: _buildInfo(), ), ], ), ); } Widget _buildFavorite() { return IconBox( bgColor: AppColor.red, child: Icon( data["is_favorited"] ? Icons.favorite : Icons.favorite_border, color: Colors.white, size: 20, ), ); } Widget _buildInfo() { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( data["name"], maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600), ), const SizedBox( height: 5, ), Row( children: [ Icon( Icons.place_outlined, color: AppColor.darker, size: 13, ), const SizedBox( width: 3, ), Text( data["location"], style: TextStyle(fontSize: 13, color: AppColor.darker), ), ], ), const SizedBox( height: 5, ), Text( data["price"], style: TextStyle( fontSize: 15, color: AppColor.primary, fontWeight: FontWeight.w500, ), ), ], ); } } ================================================ FILE: lib/widgets/recent_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'custom_image.dart'; class RecentItem extends StatelessWidget { const RecentItem({Key? key, required this.data}) : super(key: key); final data; @override Widget build(BuildContext context) { return Container( width: 280, margin: EdgeInsets.only(right: 15), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(20), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: 1, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Row( children: [ CustomImage( data["image"], radius: 20, ), const SizedBox( width: 15, ), Expanded( child: _buildInfo(), ) ], ), ); } Widget _buildInfo() { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( data["name"], maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600), ), const SizedBox( height: 5, ), Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ Icon( Icons.place_outlined, size: 13, ), const SizedBox( width: 3, ), Expanded( child: Text( data["location"], maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( fontSize: 12, ), ), ), ], ), const SizedBox( height: 5, ), Text( data["price"], style: TextStyle( fontSize: 13, color: AppColor.primary, fontWeight: FontWeight.w500, ), ) ], ); } } ================================================ FILE: lib/widgets/recommend_item.dart ================================================ import 'package:flutter/material.dart'; import 'package:real_estate/theme/color.dart'; import 'custom_image.dart'; class RecommendItem extends StatelessWidget { const RecommendItem({Key? key, required this.data}) : super(key: key); final data; @override Widget build(BuildContext context) { return Container( width: 220, height: 130, margin: EdgeInsets.only(right: 15), decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), boxShadow: [ BoxShadow( color: AppColor.shadowColor.withOpacity(0.1), spreadRadius: 1, blurRadius: 1, offset: Offset(0, 1), // changes position of shadow ), ], ), child: Stack( children: [ CustomImage( data["image"], radius: 20, width: double.infinity, height: double.infinity, ), _buildOverlay(), Positioned( bottom: 12, left: 10, child: _buildInfo(), ), ], ), ); } Widget _buildOverlay() { return Container( width: double.infinity, height: double.infinity, decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), gradient: LinearGradient( begin: Alignment.bottomCenter, end: Alignment.topCenter, colors: [ Colors.black.withOpacity(.8), Colors.white.withOpacity(.01), ], ), ), ); } Widget _buildInfo() { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( data["name"], maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( color: Colors.white, fontSize: 14, fontWeight: FontWeight.w600, ), ), const SizedBox( height: 5, ), Row( children: [ Icon( Icons.place_outlined, color: Colors.white, size: 13, ), const SizedBox( width: 3, ), Text( data["location"], style: TextStyle( fontSize: 13, color: Colors.white, ), ), ], ), ], ); } } ================================================ FILE: pubspec.yaml ================================================ name: real_estate description: A new Flutter project. publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: sdk: ">=2.12.0 <3.0.0" dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 google_fonts: ^2.1.1 font_awesome_flutter: ^9.2.0 carousel_slider: ^4.0.0 dev_dependencies: flutter_test: sdk: flutter flutter: uses-material-design: true ================================================ FILE: test/widget_test.dart ================================================ // This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility that Flutter provides. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:real_estate/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. await tester.pumpWidget(MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); expect(find.text('1'), findsNothing); // Tap the '+' icon and trigger a frame. await tester.tap(find.byIcon(Icons.add)); await tester.pump(); // Verify that our counter has incremented. expect(find.text('0'), findsNothing); expect(find.text('1'), findsOneWidget); }); }