Repository: flutter-ui-challenges/flutter_challenge_googlemaps Branch: master Commit: ddf3325f0ecf Files: 45 Total size: 89.6 KB Directory structure: gitextract_c3tyndr2/ ├── .gitignore ├── README.md ├── README_CN.md ├── android/ │ ├── app/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── debug/ │ │ │ └── AndroidManifest.xml │ │ ├── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin/ │ │ │ │ └── io/ │ │ │ │ └── ditclear/ │ │ │ │ └── flutter_challenge_googlemaps/ │ │ │ │ └── MainActivity.kt │ │ │ └── res/ │ │ │ ├── drawable/ │ │ │ │ └── launch_background.xml │ │ │ └── values/ │ │ │ └── styles.xml │ │ └── profile/ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle/ │ │ └── wrapper/ │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ └── settings.gradle ├── apk/ │ └── app.apk ├── ios/ │ ├── Flutter/ │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── 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/ │ │ └── xcschemes/ │ │ └── Runner.xcscheme │ └── Runner.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ └── WorkspaceSettings.xcsettings ├── lib/ │ ├── components/ │ │ ├── components.dart │ │ ├── explore_content_widget.dart │ │ ├── explore_widget.dart │ │ ├── map_button.dart │ │ ├── menu_widget.dart │ │ ├── recent_search_widget.dart │ │ ├── search_back_widget.dart │ │ ├── search_menu_widget.dart │ │ └── search_widget.dart │ ├── helper/ │ │ └── ui_helper.dart │ ├── home_page.dart │ └── main.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/ # Visual Studio Code related .vscode/ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ .flutter-plugins .packages .pub-cache/ .pub/ /build/ # Android related **/android/**/gradle-wrapper.jar **/android/.gradle **/android/captures/ **/android/gradlew **/android/gradlew.bat **/android/local.properties **/android/**/GeneratedPluginRegistrant.java # iOS/XCode related **/ios/**/*.mode1v3 **/ios/**/*.mode2v3 **/ios/**/*.moved-aside **/ios/**/*.pbxuser **/ios/**/*.perspectivev3 **/ios/**/*sync/ **/ios/**/.sconsign.dblite **/ios/**/.tags* **/ios/**/.vagrant/ **/ios/**/DerivedData/ **/ios/**/Icon? **/ios/**/Pods/ **/ios/**/.symlinks/ **/ios/**/profile **/ios/**/xcuserdata **/ios/.generated/ **/ios/Flutter/App.framework **/ios/Flutter/Flutter.framework **/ios/Flutter/Generated.xcconfig **/ios/Flutter/app.flx **/ios/Flutter/app.zip **/ios/Flutter/flutter_assets/ **/ios/ServiceDefinitions.json **/ios/Runner/GeneratedPluginRegistrant.* # Exceptions to above rules. !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages ================================================ FILE: README.md ================================================ # # flutter_challenge_googlemaps Use Flutter💪 to implement the UI challenge of Google Maps on [uplabs](https://www.uplabs.com/posts/google-maps-redesign-919dd0d6-0883-4378-b5b2-f77e36adb6b5) . [中文版本](README_CN.md) > Designer : [Joydeep Sengupta](https://www.uplabs.com/joydeeproni) > > Uplabs : > > Developer : [ditclear](https://github.com/ditclear) #### DownLoad [demo.apk](apk/app.apk) #### Introduction | Branch | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | | [master]() | use `setState` to notify UI update | | [provide](https://github.com/flutter-ui-challenges/flutter_challenge_googlemaps/tree/provide) | use [flutter-provide](https://github.com/google/flutter-provide) to notify UI update | | [desktop](https://github.com/flutter-ui-challenges/flutter_challenge_googlemaps/tree/desktop) | use [go-flutter](https://github.com/go-flutter-desktop/go-flutter) to implement UI on Desktop | ### Challenge ![](ui/all.png) ![](ui/attachment.gif) ![](ui/preview.gif) #### 不用客气,buy Me a Lunch ~ [sponsor](https://github.com/flutter-ui-challenges/JoinUs/blob/master/sponsor.md) ### License ``` Copyright 2019 ditclear Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` ================================================ FILE: README_CN.md ================================================ # # flutter_challenge_googlemaps 使用Flutter实现[uplabs](https://www.uplabs.com/posts/google-maps-redesign-919dd0d6-0883-4378-b5b2-f77e36adb6b5)上Google Maps的UI挑战 > 设计师 : [Joydeep Sengupta](https://www.uplabs.com/joydeeproni) > > Uplabs : > > 开发者 : [ditclear](https://github.com/ditclear) #### 下载体验 [demo.apk](apk/app.apk) #### 项目介绍 | 分支 | 描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | | [master]() | 使用 `setState` 来通知UI更新 | | [provide](https://github.com/flutter-ui-challenges/flutter_challenge_googlemaps/tree/provide) | 使用 [flutter-provide来通知UI更新 | | [desktop](https://github.com/flutter-ui-challenges/flutter_challenge_googlemaps/tree/desktop) | 使用 [go-flutter](https://github.com/go-flutter-desktop/go-flutter) 来实现桌面端 | ### 效果图 ![](ui/all.png) ![](ui/attachment.gif) ![](ui/preview.gif) #### 不用客气,buy Me a Lunch ~ [赞助开发者](https://github.com/flutter-ui-challenges/JoinUs/blob/master/sponsor.md) ### License ``` Copyright 2019 ditclear Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` ================================================ 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 28 sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.ditclear.flutter_challenge_googlemaps" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } 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" testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } ================================================ FILE: android/app/src/debug/AndroidManifest.xml ================================================ ================================================ FILE: android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: android/app/src/main/kotlin/io/ditclear/flutter_challenge_googlemaps/MainActivity.kt ================================================ package io.ditclear.flutter_challenge_googlemaps import android.os.Bundle import io.flutter.app.FlutterActivity import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity: FlutterActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) GeneratedPluginRegistrant.registerWith(this) } } ================================================ FILE: android/app/src/main/res/drawable/launch_background.xml ================================================ ================================================ FILE: android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: android/app/src/profile/AndroidManifest.xml ================================================ ================================================ FILE: android/build.gradle ================================================ buildscript { ext.kotlin_version = '1.2.71' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { 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-4.10.2-all.zip ================================================ FILE: android/gradle.properties ================================================ org.gradle.jvmargs=-Xmx1536M ================================================ FILE: android/settings.gradle ================================================ include ':app' def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() def plugins = new Properties() def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') if (pluginsFile.exists()) { pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } } plugins.each { name, path -> def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() include ":$name" project(":$name").projectDir = pluginDirectory } ================================================ 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 "Generated.xcconfig" ================================================ FILE: ios/Flutter/Release.xcconfig ================================================ #include "Generated.xcconfig" ================================================ FILE: ios/Runner/AppDelegate.swift ================================================ import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: 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 en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName flutter_challenge_googlemaps 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 */; }; 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 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 = ( 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, ); 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 = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; 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 = ""; }; 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; 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 = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( 3B80C3931E831B6300D905FE /* App.framework */, 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 9740EEBA1CF902C7004384FC /* Flutter.framework */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, ); name = Flutter; sourceTree = ""; }; 97C146E51CF9000F007C117D = { isa = PBXGroup; children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, ); 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 */, 97C146F11CF9000F007C117D /* Supporting Files */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; sourceTree = ""; }; 97C146F11CF9000F007C117D /* Supporting Files */ = { isa = PBXGroup; children = ( ); name = "Supporting Files"; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, ); 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 = 0910; ORGANIZATIONNAME = "The Chromium Authors"; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; LastSwiftMigration = 0910; }; }; }; buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; 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 */, 9740EEB41CF90195004384FC /* Debug.xcconfig 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\" thin"; }; 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; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 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_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_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 = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = 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; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = S8QB4VV633; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = io.ditclear.flutterChallengeGooglemaps; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 4.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 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_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_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 = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 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_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_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 = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = 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; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = io.ditclear.flutterChallengeGooglemaps; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_SWIFT3_OBJC_INFERENCE = On; SWIFT_VERSION = 4.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; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = io.ditclear.flutterChallengeGooglemaps; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_SWIFT3_OBJC_INFERENCE = On; SWIFT_VERSION = 4.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/xcshareddata/xcschemes/Runner.xcscheme ================================================ ================================================ FILE: ios/Runner.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ BuildSystemType Original ================================================ FILE: lib/components/components.dart ================================================ export 'explore_content_widget.dart'; export 'explore_widget.dart'; export 'map_button.dart'; export 'menu_widget.dart'; export 'recent_search_widget.dart'; export 'search_back_widget.dart'; export 'search_menu_widget.dart'; export 'search_widget.dart'; ================================================ FILE: lib/components/explore_content_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class ExploreContentWidget extends StatelessWidget { final double currentExplorePercent; final placeName = const ["Authentic\nrestaurant", "Famous\nmonuments", "Weekend\ngetaways"]; const ExploreContentWidget({Key key, this.currentExplorePercent}) : super(key: key); @override Widget build(BuildContext context) { if (currentExplorePercent != 0) { return Positioned( top: realH(standardHeight + (162 - standardHeight) * currentExplorePercent), width: screenWidth, child: Container( height: screenHeight, child: ListView( physics: const BouncingScrollPhysics(), shrinkWrap: true, children: [ Opacity( opacity: currentExplorePercent, child: Row( mainAxisSize: MainAxisSize.max, children: [ Expanded( child: Transform.translate( offset: Offset(screenWidth / 3 * (1 - currentExplorePercent), screenWidth / 3 / 2 * (1 - currentExplorePercent)), child: Image.asset( "assets/icon_1.png", width: realH(133), height: realH(133), ), ), ), Expanded( child: Image.asset( "assets/icon_2.png", width: realH(133), height: realH(133), ), ), Expanded( child: Transform.translate( offset: Offset(-screenWidth / 3 * (1 - currentExplorePercent), screenWidth / 3 / 2 * (1 - currentExplorePercent)), child: Image.asset( "assets/icon_3.png", width: realH(133), height: realH(133), ), ), ) ], ), ), Transform.translate( offset: Offset(0, realH(23 + 380 * (1 - currentExplorePercent))), child: Opacity( opacity: currentExplorePercent, child: Container( width: screenWidth, height: realH(172 + (172 * 4 * (1 - currentExplorePercent))), child: ListView( physics: const BouncingScrollPhysics(), scrollDirection: Axis.horizontal, children: [ Padding( padding: EdgeInsets.only(left: realW(22)), ), buildListItem(0, "Authentic\nrestaurant"), buildListItem(1, "Famous\nmonuments"), buildListItem(2, "Weekend\ngetaways"), buildListItem(3, "Authentic\nrestaurant"), buildListItem(4, "Famous\nmonuments"), buildListItem(5, "Weekend\ngetaways"), ], ), ))), Transform.translate( offset: Offset(0, realH(58 + 570 * (1 - currentExplorePercent))), child: Opacity( opacity: currentExplorePercent, child: Padding( padding: EdgeInsets.symmetric(horizontal: realW(22)), child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.max, children: [ Padding( padding: EdgeInsets.only(left: realW(22)), child: Text("EVENTS", style: const TextStyle(color: Colors.white54, fontSize: 13, fontWeight: FontWeight.bold)), ), Stack( children: [ Image.asset( "assets/dj.png", ), Positioned( bottom: realH(26), left: realW(24), child: Text( "Marshmello Live in Concert", style: TextStyle(color: Colors.white, fontSize: realW(16)), )) ], ), Transform.translate( offset: Offset(0, realH(30 - 30 * (currentExplorePercent - 0.75) * 4)), child: Row( children: [ Expanded( child: Image.asset("assets/banner_4.png"), ), Expanded( child: Image.asset("assets/banner_5.png"), ), ], ), ) ], ), ), )), Padding( padding: EdgeInsets.only(bottom: realH(262)), ) ], ), ), ); } else { return const Padding( padding: const EdgeInsets.all(0), ); } } buildListItem(int index, String name) { return Transform.translate( offset: Offset(0, index * realH(127) * (1 - currentExplorePercent)), child: Column( mainAxisSize: MainAxisSize.min, children: [ Image.asset( "assets/banner_${index % 3 + 1}.png", width: realH(127), height: realH(127), ), Text( placeName[index % 3], style: TextStyle(color: Colors.white, fontSize: realH(16)), textAlign: TextAlign.center, ) ], ), ); } } ================================================ FILE: lib/components/explore_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class ExploreWidget extends StatelessWidget { final double currentSearchPercent; final double currentExplorePercent; final Function(bool) animateExplore; final Function(DragUpdateDetails) onVerticalDragUpdate; final Function() onPanDown; final bool isExploreOpen; const ExploreWidget( {Key key, this.currentSearchPercent, this.currentExplorePercent, this.animateExplore, this.isExploreOpen, this.onVerticalDragUpdate, this.onPanDown}) : super(key: key); @override Widget build(BuildContext context) { return Positioned( bottom: realH(-122 * currentSearchPercent), left: (screenWidth - realW(159 + (standardWidth - 159) * currentExplorePercent)) / 2, child: GestureDetector( onTap: () { animateExplore(!isExploreOpen); }, onVerticalDragUpdate: onVerticalDragUpdate, onVerticalDragEnd: (_) { _dispatchExploreOffset(); }, onPanDown: (_) => onPanDown(), child: Opacity( opacity: 1 - currentSearchPercent, child: Container( alignment: Alignment.bottomCenter, width: realW(159 + (standardWidth - 159) * currentExplorePercent), height: realH(122 + (766 - 122) * currentExplorePercent), decoration: BoxDecoration( gradient: LinearGradient(begin: Alignment.topCenter, colors: [ Color(0xFF5496FF), Color(0xFF8739E5), ]), borderRadius: BorderRadius.only( topLeft: Radius.circular(realW(80 + (50 - 80) * currentExplorePercent)), topRight: Radius.circular(realW(80 + (50 - 80) * currentExplorePercent)))), child: Stack( children: [ Positioned( top: realH(65 + (-5 * currentExplorePercent)), left: realW(49 + (91 - 49) * currentExplorePercent), child: Text( "Explore", style: TextStyle(color: Colors.white, fontSize: realW(18 + (32 - 18) * currentExplorePercent)), )), Positioned( top: realH(20 + (60 - 20) * currentExplorePercent), left: realW(63 + (44 - 63) * currentExplorePercent), child: Icon( Icons.location_on, size: realW(34), color: Colors.white, )), Positioned( top: realH(currentExplorePercent < 0.9 ? realH(-35) : realH(-35 + (6 + 35) * (currentExplorePercent - 0.9) * 8)), left: realW(63 + (170 - 63) * currentExplorePercent), child: GestureDetector( onTap: () { animateExplore(false); }, child: Image.asset( "assets/arrow.png", width: realH(35), height: realH(35), ), )), ], ), ), ), )); } /// dispatch Explore state /// /// handle it by [isExploreOpen] and [currentExplorePercent] void _dispatchExploreOffset() { if (!isExploreOpen) { if (currentExplorePercent < 0.3) { animateExplore(false); } else { animateExplore(true); } } else { if (currentExplorePercent > 0.6) { animateExplore(true); } else { animateExplore(false); } } } } ================================================ FILE: lib/components/map_button.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class MapButton extends StatelessWidget { final double currentSearchPercent; final double currentExplorePercent; final double bottom; final double offsetX; final double width; final double height; final IconData icon; final Color iconColor; final bool isRight; final Gradient gradient; const MapButton( {Key key, this.currentSearchPercent, this.currentExplorePercent, this.bottom, this.offsetX, this.width, this.height, this.icon, this.iconColor, this.isRight = true, this.gradient}) : assert(currentExplorePercent != null), assert(currentExplorePercent != null), assert(bottom != null), assert(offsetX != null), assert(width != null), assert(height != null), assert(icon != null), super(key: key); @override Widget build(BuildContext context) { return Positioned( bottom: realH(bottom), left: !isRight ? realW(offsetX * (currentExplorePercent + currentSearchPercent)) : null, right: isRight ? realW(offsetX * (currentExplorePercent + currentSearchPercent)) : null, child: Opacity( opacity: 1 - (currentSearchPercent + currentExplorePercent), child: Container( width: realW(width), height: realH(height), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(17)), child: Icon( icon, size: realW(34), color: iconColor ?? Colors.black, ), decoration: BoxDecoration( color: gradient == null ? Colors.white : null, gradient: gradient, borderRadius: isRight ? BorderRadius.only(bottomLeft: Radius.circular(realW(36)), topLeft: Radius.circular(realW(36))) : BorderRadius.only(bottomRight: Radius.circular(realW(36)), topRight: Radius.circular(realW(36))), boxShadow: [ BoxShadow(color: Color.fromRGBO(0, 0, 0, 0.3), blurRadius: realW(36)), ]), ), ), ); } } ================================================ FILE: lib/components/menu_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; /// Drawer Menu class MenuWidget extends StatelessWidget { final menuItems = ['Home', 'Saved', 'Timeline', 'Contributions', 'Messages', 'Sharing', 'Drive Mode']; final num currentMenuPercent; final Function(bool) animateMenu; MenuWidget({Key key, this.currentMenuPercent, this.animateMenu}) : super(key: key); @override Widget build(BuildContext context) { return currentMenuPercent != 0 ? Positioned( left: realW(-358 + 358 * currentMenuPercent), width: realW(358), height: screenHeight, child: Opacity( opacity: currentMenuPercent, child: Container( decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only(topRight: Radius.circular(realW(50))), boxShadow: [ BoxShadow(color: Color.fromRGBO(0, 0, 0, 0.16), blurRadius: realW(20)), ], ), child: Stack( children: [ NotificationListener( onNotification: (notification) { notification.disallowGlow(); }, child: CustomScrollView( physics: NeverScrollableScrollPhysics(), slivers: [ SliverToBoxAdapter( child: Container( height: realH(236), decoration: BoxDecoration( borderRadius: BorderRadius.only(topRight: Radius.circular(realW(50))), gradient: const LinearGradient(begin: Alignment.topLeft, colors: [ Color(0xFF59C2FF), Color(0xFF1270E3), ])), child: Stack( children: [ Positioned( left: realW(10), bottom: realH(27), child: Image.asset( "assets/avatar.png", width: realH(120), height: realH(120), ), ), Positioned( left: realW(60), bottom: realH(18), child: Image.asset( "assets/lable.png", width: realH(72), height: realH(72), ), ), Positioned( left: realW(135), top: realH(110), child: DefaultTextStyle( style: TextStyle(color: Colors.white), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "implemented by ditclear", style: TextStyle(fontWeight: FontWeight.bold, fontSize: realW(18)), ), Padding( padding: EdgeInsets.symmetric(vertical: realH(11.0)), child: FittedBox( fit: BoxFit.scaleDown, child: Text.rich( TextSpan( text: "https://github.com/ditclear", style: TextStyle( fontSize: realW(16), decoration: TextDecoration.underline), ), ), ), ), Row( children: [ Text( "公众号:ditclear", style: TextStyle(fontSize: realW(14)), ), Icon( Icons.arrow_right, color: Colors.white, size: realH(30), ) ], ), ], ), ), ), ], ), ), ), SliverPadding( padding: EdgeInsets.only(top: realH(34), bottom: realH(50), right: realW(37)), sliver: SliverFixedExtentList( itemExtent: realH(56), delegate: new SliverChildBuilderDelegate((BuildContext context, int index) { //创建列表项 return Container( width: realW(321), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(20)), decoration: index == 0 ? BoxDecoration( color: Color(0xFF379BF2).withOpacity(0.2), borderRadius: BorderRadius.only( topRight: Radius.circular(realW(50)), bottomRight: Radius.circular(realW(50)))) : null, child: Text( menuItems[index], style: TextStyle(color: index == 0 ? Colors.blue : Colors.black, fontSize: realW(20)), ), ); }, childCount: menuItems.length), ), ), SliverPadding( padding: EdgeInsets.only(left: realW(20)), sliver: SliverToBoxAdapter( child: Text( 'Settings', style: TextStyle(color: Colors.black, fontSize: realW(20)), ), ), ) ], ), ), // close button Positioned( bottom: realH(53), right: 0, child: GestureDetector( onTap: () { animateMenu(false); }, child: Container( width: realW(71), height: realH(71), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(17)), child: Icon( Icons.close, color: Color(0xFFE96977), size: realW(34), ), decoration: BoxDecoration( color: Color(0xFFFB5E74).withOpacity(0.2), borderRadius: BorderRadius.only( bottomLeft: Radius.circular(realW(36)), topLeft: Radius.circular(realW(36))), ), ), ), ) ], ), ), ), ) : const Padding(padding: EdgeInsets.all(0)); } } ================================================ FILE: lib/components/recent_search_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class RecentSearchWidget extends StatelessWidget { final double currentSearchPercent; const RecentSearchWidget({Key key, this.currentSearchPercent}) : super(key: key); @override Widget build(BuildContext context) { return currentSearchPercent != 0 ? Positioned( top: realH(-(75.0 + 494.0) + (75 + 75.0 + 494.0) * currentSearchPercent), left: realW((standardWidth - 320) / 2), width: realW(320), height: realH(494), child: Opacity( opacity: currentSearchPercent, child: Align( alignment: Alignment.topCenter, child: Image.asset( "assets/recent.png", fit: BoxFit.contain, ), ), ), ) : const Padding( padding: const EdgeInsets.all(0), ); } } ================================================ FILE: lib/components/search_back_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class SearchBackWidget extends StatelessWidget { final double currentSearchPercent; final Function(bool) animateSearch; const SearchBackWidget({Key key, this.currentSearchPercent, this.animateSearch}) : super(key: key); @override Widget build(BuildContext context) { return Positioned( bottom: realH(53), right: realW(27), child: Opacity( opacity: currentSearchPercent, child: Container( width: realW(320), height: realH(71), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(17)), child: Row( children: [ InkWell( onTap: () { animateSearch(false); }, child: Transform.scale( scale: currentSearchPercent, child: Icon( Icons.arrow_back, size: realW(34), ), ), ), Expanded( child: Padding( padding: EdgeInsets.symmetric(horizontal: realW(30.0)), child: TextField( enabled: currentSearchPercent == 1.0, cursorColor: Color(0xFF707070), decoration: InputDecoration( hintText: "Search here", alignLabelWithHint: true, border: InputBorder.none, ), style: TextStyle(fontSize: realW(22)), ), ), ) ], ), ), ), ); } } ================================================ FILE: lib/components/search_menu_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class SearchMenuWidget extends StatelessWidget { final double currentSearchPercent; const SearchMenuWidget({Key key, this.currentSearchPercent}) : super(key: key); @override Widget build(BuildContext context) { return currentSearchPercent != 0 ? Positioned( bottom: realH(58 + (144 - 58) * currentSearchPercent), left: realW((standardWidth - 320) / 2), width: realW(320), height: realH(60), child: Opacity( opacity: currentSearchPercent, child: Padding( padding: EdgeInsets.symmetric(horizontal: realW(20.0)), child: Row( children: [ _buildSearchMenuItem(Icons.home, "Home"), Padding( padding: EdgeInsets.only(left: realW(16)), ), _buildSearchMenuItem(Icons.work, "Work") ], ), )), ) : const Padding( padding: const EdgeInsets.all(0), ); } _buildSearchMenuItem(IconData icon, String text) { return Expanded( child: Container( width: realW(130), height: realH(60), padding: EdgeInsets.only(left: realW(17)), child: Row( children: [ Icon( icon, size: realW(30), color: Colors.blue, ), Padding( padding: EdgeInsets.only(left: realW(12)), ), Text( text, style: TextStyle(color: Colors.blue, fontSize: realW(18)), ) ], ), decoration: BoxDecoration( color: const Color(0xFF379BF2).withOpacity(0.2), borderRadius: BorderRadius.all(Radius.circular(realW(30))), ), )); } } ================================================ FILE: lib/components/search_widget.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_challenge_googlemaps/helper/ui_helper.dart'; class SearchWidget extends StatelessWidget { final double currentExplorePercent; final double currentSearchPercent; final Function(bool) animateSearch; final bool isSearchOpen; final Function(DragUpdateDetails) onHorizontalDragUpdate; final Function() onPanDown; const SearchWidget( {Key key, this.currentExplorePercent, this.currentSearchPercent, this.animateSearch, this.isSearchOpen, this.onHorizontalDragUpdate, this.onPanDown}) : super(key: key); @override Widget build(BuildContext context) { return Positioned( bottom: realH(53), right: realW((68.0 - 320) - (68.0 * currentExplorePercent) + (347 - 68.0) * currentSearchPercent), child: GestureDetector( onTap: () { animateSearch(!isSearchOpen); }, onPanDown: (_) => onPanDown, onHorizontalDragUpdate: onHorizontalDragUpdate, onHorizontalDragEnd: (_) { _dispatchSearchOffset(); }, child: Container( width: realW(320), height: realH(71), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(17)), child: Opacity( opacity: 1.0 - currentSearchPercent, child: Icon( Icons.search, size: realW(34), ), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(realW(36))), boxShadow: [ BoxShadow(color: Color.fromRGBO(0, 0, 0, 0.3), blurRadius: realW(36)), ]), ), ), ); } /// dispatch Search state /// /// handle it by [isSearchOpen] and [currentSearchPercent] void _dispatchSearchOffset() { if (!isSearchOpen) { if (currentSearchPercent < 0.3) { animateSearch(false); } else { animateSearch(true); } } else { if (currentSearchPercent > 0.6) { animateSearch(true); } else { animateSearch(false); } } } } ================================================ FILE: lib/helper/ui_helper.dart ================================================ import 'dart:core'; /// ui standard final standardWidth = 375.0; final standardHeight = 815.0; /// late init double screenWidth; double screenHeight; /// scale [height] by [standardHeight] double realH(double height) { assert(screenHeight != 0.0); return height / standardHeight * screenHeight; } // scale [width] by [ standardWidth ] double realW(double width) { assert(screenWidth != 0.0); return width / standardWidth * screenWidth; } ================================================ FILE: lib/home_page.dart ================================================ import 'dart:math'; import 'dart:ui'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'components/components.dart'; import 'helper/ui_helper.dart'; class GoogleMapPage extends StatefulWidget { GoogleMapPage(); @override State createState() { return _GoogleMapState(); } } class _GoogleMapState extends State with TickerProviderStateMixin { AnimationController animationControllerExplore; AnimationController animationControllerSearch; AnimationController animationControllerMenu; CurvedAnimation curve; Animation animation; Animation animationW; Animation animationR; /// get currentOffset percent get currentExplorePercent => max(0.0, min(1.0, offsetExplore / (760.0 - 122.0))); get currentSearchPercent => max(0.0, min(1.0, offsetSearch / (347 - 68.0))); get currentMenuPercent => max(0.0, min(1.0, offsetMenu / 358)); var offsetExplore = 0.0; var offsetSearch = 0.0; var offsetMenu = 0.0; bool isExploreOpen = false; bool isSearchOpen = false; bool isMenuOpen = false; /// search drag callback void onSearchHorizontalDragUpdate(details) { offsetSearch -= details.delta.dx; if (offsetSearch < 0) { offsetSearch = 0; } else if (offsetSearch > (347 - 68.0)) { offsetSearch = 347 - 68.0; } setState(() {}); } /// explore drag callback void onExploreVerticalUpdate(details) { offsetExplore -= details.delta.dy; if (offsetExplore > 644) { offsetExplore = 644; } else if (offsetExplore < 0) { offsetExplore = 0; } setState(() {}); } /// animate Explore /// /// if [open] is true , make Explore open /// else make Explore close void animateExplore(bool open) { animationControllerExplore = AnimationController( duration: Duration( milliseconds: 1 + (800 * (isExploreOpen ? currentExplorePercent : (1 - currentExplorePercent))).toInt()), vsync: this); curve = CurvedAnimation(parent: animationControllerExplore, curve: Curves.ease); animation = Tween(begin: offsetExplore, end: open ? 760.0 - 122 : 0.0).animate(curve) ..addListener(() { setState(() { offsetExplore = animation.value; }); }) ..addStatusListener((status) { if (status == AnimationStatus.completed) { isExploreOpen = open; } }); animationControllerExplore.forward(); } void animateSearch(bool open) { animationControllerSearch = AnimationController( duration: Duration( milliseconds: 1 + (800 * (isSearchOpen ? currentSearchPercent : (1 - currentSearchPercent))).toInt()), vsync: this); curve = CurvedAnimation(parent: animationControllerSearch, curve: Curves.ease); animation = Tween(begin: offsetSearch, end: open ? 347.0 - 68.0 : 0.0).animate(curve) ..addListener(() { setState(() { offsetSearch = animation.value; }); }) ..addStatusListener((status) { if (status == AnimationStatus.completed) { isSearchOpen = open; } }); animationControllerSearch.forward(); } void animateMenu(bool open) { animationControllerMenu = AnimationController(duration: Duration(milliseconds: 500), vsync: this); curve = CurvedAnimation(parent: animationControllerMenu, curve: Curves.ease); animation = Tween(begin: open ? 0.0 : 358.0, end: open ? 358.0 : 0.0).animate(curve) ..addListener(() { setState(() { offsetMenu = animation.value; }); }) ..addStatusListener((status) { if (status == AnimationStatus.completed) { isMenuOpen = open; } }); animationControllerMenu.forward(); } @override Widget build(BuildContext context) { screenWidth = MediaQuery.of(context).size.width; screenHeight = MediaQuery.of(context).size.height; return Scaffold( body: SizedBox( width: screenWidth, height: screenHeight, child: Stack( children: [ Image.asset( "assets/map.png", width: screenWidth, height: screenHeight, fit: BoxFit.cover, ), //explore ExploreWidget( currentExplorePercent: currentExplorePercent, currentSearchPercent: currentSearchPercent, animateExplore: animateExplore, isExploreOpen: isExploreOpen, onVerticalDragUpdate: onExploreVerticalUpdate, onPanDown: () => animationControllerExplore?.stop(), ), //blur offsetSearch != 0 ? BackdropFilter( filter: ImageFilter.blur(sigmaX: 10 * currentSearchPercent, sigmaY: 10 * currentSearchPercent), child: Container( color: Colors.white.withOpacity(0.1 * currentSearchPercent), width: screenWidth, height: screenHeight, ), ) : const Padding( padding: const EdgeInsets.all(0), ), //explore content ExploreContentWidget( currentExplorePercent: currentExplorePercent, ), //recent search RecentSearchWidget( currentSearchPercent: currentSearchPercent, ), //search menu background offsetSearch != 0 ? Positioned( bottom: realH(88), left: realW((standardWidth - 320) / 2), width: realW(320), height: realH(135 * currentSearchPercent), child: Opacity( opacity: currentSearchPercent, child: DecoratedBox( decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(realW(33)), topRight: Radius.circular(realW(33)))), ), ), ) : const Padding( padding: const EdgeInsets.all(0), ), //search menu SearchMenuWidget( currentSearchPercent: currentSearchPercent, ), //search SearchWidget( currentSearchPercent: currentSearchPercent, currentExplorePercent: currentExplorePercent, isSearchOpen: isSearchOpen, animateSearch: animateSearch, onHorizontalDragUpdate: onSearchHorizontalDragUpdate, onPanDown: () => animationControllerSearch?.stop(), ), //search back SearchBackWidget( currentSearchPercent: currentSearchPercent, animateSearch: animateSearch, ), //layer button MapButton( currentExplorePercent: currentExplorePercent, currentSearchPercent: currentSearchPercent, bottom: 243, offsetX: -71, width: 71, height: 71, isRight: false, icon: Icons.layers, ), //directions button MapButton( currentSearchPercent: currentSearchPercent, currentExplorePercent: currentExplorePercent, bottom: 243, offsetX: -68, width: 68, height: 71, icon: Icons.directions, iconColor: Colors.white, gradient: const LinearGradient(colors: [ Color(0xFF59C2FF), Color(0xFF1270E3), ]), ), //my_location button MapButton( currentSearchPercent: currentSearchPercent, currentExplorePercent: currentExplorePercent, bottom: 148, offsetX: -68, width: 68, height: 71, icon: Icons.my_location, iconColor: Colors.blue, ), //menu button Positioned( bottom: realH(53), left: realW(-71 * (currentExplorePercent + currentSearchPercent)), child: GestureDetector( onTap: () { animateMenu(true); }, child: Opacity( opacity: 1 - (currentSearchPercent + currentExplorePercent), child: Container( width: realW(71), height: realH(71), alignment: Alignment.centerLeft, padding: EdgeInsets.only(left: realW(17)), child: Icon( Icons.menu, size: realW(34), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( bottomRight: Radius.circular(realW(36)), topRight: Radius.circular(realW(36))), boxShadow: [ BoxShadow(color: Color.fromRGBO(0, 0, 0, 0.3), blurRadius: realW(36)), ]), ), ), ), ), //menu MenuWidget(currentMenuPercent: currentMenuPercent, animateMenu: animateMenu), ], ), ), ); } @override void initState() { super.initState(); SystemChrome.setEnabledSystemUIOverlays([]); } @override void dispose() { super.dispose(); animationControllerExplore?.dispose(); animationControllerSearch?.dispose(); animationControllerMenu?.dispose(); } } ================================================ FILE: lib/main.dart ================================================ import 'package:flutter/material.dart'; import 'home_page.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( // This is the theme of your application. // // Try running your application with "flutter run". You'll see the // application has a blue toolbar. Then, without quitting the app, try // changing the primarySwatch below to Colors.green and then invoke // "hot reload" (press "r" in the console where you ran "flutter run", // or simply save your changes to "hot reload" in a Flutter IDE). // Notice that the counter didn't reset back to zero; the application // is not restarted. primaryColor: Color(0xFF707070), ), home: GoogleMapPage(), ); } } ================================================ FILE: pubspec.yaml ================================================ name: flutter_challenge_googlemaps description: rework the UI of the Google Maps in uplabs by Flutter. # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: sdk: ">=2.1.0 <3.0.0" dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 dev_dependencies: flutter_test: sdk: flutter # For information on the generic Dart part of this file, see the # following page: https://www.dartlang.org/tools/pub/pubspec # The following section is specific to Flutter. flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: assets: - arrow.png - banner_1.png - banner_2.png - banner_3.png - banner_4.png - banner_5.png - dj.png - icon_1.png - icon_2.png - icon_3.png - map.png - recent.png - search.png - avatar.png - lable.png # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: # fonts: # - family: Schyler # fonts: # - asset: fonts/Schyler-Regular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages ================================================ 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:flutter_challenge_googlemaps/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); }); }