├── .gitignore ├── .metadata ├── LICENSE ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ └── com │ │ │ └── mayandro │ │ │ └── flutteruplabonboarding │ │ │ └── MainActivity.kt │ │ └── res │ │ ├── drawable │ │ └── launch_background.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── images │ ├── appointment.png │ ├── doctor.jpg │ ├── reminder.png │ ├── reports.png │ └── yourappointments.png ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── main.dart ├── screen │ ├── home │ │ ├── home_animation.dart │ │ └── home_page.dart │ └── login │ │ ├── login_animation.dart │ │ └── login_page.dart ├── utility │ ├── app_constant.dart │ └── color_utility.dart └── widget │ ├── circular_reveal.dart │ ├── rounded_button.dart │ ├── trapezoid_down_cut_small.dart │ ├── trapezoid_left_cut.dart │ ├── trapezoid_up_cut.dart │ └── trapezoid_up_cut_small.dart ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 985ccb6d14c6ce5ce74823a4d366df2438eac44f 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Mayank Rai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UpLabs Challenge 2 | 3 | A new Flutter application based on Uplabs Challenge at : https://www.uplabs.com/posts/login-page-loading-fb74e4c5-008a-41e3-ae95-76c27c36faf1. 4 | 5 | ## Design Credit 6 | https://www.uplabs.com/nasrinkhodatars 7 | 8 | ## Expected Design 9 | ![preview 1](https://user-images.githubusercontent.com/16761273/52398237-7117c400-2ade-11e9-9a61-ee0a27e81024.gif) 10 | 11 | ## Implemented Design 12 | ![ezgif com-resize](https://user-images.githubusercontent.com/16761273/52398215-5ba29a00-2ade-11e9-89da-dab362b8f348.gif) 13 | 14 | ## Concept Used 15 | 1. Animations 16 | 2. CustomClipper 17 | 4. Canvas 18 | 19 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 27 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.mayandro.flutteruplabonboarding" 42 | minSdkVersion 16 43 | targetSdkVersion 27 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/mayandro/flutteruplabonboarding/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mayandro.flutteruplabonboarding 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/images/appointment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/assets/images/appointment.png -------------------------------------------------------------------------------- /assets/images/doctor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/assets/images/doctor.jpg -------------------------------------------------------------------------------- /assets/images/reminder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/assets/images/reminder.png -------------------------------------------------------------------------------- /assets/images/reports.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/assets/images/reports.png -------------------------------------------------------------------------------- /assets/images/yourappointments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/assets/images/yourappointments.png -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 18 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 43 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 44 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 45 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 46 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 49 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 50 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 75 | 3B80C3931E831B6300D905FE /* App.framework */, 76 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 77 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 78 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 79 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 80 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 81 | ); 82 | name = Flutter; 83 | sourceTree = ""; 84 | }; 85 | 97C146E51CF9000F007C117D = { 86 | isa = PBXGroup; 87 | children = ( 88 | 9740EEB11CF90186004384FC /* Flutter */, 89 | 97C146F01CF9000F007C117D /* Runner */, 90 | 97C146EF1CF9000F007C117D /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 108 | 97C147021CF9000F007C117D /* Info.plist */, 109 | 97C146F11CF9000F007C117D /* Supporting Files */, 110 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 111 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 112 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 113 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | /* End PBXGroup section */ 126 | 127 | /* Begin PBXNativeTarget section */ 128 | 97C146ED1CF9000F007C117D /* Runner */ = { 129 | isa = PBXNativeTarget; 130 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 131 | buildPhases = ( 132 | 9740EEB61CF901F6004384FC /* Run Script */, 133 | 97C146EA1CF9000F007C117D /* Sources */, 134 | 97C146EB1CF9000F007C117D /* Frameworks */, 135 | 97C146EC1CF9000F007C117D /* Resources */, 136 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 137 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 138 | ); 139 | buildRules = ( 140 | ); 141 | dependencies = ( 142 | ); 143 | name = Runner; 144 | productName = Runner; 145 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 146 | productType = "com.apple.product-type.application"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | 97C146E61CF9000F007C117D /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastUpgradeCheck = 0910; 155 | ORGANIZATIONNAME = "The Chromium Authors"; 156 | TargetAttributes = { 157 | 97C146ED1CF9000F007C117D = { 158 | CreatedOnToolsVersion = 7.3.1; 159 | LastSwiftMigration = 0910; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 191 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | /* End PBXResourcesBuildPhase section */ 196 | 197 | /* Begin PBXShellScriptBuildPhase section */ 198 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 199 | isa = PBXShellScriptBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | inputPaths = ( 204 | ); 205 | name = "Thin Binary"; 206 | outputPaths = ( 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | shellPath = /bin/sh; 210 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 211 | }; 212 | 9740EEB61CF901F6004384FC /* Run Script */ = { 213 | isa = PBXShellScriptBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | inputPaths = ( 218 | ); 219 | name = "Run Script"; 220 | outputPaths = ( 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | shellPath = /bin/sh; 224 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 225 | }; 226 | /* End PBXShellScriptBuildPhase section */ 227 | 228 | /* Begin PBXSourcesBuildPhase section */ 229 | 97C146EA1CF9000F007C117D /* Sources */ = { 230 | isa = PBXSourcesBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Profile; 307 | }; 308 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 309 | isa = XCBuildConfiguration; 310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 311 | buildSettings = { 312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 314 | DEVELOPMENT_TEAM = S8QB4VV633; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.mayandro.flutterUplabOnboarding; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | SWIFT_VERSION = 4.0; 329 | VERSIONING_SYSTEM = "apple-generic"; 330 | }; 331 | name = Profile; 332 | }; 333 | 97C147031CF9000F007C117D /* Debug */ = { 334 | isa = XCBuildConfiguration; 335 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 336 | buildSettings = { 337 | ALWAYS_SEARCH_USER_PATHS = NO; 338 | CLANG_ANALYZER_NONNULL = YES; 339 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 340 | CLANG_CXX_LIBRARY = "libc++"; 341 | CLANG_ENABLE_MODULES = YES; 342 | CLANG_ENABLE_OBJC_ARC = YES; 343 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 344 | CLANG_WARN_BOOL_CONVERSION = YES; 345 | CLANG_WARN_COMMA = YES; 346 | CLANG_WARN_CONSTANT_CONVERSION = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INFINITE_RECURSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 402 | CLANG_WARN_EMPTY_BODY = YES; 403 | CLANG_WARN_ENUM_CONVERSION = YES; 404 | CLANG_WARN_INFINITE_RECURSION = YES; 405 | CLANG_WARN_INT_CONVERSION = YES; 406 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 407 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 409 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 410 | CLANG_WARN_STRICT_PROTOTYPES = YES; 411 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 412 | CLANG_WARN_UNREACHABLE_CODE = YES; 413 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 414 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 415 | COPY_PHASE_STRIP = NO; 416 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 417 | ENABLE_NS_ASSERTIONS = NO; 418 | ENABLE_STRICT_OBJC_MSGSEND = YES; 419 | GCC_C_LANGUAGE_STANDARD = gnu99; 420 | GCC_NO_COMMON_BLOCKS = YES; 421 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 422 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 423 | GCC_WARN_UNDECLARED_SELECTOR = YES; 424 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 425 | GCC_WARN_UNUSED_FUNCTION = YES; 426 | GCC_WARN_UNUSED_VARIABLE = YES; 427 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 428 | MTL_ENABLE_DEBUG_INFO = NO; 429 | SDKROOT = iphoneos; 430 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | VALIDATE_PRODUCT = YES; 433 | }; 434 | name = Release; 435 | }; 436 | 97C147061CF9000F007C117D /* Debug */ = { 437 | isa = XCBuildConfiguration; 438 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 439 | buildSettings = { 440 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 441 | CLANG_ENABLE_MODULES = YES; 442 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 443 | ENABLE_BITCODE = NO; 444 | FRAMEWORK_SEARCH_PATHS = ( 445 | "$(inherited)", 446 | "$(PROJECT_DIR)/Flutter", 447 | ); 448 | INFOPLIST_FILE = Runner/Info.plist; 449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 450 | LIBRARY_SEARCH_PATHS = ( 451 | "$(inherited)", 452 | "$(PROJECT_DIR)/Flutter", 453 | ); 454 | PRODUCT_BUNDLE_IDENTIFIER = com.mayandro.flutterUplabOnboarding; 455 | PRODUCT_NAME = "$(TARGET_NAME)"; 456 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 457 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 458 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 459 | SWIFT_VERSION = 4.0; 460 | VERSIONING_SYSTEM = "apple-generic"; 461 | }; 462 | name = Debug; 463 | }; 464 | 97C147071CF9000F007C117D /* Release */ = { 465 | isa = XCBuildConfiguration; 466 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 467 | buildSettings = { 468 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 469 | CLANG_ENABLE_MODULES = YES; 470 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 471 | ENABLE_BITCODE = NO; 472 | FRAMEWORK_SEARCH_PATHS = ( 473 | "$(inherited)", 474 | "$(PROJECT_DIR)/Flutter", 475 | ); 476 | INFOPLIST_FILE = Runner/Info.plist; 477 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 478 | LIBRARY_SEARCH_PATHS = ( 479 | "$(inherited)", 480 | "$(PROJECT_DIR)/Flutter", 481 | ); 482 | PRODUCT_BUNDLE_IDENTIFIER = com.mayandro.flutterUplabOnboarding; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 485 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 486 | SWIFT_VERSION = 4.0; 487 | VERSIONING_SYSTEM = "apple-generic"; 488 | }; 489 | name = Release; 490 | }; 491 | /* End XCBuildConfiguration section */ 492 | 493 | /* Begin XCConfigurationList section */ 494 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 495 | isa = XCConfigurationList; 496 | buildConfigurations = ( 497 | 97C147031CF9000F007C117D /* Debug */, 498 | 97C147041CF9000F007C117D /* Release */, 499 | 249021D3217E4FDB00AE95B9 /* Profile */, 500 | ); 501 | defaultConfigurationIsVisible = 0; 502 | defaultConfigurationName = Release; 503 | }; 504 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 505 | isa = XCConfigurationList; 506 | buildConfigurations = ( 507 | 97C147061CF9000F007C117D /* Debug */, 508 | 97C147071CF9000F007C117D /* Release */, 509 | 249021D4217E4FDB00AE95B9 /* Profile */, 510 | ); 511 | defaultConfigurationIsVisible = 0; 512 | defaultConfigurationName = Release; 513 | }; 514 | /* End XCConfigurationList section */ 515 | 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/may-andro/flutter_uplab_challenge_medical_app/7a7f809755262eac2a7553872f4449720deb174e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_uplab_onboarding 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_uplab_onboarding/screen/home/home_page.dart'; 3 | import 'package:flutter_uplab_onboarding/screen/login/login_page.dart'; 4 | import 'package:flutter_uplab_onboarding/utility/color_utility.dart'; 5 | 6 | void main() => runApp(MyApp()); 7 | 8 | class MyApp extends StatelessWidget { 9 | // This widget is the root of your application. 10 | @override 11 | Widget build(BuildContext context) { 12 | return MaterialApp( 13 | title: 'Flutter Demo', 14 | theme: ThemeData( 15 | primaryColor: Color(getColorHexFromStr("#11C9C4")), 16 | indicatorColor: Color(getColorHexFromStr("#ffffff")), 17 | ), 18 | initialRoute: '/', 19 | routes: { 20 | '/login': (BuildContext context) => LoginPage(), 21 | '/home': (BuildContext context) => HomePage(), 22 | }, 23 | home: LoginPage(), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/screen/home/home_animation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class HomeEnterAnimation { 4 | HomeEnterAnimation(this.controller) 5 | : scale = new Tween(begin: 0.0, end: 1.0).animate( 6 | new CurvedAnimation( 7 | parent: controller, 8 | curve: new Interval( 9 | 0.6, 10 | 0.9, 11 | curve: Curves.fastOutSlowIn, 12 | ), 13 | ), 14 | ), 15 | Ytranslation = new Tween(begin: 1000.0, end: 0.0).animate( 16 | new CurvedAnimation( 17 | parent: controller, 18 | curve: new Interval( 19 | 0.2, 20 | 0.6, 21 | curve: Curves.fastOutSlowIn, 22 | ), 23 | ), 24 | ), 25 | fadeTranslation = new Tween(begin: 0.0, end: 1.0).animate( 26 | new CurvedAnimation( 27 | parent: controller, 28 | curve: new Interval( 29 | 0.0, 30 | 0.3, 31 | curve: Curves.fastOutSlowIn, 32 | ), 33 | ), 34 | ); 35 | 36 | final AnimationController controller; 37 | final Animation scale; 38 | final Animation Ytranslation; 39 | final Animation fadeTranslation; 40 | } 41 | -------------------------------------------------------------------------------- /lib/screen/home/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_uplab_onboarding/screen/home/home_animation.dart'; 3 | 4 | class HomePage extends StatefulWidget { 5 | @override 6 | HomePageState createState() { 7 | return new HomePageState(); 8 | } 9 | } 10 | 11 | class HomePageState extends State with TickerProviderStateMixin{ 12 | 13 | HomeEnterAnimation enterAnimation; 14 | AnimationController animationController; 15 | 16 | @override 17 | void initState() { 18 | super.initState(); 19 | 20 | animationController = new AnimationController( 21 | duration: const Duration(milliseconds: 3000), vsync: this); 22 | 23 | enterAnimation = HomeEnterAnimation(animationController); 24 | 25 | animationController.forward(); 26 | } 27 | 28 | @override 29 | void dispose() { 30 | animationController.dispose(); 31 | super.dispose(); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | final Size size = MediaQuery.of(context).size; 37 | final TextTheme textTheme = Theme.of(context).textTheme; 38 | 39 | return Scaffold( 40 | body: AnimatedBuilder( 41 | animation: animationController, 42 | builder: (BuildContext context, Widget child) { 43 | return Stack( 44 | fit: StackFit.expand, 45 | children: [ 46 | _buildBackgroundImage(size), 47 | _buildBackgroundGradient(size), 48 | _buildCard(size, textTheme), 49 | ], 50 | ); 51 | }) 52 | ); 53 | } 54 | 55 | _buildBackgroundImage(Size size) => Positioned( 56 | top: 0, 57 | bottom: size.height * 0.6, 58 | left: 0, 59 | right: 0, 60 | child: FadeTransition( 61 | opacity: enterAnimation.fadeTranslation, 62 | child: Container( 63 | decoration: BoxDecoration( 64 | image: new DecorationImage( 65 | image: new ExactAssetImage('assets/images/doctor.jpg'), 66 | fit: BoxFit.cover, 67 | ), 68 | )), 69 | ), 70 | ); 71 | 72 | _buildBackgroundGradient(Size size) => Positioned( 73 | top: size.height * 0.4, 74 | bottom: 0, 75 | left: 0, 76 | right: 0, 77 | child: FadeTransition( 78 | opacity: enterAnimation.fadeTranslation, 79 | child: Container( 80 | decoration: BoxDecoration( 81 | gradient: const LinearGradient( 82 | begin: FractionalOffset.topCenter, 83 | end: FractionalOffset.bottomCenter, 84 | colors: [ 85 | const Color(0xFF5DB09E), 86 | const Color(0xFF40858B), 87 | const Color(0xFF042C63), 88 | ], 89 | ), 90 | )), 91 | ), 92 | ); 93 | 94 | _buildCard(Size size, TextTheme textTheme) => Positioned( 95 | top: size.height * 0.3, 96 | bottom: size.height * 0.1, 97 | left: size.width * 0.05, 98 | right: size.width * 0.05, 99 | child: Transform( 100 | transform: Matrix4.translationValues(0, enterAnimation.Ytranslation.value, 0), 101 | child: Card( 102 | elevation: 8, 103 | child: Padding( 104 | padding: const EdgeInsets.all(16.0), 105 | child: Column( 106 | crossAxisAlignment: CrossAxisAlignment.start, 107 | children: [ 108 | Text( 109 | "Hello Nasrin", 110 | style: textTheme.caption.copyWith( 111 | color: Colors.black, fontWeight: FontWeight.w300), 112 | ), 113 | Text( 114 | "Welcome", 115 | style: textTheme.subtitle.copyWith( 116 | color: Colors.black, fontWeight: FontWeight.w700), 117 | ), 118 | SizedBox( 119 | height: 16, 120 | ), 121 | Expanded( 122 | child: GridView.count( 123 | crossAxisCount: 2, 124 | mainAxisSpacing: 16.0, 125 | crossAxisSpacing: 16.0, 126 | childAspectRatio: (size.width ) / ((size.height * 0.5)), 127 | controller: new ScrollController(keepScrollOffset: false), 128 | shrinkWrap: true, 129 | scrollDirection: Axis.vertical, 130 | children: menuItems.map((Menu menu) { 131 | return menuStack(context, menu); 132 | }).toList(), 133 | ), 134 | ) 135 | ], 136 | )), 137 | ), 138 | ), 139 | ); 140 | 141 | Widget menuStack(BuildContext context, Menu menu) => Container( 142 | decoration: BoxDecoration( 143 | border: new Border.all( 144 | color: Theme.of(context).primaryColor), 145 | borderRadius: 146 | BorderRadius.all(Radius.circular(4))), 147 | padding: EdgeInsets.all(8), 148 | child: Column( 149 | crossAxisAlignment: CrossAxisAlignment.center, 150 | mainAxisAlignment: MainAxisAlignment.center, 151 | children: [ 152 | Expanded( 153 | child: Transform( 154 | transform: Matrix4.diagonal3Values(enterAnimation.scale.value, enterAnimation.scale.value, 0), 155 | alignment: Alignment.center, 156 | child: Padding( 157 | padding: const EdgeInsets.all(8.0), 158 | child: Image.asset( 159 | menu.image), 160 | ), 161 | )), 162 | Padding( 163 | padding: const EdgeInsets.all(8.0), 164 | child: Text( 165 | menu.title, 166 | style: TextStyle( 167 | fontSize: 8, 168 | fontWeight: FontWeight.w500), 169 | ), 170 | ) 171 | ], 172 | ), 173 | ); 174 | } 175 | 176 | 177 | class Menu { 178 | String title; 179 | String image; 180 | 181 | Menu( 182 | {this.title, 183 | this.image, 184 | }); 185 | } 186 | 187 | final menuItems = [ 188 | Menu( 189 | title: "Book an appointment", 190 | image: 'assets/images/appointment.png'), 191 | Menu( 192 | title: "Your appointment", 193 | image: 'assets/images/reminder.png'), 194 | Menu( 195 | title: "Medical report", 196 | image: 'assets/images/reports.png'), 197 | Menu( 198 | title: "Set medical reminder", 199 | image: 'assets/images/yourappointments.png'), 200 | ]; 201 | -------------------------------------------------------------------------------- /lib/screen/login/login_animation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoginEnterAnimation { 4 | LoginEnterAnimation(this.controller) 5 | : userNameOpacity = new Tween(begin: 0.0, end: 1.0).animate( 6 | new CurvedAnimation( 7 | parent: controller, 8 | curve: new Interval( 9 | 0.6, 10 | 0.7, 11 | curve: Curves.easeIn, 12 | ), 13 | ), 14 | ), 15 | passowrdOpacity = new Tween(begin: 0.0, end: 1.0).animate( 16 | new CurvedAnimation( 17 | parent: controller, 18 | curve: new Interval( 19 | 0.7, 20 | 0.8, 21 | curve: Curves.easeIn, 22 | ), 23 | ), 24 | ), 25 | translation = new Tween(begin: 1000.0, end: 0.0).animate( 26 | new CurvedAnimation( 27 | parent: controller, 28 | curve: new Interval( 29 | 0.4, 30 | 0.6, 31 | curve: Curves.fastOutSlowIn, 32 | ), 33 | ), 34 | ), 35 | backgroundTranslation = new Tween(begin: 1000.0, end: 0.0).animate( 36 | new CurvedAnimation( 37 | parent: controller, 38 | curve: new Interval( 39 | 0.0, 40 | 0.5, 41 | curve: Curves.fastOutSlowIn, 42 | ), 43 | ), 44 | ), 45 | buttontranslation = new Tween(begin: 1000.0, end: 0.0).animate( 46 | new CurvedAnimation( 47 | parent: controller, 48 | curve: new Interval( 49 | 0.8, 50 | 1.0, 51 | curve: Curves.fastOutSlowIn, 52 | ), 53 | ), 54 | ) 55 | 56 | ; 57 | 58 | final AnimationController controller; 59 | final Animation userNameOpacity; 60 | final Animation passowrdOpacity; 61 | final Animation translation; 62 | final Animation backgroundTranslation; 63 | final Animation buttontranslation; 64 | } 65 | -------------------------------------------------------------------------------- /lib/screen/login/login_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_uplab_onboarding/screen/login/login_animation.dart'; 5 | import 'package:flutter_uplab_onboarding/utility/app_constant.dart'; 6 | import 'package:flutter_uplab_onboarding/widget/circular_reveal.dart'; 7 | import 'package:flutter_uplab_onboarding/widget/rounded_button.dart'; 8 | import 'package:flutter_uplab_onboarding/widget/trapezoid_down_cut_small.dart'; 9 | import 'package:flutter_uplab_onboarding/widget/trapezoid_left_cut.dart'; 10 | import 'package:flutter_uplab_onboarding/widget/trapezoid_up_cut.dart'; 11 | import 'package:flutter_uplab_onboarding/widget/trapezoid_up_cut_small.dart'; 12 | 13 | class LoginPage extends StatefulWidget { 14 | @override 15 | _LoginPageState createState() => _LoginPageState(); 16 | } 17 | 18 | class _LoginPageState extends State with TickerProviderStateMixin { 19 | final userNameController = TextEditingController(); 20 | final passwordController = TextEditingController(); 21 | final formKey = GlobalKey(); 22 | 23 | LoginEnterAnimation enterAnimation; 24 | AnimationController animationController; 25 | 26 | Animation _animation; 27 | AnimationController revealAnimationController; 28 | double _fraction = 0.0; 29 | 30 | @override 31 | void initState() { 32 | super.initState(); 33 | 34 | animationController = new AnimationController( 35 | duration: const Duration(milliseconds: 1000), vsync: this) 36 | ..addListener(() { 37 | setState(() {}); 38 | }); 39 | 40 | enterAnimation = LoginEnterAnimation(animationController); 41 | 42 | animationController.forward(); 43 | } 44 | 45 | @override 46 | void dispose() { 47 | animationController.dispose(); 48 | super.dispose(); 49 | } 50 | 51 | @override 52 | Widget build(BuildContext context) { 53 | final Size size = MediaQuery.of(context).size; 54 | final TextTheme textTheme = Theme.of(context).textTheme; 55 | return Scaffold( 56 | body: Stack( 57 | children: [ 58 | _buildContent(size, textTheme), 59 | Center( 60 | child: _fraction > 0 61 | ? CustomPaint( 62 | painter: RevealProgressButtonPainter( 63 | _fraction, MediaQuery.of(context).size), 64 | ) 65 | : Offstage(), 66 | ), 67 | Center( 68 | child: _fraction == 1 ? CircularProgressIndicator() : Offstage(), 69 | ) 70 | ], 71 | ), 72 | resizeToAvoidBottomPadding: false, 73 | ); 74 | } 75 | 76 | void reveal() { 77 | revealAnimationController = AnimationController( 78 | duration: const Duration(milliseconds: 200), vsync: this); 79 | 80 | _animation = Tween(begin: 0.0, end: 1.0).animate(revealAnimationController) 81 | ..addListener(() { 82 | setState(() { 83 | _fraction = _animation.value; 84 | }); 85 | }); 86 | 87 | revealAnimationController.forward(); 88 | 89 | Timer(Duration(milliseconds: 3600), () { 90 | _fraction = 0; 91 | Navigator.pushNamed(context, '/home'); 92 | }); 93 | } 94 | 95 | Widget _buildContent(Size size, TextTheme textTheme) => Container( 96 | decoration: BoxDecoration( 97 | gradient: const LinearGradient( 98 | begin: FractionalOffset.topCenter, 99 | end: FractionalOffset.bottomCenter, 100 | colors: [ 101 | const Color(0xFF7BDDB1), 102 | const Color(0xFF377885), 103 | const Color(0xFF265F7A), 104 | ], 105 | ), 106 | ), 107 | child: Stack( 108 | fit: StackFit.expand, 109 | children: [ 110 | _buildBackgroundCenter(), 111 | _buildBackgroundTop(), 112 | _buildBackgroundBottom(), 113 | _buildBackgroundBottom2(), 114 | _buildForm(size, textTheme) 115 | ], 116 | ), 117 | ); 118 | 119 | _buildBackgroundCenter() => Transform( 120 | transform: Matrix4.translationValues( 121 | -enterAnimation.backgroundTranslation.value, 0, 0), 122 | child: TrapezoidLeftCut( 123 | child: Container( 124 | color: Colors.white, 125 | ), 126 | ), 127 | ); 128 | 129 | _buildBackgroundTop() => Transform( 130 | transform: Matrix4.translationValues( 131 | 0, -enterAnimation.backgroundTranslation.value, 0), 132 | child: TrapezoidDownCutSmall( 133 | child: Container( 134 | decoration: BoxDecoration( 135 | gradient: const LinearGradient( 136 | begin: FractionalOffset.topRight, 137 | end: FractionalOffset.bottomRight, 138 | colors: [ 139 | const Color(0xFF64BCA2), 140 | const Color(0xFF468E8E), 141 | const Color(0xFF3C7E88), 142 | ], 143 | ), 144 | ), 145 | ), 146 | ), 147 | ); 148 | 149 | _buildBackgroundBottom() => Transform( 150 | transform: Matrix4.translationValues( 151 | 0, enterAnimation.backgroundTranslation.value, 0), 152 | child: TrapezoidUpCut( 153 | child: Container( 154 | decoration: BoxDecoration( 155 | gradient: const LinearGradient( 156 | begin: FractionalOffset.topCenter, 157 | end: FractionalOffset.bottomCenter, 158 | colors: [ 159 | const Color(0xFF468E8E), 160 | const Color(0xFF3C7E88), 161 | ], 162 | ), 163 | ), 164 | ), 165 | ), 166 | ); 167 | 168 | _buildBackgroundBottom2() => Transform( 169 | transform: Matrix4.translationValues( 170 | 0, enterAnimation.backgroundTranslation.value, 0), 171 | child: TrapezoidUpCutSmall( 172 | child: Container( 173 | color: Colors.white, 174 | ), 175 | ), 176 | ); 177 | 178 | _buildForm(Size size, TextTheme textTheme) => Positioned( 179 | top: size.height * 0.2, 180 | left: size.width * 0.08, 181 | right: size.width * 0.35, 182 | bottom: size.width * 0.3, 183 | child: SingleChildScrollView( 184 | child: Form( 185 | key: formKey, 186 | child: Column( 187 | mainAxisAlignment: MainAxisAlignment.center, 188 | crossAxisAlignment: CrossAxisAlignment.start, 189 | children: [ 190 | Transform( 191 | transform: Matrix4.translationValues( 192 | -enterAnimation.translation.value, 0, 0), 193 | child: Text( 194 | "Login", 195 | style: textTheme.display1.copyWith( 196 | color: Colors.black, fontWeight: FontWeight.w700), 197 | ), 198 | ), 199 | SizedBox( 200 | height: size.height * 0.05, 201 | ), 202 | _buildTextFormUsername(textTheme), 203 | SizedBox( 204 | height: 8, 205 | ), 206 | _buildTextFormPassword(textTheme), 207 | SizedBox( 208 | height: size.height * 0.05, 209 | ), 210 | Transform( 211 | transform: Matrix4.translationValues( 212 | -enterAnimation.buttontranslation.value, 0, 0), 213 | child: RoundedButton( 214 | text: BUTTON_LOGIN, 215 | onPressed: () => reveal(), 216 | ), 217 | ) 218 | ], 219 | ), 220 | ), 221 | )); 222 | 223 | Widget _buildTextFormUsername(TextTheme textTheme) { 224 | return FadeTransition( 225 | opacity: enterAnimation.userNameOpacity, 226 | child: TextFormField( 227 | style: textTheme.title.copyWith(color: Colors.black87), 228 | decoration: new InputDecoration( 229 | border: UnderlineInputBorder(), 230 | labelText: PHONE_AUTH_HINT, 231 | labelStyle: 232 | textTheme.caption.copyWith(color: Theme.of(context).primaryColor), 233 | contentPadding: EdgeInsets.zero, 234 | suffixIcon: Icon( 235 | Icons.person_outline, 236 | color: Colors.grey, 237 | ), 238 | ), 239 | keyboardType: TextInputType.text, 240 | controller: userNameController, 241 | validator: (val) => val.length == 0 242 | ? PHONE_AUTH_VALIDATION_EMPTY 243 | : val.length < 10 ? PHONE_AUTH_VALIDATION_INVALID : null, 244 | ), 245 | ); 246 | } 247 | 248 | Widget _buildTextFormPassword(TextTheme textTheme) { 249 | return FadeTransition( 250 | opacity: enterAnimation.passowrdOpacity, 251 | child: TextFormField( 252 | style: textTheme.title.copyWith(color: Colors.black87), 253 | decoration: new InputDecoration( 254 | labelText: PASSWORD_AUTH_HINT, 255 | labelStyle: 256 | textTheme.caption.copyWith(color: Theme.of(context).primaryColor), 257 | contentPadding: const EdgeInsets.all(0.0), 258 | suffixIcon: Icon(Icons.lock_outline, color: Colors.grey), 259 | ), 260 | keyboardType: TextInputType.text, 261 | controller: passwordController, 262 | obscureText: true, 263 | validator: (val) => val.length == 0 264 | ? PHONE_AUTH_VALIDATION_EMPTY 265 | : val.length < 10 ? PHONE_AUTH_VALIDATION_INVALID : null, 266 | ), 267 | ); 268 | } 269 | } 270 | -------------------------------------------------------------------------------- /lib/utility/app_constant.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | const PHONE_AUTH_HINT = "User Name"; 4 | const PHONE_AUTH_VALIDATION_EMPTY = "Your phone number can\'t be empty!"; 5 | const PHONE_AUTH_VALIDATION_INVALID = 'This phone number is invalid!'; 6 | 7 | const PASSWORD_AUTH_HINT = "Password"; 8 | const PASSWORD_AUTH_VALIDATION_EMPTY = "Your password number can\'t be empty!"; 9 | const PASSWORD_AUTH_VALIDATION_INVALID = 'This password number is invalid!'; 10 | 11 | const COLOR_WELCOME = "#FFD201"; 12 | const COLOR_LOGIN = "#2C3949"; 13 | 14 | const IMAGE_LOGIN_PATH = "assets/images/travel.jpeg"; 15 | const IMAGE_WELCOME_PATH = "assets/images/background.png"; 16 | const IMAGE_SLIPPER_PATH = "assets/images/slippers.png"; 17 | 18 | const TEXT_SIGN_IN_LABEL = "SIGN IN"; 19 | const TEXT_WELCOME_LABEL = "Follow the path you like,\nvisit the places you want to go but go with a guide."; 20 | 21 | const COLOR_FACEBOOK = "#4C76BE"; 22 | const COLOR_TWITTER = "#00C7FF"; 23 | const COLOR_GOOGLE = "#FC5345"; 24 | 25 | const IMAGE_PATH_GOOGLE = 'assets/images/google.png'; 26 | const IMAGE_PATH_TWITTER = 'assets/images/twitter.png'; 27 | const IMAGE_PATH_FACEBOOK = 'assets/images/facebook.png'; 28 | 29 | const BUTTON_PROCEED = "PROCEED"; 30 | const BUTTON_GOAHEAD = "GO AHEAD"; 31 | 32 | const BUTTON_LOGIN = "Login"; -------------------------------------------------------------------------------- /lib/utility/color_utility.dart: -------------------------------------------------------------------------------- 1 | int getColorHexFromStr(String colorStr) { 2 | colorStr = "FF" + colorStr; 3 | colorStr = colorStr.replaceAll("#", ""); 4 | int val = 0; 5 | int len = colorStr.length; 6 | for (int i = 0; i < len; i++) { 7 | int hexDigit = colorStr.codeUnitAt(i); 8 | if (hexDigit >= 48 && hexDigit <= 57) { 9 | val += (hexDigit - 48) * (1 << (4 * (len - 1 - i))); 10 | } else if (hexDigit >= 65 && hexDigit <= 70) { 11 | // A..F 12 | val += (hexDigit - 55) * (1 << (4 * (len - 1 - i))); 13 | } else if (hexDigit >= 97 && hexDigit <= 102) { 14 | // a..f 15 | val += (hexDigit - 87) * (1 << (4 * (len - 1 - i))); 16 | } else { 17 | throw new FormatException("An error occurred when converting a color"); 18 | } 19 | } 20 | return val; 21 | } -------------------------------------------------------------------------------- /lib/widget/circular_reveal.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:math'; 3 | 4 | import 'package:flutter_uplab_onboarding/utility/color_utility.dart'; 5 | 6 | class RevealProgressButtonPainter extends CustomPainter { 7 | double _fraction = 0.0; 8 | Size _screenSize; 9 | 10 | RevealProgressButtonPainter(this._fraction, this._screenSize); 11 | 12 | @override 13 | void paint(Canvas canvas, Size size) { 14 | var paint = Paint() 15 | ..color = Color(getColorHexFromStr("#11C9C4")) 16 | ..style = PaintingStyle.fill; 17 | 18 | var finalRadius = sqrt(pow(_screenSize.width / 2, 2) + 19 | pow(_screenSize.height - 32.0 - 48.0, 2)); 20 | var radius = 24.0 + finalRadius * _fraction; 21 | 22 | canvas.drawCircle(Offset(size.width / 2, size.height / 2), radius, paint); 23 | } 24 | 25 | @override 26 | bool shouldRepaint(RevealProgressButtonPainter oldDelegate) { 27 | return oldDelegate._fraction != _fraction; 28 | } 29 | } -------------------------------------------------------------------------------- /lib/widget/rounded_button.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class RoundedButton extends StatelessWidget { 6 | final Function onPressed; 7 | final String text; 8 | 9 | RoundedButton( 10 | {@required this.onPressed, 11 | @required this.text}); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Container( 16 | height: 48.0, 17 | width: MediaQuery.of(context).size.height * 0.2, 18 | decoration: BoxDecoration( 19 | color: Theme.of(context).primaryColor, 20 | borderRadius: new BorderRadius.circular(30.0), 21 | ), 22 | child: InkWell( 23 | onTap: onPressed, 24 | child: Center( 25 | child: Text(text, 26 | style: Theme.of(context) 27 | .textTheme 28 | .title 29 | .copyWith(color: Colors.white)), 30 | )), 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/widget/trapezoid_down_cut_small.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | class TrapezoidDownCutSmall extends StatelessWidget { 5 | TrapezoidDownCutSmall({@required this.child}); 6 | 7 | final Widget child; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return new ClipPath( 12 | clipper: new DiagonalClipper(), 13 | child: child, 14 | ); 15 | } 16 | } 17 | 18 | class DiagonalClipper extends CustomClipper { 19 | @override 20 | Path getClip(Size size) { 21 | var path = new Path(); 22 | 23 | path.lineTo(size.width * 0.3, 0); 24 | 25 | path.lineTo(size.width * 0.74, size.height * 0.22); 26 | 27 | path.quadraticBezierTo(size.width * 0.84, size.height * 0.27, size.width * 0.9, size.height * 0.22); 28 | 29 | path.lineTo(size.width, size.height * 0.15); 30 | 31 | path.lineTo(size.width, 0); 32 | 33 | path.lineTo(size.width * 0.3, 0); 34 | 35 | return path; 36 | } 37 | 38 | @override 39 | bool shouldReclip(CustomClipper oldClipper) => false; 40 | } 41 | -------------------------------------------------------------------------------- /lib/widget/trapezoid_left_cut.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | class TrapezoidLeftCut extends StatelessWidget { 5 | TrapezoidLeftCut({@required this.child}); 6 | 7 | final Widget child; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return new ClipPath( 12 | clipper: new DiagonalClipper(), 13 | child: child, 14 | ); 15 | } 16 | } 17 | 18 | class DiagonalClipper extends CustomClipper { 19 | @override 20 | Path getClip(Size size) { 21 | var path = new Path(); 22 | 23 | path.lineTo(0.0, size.height * 0.9); 24 | 25 | path.lineTo(size.width * 0.8, size.height * 0.5); 26 | 27 | path.quadraticBezierTo(size.width, size.height * 0.4, size.width * 0.8, size.height * 0.3); 28 | 29 | path.lineTo(size.width * 0.2, 0.0); 30 | 31 | return path; 32 | } 33 | 34 | @override 35 | bool shouldReclip(CustomClipper oldClipper) => false; 36 | } 37 | -------------------------------------------------------------------------------- /lib/widget/trapezoid_up_cut.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | class TrapezoidUpCut extends StatelessWidget { 5 | TrapezoidUpCut({@required this.child}); 6 | 7 | final Widget child; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return new ClipPath( 12 | clipper: new DiagonalClipper(), 13 | child: child, 14 | ); 15 | } 16 | } 17 | 18 | class DiagonalClipper extends CustomClipper { 19 | @override 20 | Path getClip(Size size) { 21 | var path = new Path(); 22 | 23 | path.lineTo(size.width * 0.02, size.height); 24 | 25 | path.lineTo(size.width * 0.64, size.height * 0.68); 26 | 27 | path.quadraticBezierTo(size.width * 0.8, size.height * 0.6, size.width * 0.92, size.height * 0.68); 28 | 29 | path.lineTo(size.width, size.height * 0.73); 30 | 31 | path.lineTo(size.width, size.height); 32 | 33 | path.lineTo(size.width * 0.02, size.height); 34 | 35 | return path; 36 | } 37 | 38 | @override 39 | bool shouldReclip(CustomClipper oldClipper) => false; 40 | } 41 | -------------------------------------------------------------------------------- /lib/widget/trapezoid_up_cut_small.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | class TrapezoidUpCutSmall extends StatelessWidget { 5 | TrapezoidUpCutSmall({@required this.child}); 6 | 7 | final Widget child; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return new ClipPath( 12 | clipper: new DiagonalClipper(), 13 | child: child, 14 | ); 15 | } 16 | } 17 | 18 | class DiagonalClipper extends CustomClipper { 19 | @override 20 | Path getClip(Size size) { 21 | var path = new Path(); 22 | 23 | path.lineTo(size.width * 0.3, size.height); 24 | 25 | path.lineTo(size.width * 0.67, size.height * 0.8); 26 | 27 | path.quadraticBezierTo(size.width * 0.77, size.height * 0.75, size.width * 0.87, size.height * 0.8); 28 | 29 | path.lineTo(size.width, size.height * 0.88); 30 | 31 | path.lineTo(size.width, size.height); 32 | 33 | path.lineTo(size.width * 0.3, size.height); 34 | 35 | return path; 36 | } 37 | 38 | @override 39 | bool shouldReclip(CustomClipper oldClipper) => false; 40 | } 41 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_uplab_onboarding 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.1.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | 23 | dev_dependencies: 24 | flutter_test: 25 | sdk: flutter 26 | 27 | 28 | # For information on the generic Dart part of this file, see the 29 | # following page: https://www.dartlang.org/tools/pub/pubspec 30 | 31 | # The following section is specific to Flutter. 32 | flutter: 33 | 34 | # The following line ensures that the Material Icons font is 35 | # included with your application, so that you can use the icons in 36 | # the material Icons class. 37 | uses-material-design: true 38 | 39 | assets: 40 | - assets/images/doctor.jpg 41 | - assets/images/appointment.png 42 | - assets/images/reminder.png 43 | - assets/images/reports.png 44 | - assets/images/yourappointments.png 45 | # To add assets to your application, add an assets section, like this: 46 | # assets: 47 | # - images/a_dot_burr.jpeg 48 | # - images/a_dot_ham.jpeg 49 | 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.io/assets-and-images/#resolution-aware. 52 | 53 | # For details regarding adding assets from package dependencies, see 54 | # https://flutter.io/assets-and-images/#from-packages 55 | 56 | # To add custom fonts to your application, add a fonts section here, 57 | # in this "flutter" section. Each entry in this list should have a 58 | # "family" key with the font family name, and a "fonts" key with a 59 | # list giving the asset and other descriptors for the font. For 60 | # example: 61 | # fonts: 62 | # - family: Schyler 63 | # fonts: 64 | # - asset: fonts/Schyler-Regular.ttf 65 | # - asset: fonts/Schyler-Italic.ttf 66 | # style: italic 67 | # - family: Trajan Pro 68 | # fonts: 69 | # - asset: fonts/TrajanPro.ttf 70 | # - asset: fonts/TrajanPro_Bold.ttf 71 | # weight: 700 72 | # 73 | # For details regarding fonts from package dependencies, 74 | # see https://flutter.io/custom-fonts/#from-packages 75 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_uplab_onboarding/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------