├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── buyticketsdesign │ │ │ └── MainActivity.java │ │ └── 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.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── assets ├── efe-kurnaz.jpg ├── rodion-kutsaev.jpeg └── steve-johnson.jpeg ├── buy_tickets_design.iml ├── buy_tickets_design_android.iml ├── fonts ├── SF-Pro-Display-Black.otf ├── SF-Pro-Display-Bold.otf ├── SF-Pro-Display-Heavy.otf ├── SF-Pro-Display-Light.otf ├── SF-Pro-Display-Medium.otf ├── SF-Pro-Display-Regular.otf ├── SF-Pro-Display-Semibold.otf ├── SF-Pro-Display-Thin.otf └── SF-Pro-Display-Ultralight.otf ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── 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 │ └── main.m ├── lib ├── exhibition_bottom_sheet.dart ├── home_page.dart ├── main.dart ├── scrollable_exhibition_bottom_sheet.dart ├── sliding_cards.dart └── tabs.dart ├── pubspec.lock ├── pubspec.yaml ├── res └── values │ └── strings_en.arb └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | 9 | .flutter-plugins 10 | -------------------------------------------------------------------------------- /.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: 5ab9e70727d858def3a586db7fb98ee580352957 8 | channel: beta 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Buy Tickets Design 2 | 3 | The UI Challenge written in flutter 4 | 5 | Described in following post: 6 | * [Parallax effect in PageView](https://marcinszalek.pl/flutter/tickets-challenge-parallax/) 7 | * [Bottom sheet transition](https://marcinszalek.pl/flutter/tickets-advanced-transitions/) 8 | 9 | ## The design: 10 | ![Design](https://user-images.githubusercontent.com/16286046/56876328-e2647480-6a46-11e9-919e-460ca638d3b4.gif) 11 | 12 | ## The implementation: 13 | ![Implementation](https://user-images.githubusercontent.com/16286046/58473033-e8ce3500-8147-11e9-831b-78f9cf86addb.gif) 14 | 15 | > In home_page.dart you can replace ExhibitionBottomSheet with ScrollableExhibitionSheet to achieve see different implementation with full Listview. 16 | 17 | ![Scrollable](https://user-images.githubusercontent.com/16286046/72800351-7286c180-3c47-11ea-8a3e-a2e24c9208c7.gif) 18 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.class 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | GeneratedPluginRegistrant.java 11 | -------------------------------------------------------------------------------- /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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.buyticketsdesign" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /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/java/com/example/buyticketsdesign/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.buyticketsdesign; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.1.2' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /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.4-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /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/efe-kurnaz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/assets/efe-kurnaz.jpg -------------------------------------------------------------------------------- /assets/rodion-kutsaev.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/assets/rodion-kutsaev.jpeg -------------------------------------------------------------------------------- /assets/steve-johnson.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/assets/steve-johnson.jpeg -------------------------------------------------------------------------------- /buy_tickets_design.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /buy_tickets_design_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Black.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Bold.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Heavy.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Heavy.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Light.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Medium.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Regular.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Semibold.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Thin.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Thin.otf -------------------------------------------------------------------------------- /fonts/SF-Pro-Display-Ultralight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/fonts/SF-Pro-Display-Ultralight.otf -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/app.flx 37 | /Flutter/app.zip 38 | /Flutter/flutter_assets/ 39 | /Flutter/App.framework 40 | /Flutter/Flutter.framework 41 | /Flutter/Generated.xcconfig 42 | /ServiceDefinitions.json 43 | 44 | Pods/ 45 | .symlinks/ 46 | -------------------------------------------------------------------------------- /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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 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 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 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 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 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 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 0910; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 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 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m 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 | 97C147031CF9000F007C117D /* Debug */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.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; 290 | ENABLE_STRICT_OBJC_MSGSEND = YES; 291 | ENABLE_TESTABILITY = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_DYNAMIC_NO_PIC = NO; 294 | GCC_NO_COMMON_BLOCKS = YES; 295 | GCC_OPTIMIZATION_LEVEL = 0; 296 | GCC_PREPROCESSOR_DEFINITIONS = ( 297 | "DEBUG=1", 298 | "$(inherited)", 299 | ); 300 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 301 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 302 | GCC_WARN_UNDECLARED_SELECTOR = YES; 303 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 304 | GCC_WARN_UNUSED_FUNCTION = YES; 305 | GCC_WARN_UNUSED_VARIABLE = YES; 306 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 307 | MTL_ENABLE_DEBUG_INFO = YES; 308 | ONLY_ACTIVE_ARCH = YES; 309 | SDKROOT = iphoneos; 310 | TARGETED_DEVICE_FAMILY = "1,2"; 311 | }; 312 | name = Debug; 313 | }; 314 | 97C147041CF9000F007C117D /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_ANALYZER_NONNULL = YES; 320 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 321 | CLANG_CXX_LIBRARY = "libc++"; 322 | CLANG_ENABLE_MODULES = YES; 323 | CLANG_ENABLE_OBJC_ARC = YES; 324 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 325 | CLANG_WARN_BOOL_CONVERSION = YES; 326 | CLANG_WARN_COMMA = YES; 327 | CLANG_WARN_CONSTANT_CONVERSION = YES; 328 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 329 | CLANG_WARN_EMPTY_BODY = YES; 330 | CLANG_WARN_ENUM_CONVERSION = YES; 331 | CLANG_WARN_INFINITE_RECURSION = YES; 332 | CLANG_WARN_INT_CONVERSION = YES; 333 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 334 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 335 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 336 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 337 | CLANG_WARN_STRICT_PROTOTYPES = YES; 338 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 339 | CLANG_WARN_UNREACHABLE_CODE = YES; 340 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 341 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 342 | COPY_PHASE_STRIP = NO; 343 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 344 | ENABLE_NS_ASSERTIONS = NO; 345 | ENABLE_STRICT_OBJC_MSGSEND = YES; 346 | GCC_C_LANGUAGE_STANDARD = gnu99; 347 | GCC_NO_COMMON_BLOCKS = YES; 348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 350 | GCC_WARN_UNDECLARED_SELECTOR = YES; 351 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 352 | GCC_WARN_UNUSED_FUNCTION = YES; 353 | GCC_WARN_UNUSED_VARIABLE = YES; 354 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 355 | MTL_ENABLE_DEBUG_INFO = NO; 356 | SDKROOT = iphoneos; 357 | TARGETED_DEVICE_FAMILY = "1,2"; 358 | VALIDATE_PRODUCT = YES; 359 | }; 360 | name = Release; 361 | }; 362 | 97C147061CF9000F007C117D /* Debug */ = { 363 | isa = XCBuildConfiguration; 364 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 365 | buildSettings = { 366 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 367 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 368 | ENABLE_BITCODE = NO; 369 | FRAMEWORK_SEARCH_PATHS = ( 370 | "$(inherited)", 371 | "$(PROJECT_DIR)/Flutter", 372 | ); 373 | INFOPLIST_FILE = Runner/Info.plist; 374 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 375 | LIBRARY_SEARCH_PATHS = ( 376 | "$(inherited)", 377 | "$(PROJECT_DIR)/Flutter", 378 | ); 379 | PRODUCT_BUNDLE_IDENTIFIER = com.example.buyTicketsDesign; 380 | PRODUCT_NAME = "$(TARGET_NAME)"; 381 | VERSIONING_SYSTEM = "apple-generic"; 382 | }; 383 | name = Debug; 384 | }; 385 | 97C147071CF9000F007C117D /* Release */ = { 386 | isa = XCBuildConfiguration; 387 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 388 | buildSettings = { 389 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 390 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 391 | ENABLE_BITCODE = NO; 392 | FRAMEWORK_SEARCH_PATHS = ( 393 | "$(inherited)", 394 | "$(PROJECT_DIR)/Flutter", 395 | ); 396 | INFOPLIST_FILE = Runner/Info.plist; 397 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 398 | LIBRARY_SEARCH_PATHS = ( 399 | "$(inherited)", 400 | "$(PROJECT_DIR)/Flutter", 401 | ); 402 | PRODUCT_BUNDLE_IDENTIFIER = com.example.buyTicketsDesign; 403 | PRODUCT_NAME = "$(TARGET_NAME)"; 404 | VERSIONING_SYSTEM = "apple-generic"; 405 | }; 406 | name = Release; 407 | }; 408 | /* End XCBuildConfiguration section */ 409 | 410 | /* Begin XCConfigurationList section */ 411 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 412 | isa = XCConfigurationList; 413 | buildConfigurations = ( 414 | 97C147031CF9000F007C117D /* Debug */, 415 | 97C147041CF9000F007C117D /* Release */, 416 | ); 417 | defaultConfigurationIsVisible = 0; 418 | defaultConfigurationName = Release; 419 | }; 420 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 421 | isa = XCConfigurationList; 422 | buildConfigurations = ( 423 | 97C147061CF9000F007C117D /* Debug */, 424 | 97C147071CF9000F007C117D /* Release */, 425 | ); 426 | defaultConfigurationIsVisible = 0; 427 | defaultConfigurationName = Release; 428 | }; 429 | /* End XCConfigurationList section */ 430 | }; 431 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 432 | } 433 | -------------------------------------------------------------------------------- /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/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcinusX/buy_ticket_design/bd077becdbe1acde400ab8f84935213dc280c337/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 | buy_tickets_design 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/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/exhibition_bottom_sheet.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math' as math; 2 | import 'dart:ui'; 3 | 4 | import 'package:flutter/material.dart'; 5 | 6 | const double minHeight = 120; 7 | const double iconStartSize = 44; 8 | const double iconEndSize = 120; 9 | const double iconStartMarginTop = 36; 10 | const double iconEndMarginTop = 80; 11 | const double iconsVerticalSpacing = 24; 12 | const double iconsHorizontalSpacing = 16; 13 | 14 | class ExhibitionBottomSheet extends StatefulWidget { 15 | @override 16 | _ExhibitionBottomSheetState createState() => _ExhibitionBottomSheetState(); 17 | } 18 | 19 | class _ExhibitionBottomSheetState extends State 20 | with SingleTickerProviderStateMixin { 21 | AnimationController _controller; 22 | 23 | double get maxHeight => MediaQuery.of(context).size.height; 24 | 25 | double get headerTopMargin => 26 | lerp(20, 20 + MediaQuery.of(context).padding.top); 27 | 28 | double get headerFontSize => lerp(14, 24); 29 | 30 | double get itemBorderRadius => lerp(8, 24); 31 | 32 | double get iconLeftBorderRadius => itemBorderRadius; 33 | 34 | double get iconRightBorderRadius => lerp(8, 0); 35 | 36 | double get iconSize => lerp(iconStartSize, iconEndSize); 37 | 38 | double iconTopMargin(int index) => 39 | lerp(iconStartMarginTop, 40 | iconEndMarginTop + index * (iconsVerticalSpacing + iconEndSize)) + 41 | headerTopMargin; 42 | 43 | double iconLeftMargin(int index) => 44 | lerp(index * (iconsHorizontalSpacing + iconStartSize), 0); 45 | 46 | @override 47 | void initState() { 48 | super.initState(); 49 | _controller = AnimationController( 50 | vsync: this, 51 | duration: Duration(milliseconds: 600), 52 | ); 53 | } 54 | 55 | @override 56 | void dispose() { 57 | _controller.dispose(); 58 | super.dispose(); 59 | } 60 | 61 | double lerp(double min, double max) => 62 | lerpDouble(min, max, _controller.value); 63 | 64 | @override 65 | Widget build(BuildContext context) { 66 | return AnimatedBuilder( 67 | animation: _controller, 68 | builder: (context, child) { 69 | return Positioned( 70 | height: lerp(minHeight, maxHeight), 71 | left: 0, 72 | right: 0, 73 | bottom: 0, 74 | child: GestureDetector( 75 | onTap: _toggle, 76 | onVerticalDragUpdate: _handleDragUpdate, 77 | onVerticalDragEnd: _handleDragEnd, 78 | child: Container( 79 | padding: const EdgeInsets.symmetric(horizontal: 32), 80 | decoration: const BoxDecoration( 81 | color: Color(0xFF162A49), 82 | borderRadius: BorderRadius.vertical(top: Radius.circular(32)), 83 | ), 84 | child: Stack( 85 | children: [ 86 | MenuButton(), 87 | SheetHeader( 88 | fontSize: headerFontSize, 89 | topMargin: headerTopMargin, 90 | ), 91 | for (Event event in events) _buildFullItem(event), 92 | for (Event event in events) _buildIcon(event), 93 | ], 94 | ), 95 | ), 96 | ), 97 | ); 98 | }, 99 | ); 100 | } 101 | 102 | Widget _buildIcon(Event event) { 103 | int index = events.indexOf(event); 104 | return Positioned( 105 | height: iconSize, 106 | width: iconSize, 107 | top: iconTopMargin(index), 108 | left: iconLeftMargin(index), 109 | child: ClipRRect( 110 | borderRadius: BorderRadius.horizontal( 111 | left: Radius.circular(iconLeftBorderRadius), 112 | right: Radius.circular(iconRightBorderRadius), 113 | ), 114 | child: Image.asset( 115 | 'assets/${event.assetName}', 116 | fit: BoxFit.cover, 117 | alignment: Alignment(lerp(1, 0), 0), 118 | ), 119 | ), 120 | ); 121 | } 122 | 123 | Widget _buildFullItem(Event event) { 124 | int index = events.indexOf(event); 125 | return ExpandedEventItem( 126 | topMargin: iconTopMargin(index), 127 | leftMargin: iconLeftMargin(index), 128 | height: iconSize, 129 | isVisible: _controller.status == AnimationStatus.completed, 130 | borderRadius: itemBorderRadius, 131 | title: event.title, 132 | date: event.date, 133 | ); 134 | } 135 | 136 | void _toggle() { 137 | final bool isOpen = _controller.status == AnimationStatus.completed; 138 | _controller.fling(velocity: isOpen ? -2 : 2); 139 | } 140 | 141 | void _handleDragUpdate(DragUpdateDetails details) { 142 | _controller.value -= details.primaryDelta / maxHeight; 143 | } 144 | 145 | void _handleDragEnd(DragEndDetails details) { 146 | if (_controller.isAnimating || 147 | _controller.status == AnimationStatus.completed) return; 148 | 149 | final double flingVelocity = 150 | details.velocity.pixelsPerSecond.dy / maxHeight; 151 | if (flingVelocity < 0.0) 152 | _controller.fling(velocity: math.max(2.0, -flingVelocity)); 153 | else if (flingVelocity > 0.0) 154 | _controller.fling(velocity: math.min(-2.0, -flingVelocity)); 155 | else 156 | _controller.fling(velocity: _controller.value < 0.5 ? -2.0 : 2.0); 157 | } 158 | } 159 | 160 | class ExpandedEventItem extends StatelessWidget { 161 | final double topMargin; 162 | final double leftMargin; 163 | final double height; 164 | final bool isVisible; 165 | final double borderRadius; 166 | final String title; 167 | final String date; 168 | 169 | const ExpandedEventItem( 170 | {Key key, 171 | this.topMargin, 172 | this.height, 173 | this.isVisible, 174 | this.borderRadius, 175 | this.title, 176 | this.date, 177 | this.leftMargin}) 178 | : super(key: key); 179 | 180 | @override 181 | Widget build(BuildContext context) { 182 | return Positioned( 183 | top: topMargin, 184 | left: leftMargin, 185 | right: 0, 186 | height: height, 187 | child: AnimatedOpacity( 188 | opacity: isVisible ? 1 : 0, 189 | duration: Duration(milliseconds: 200), 190 | child: Container( 191 | decoration: BoxDecoration( 192 | borderRadius: BorderRadius.circular(borderRadius), 193 | color: Colors.white, 194 | ), 195 | padding: EdgeInsets.only(left: height).add(EdgeInsets.all(8)), 196 | child: _buildContent(), 197 | ), 198 | ), 199 | ); 200 | } 201 | 202 | Widget _buildContent() { 203 | return Column( 204 | children: [ 205 | Text(title, style: TextStyle(fontSize: 16)), 206 | SizedBox(height: 8), 207 | Row( 208 | children: [ 209 | Text( 210 | '1 ticket', 211 | style: TextStyle( 212 | fontWeight: FontWeight.w500, 213 | fontSize: 12, 214 | color: Colors.grey.shade600, 215 | ), 216 | ), 217 | SizedBox(width: 8), 218 | Text( 219 | date, 220 | style: TextStyle( 221 | fontWeight: FontWeight.w300, 222 | fontSize: 12, 223 | color: Colors.grey, 224 | ), 225 | ), 226 | ], 227 | ), 228 | Spacer(), 229 | Row( 230 | children: [ 231 | Icon(Icons.place, color: Colors.grey.shade400, size: 16), 232 | Text( 233 | 'Science Park 10 25A', 234 | style: TextStyle(color: Colors.grey.shade400, fontSize: 13), 235 | ) 236 | ], 237 | ) 238 | ], 239 | ); 240 | } 241 | } 242 | 243 | final List events = [ 244 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 245 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 246 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 247 | ]; 248 | 249 | class Event { 250 | final String assetName; 251 | final String title; 252 | final String date; 253 | 254 | Event(this.assetName, this.title, this.date); 255 | } 256 | 257 | class SheetHeader extends StatelessWidget { 258 | final double fontSize; 259 | final double topMargin; 260 | 261 | const SheetHeader( 262 | {Key key, @required this.fontSize, @required this.topMargin}) 263 | : super(key: key); 264 | 265 | @override 266 | Widget build(BuildContext context) { 267 | return Positioned( 268 | top: topMargin, 269 | child: Text( 270 | 'Booked Exhibition', 271 | style: TextStyle( 272 | color: Colors.white, 273 | fontSize: fontSize, 274 | fontWeight: FontWeight.w500, 275 | ), 276 | ), 277 | ); 278 | } 279 | } 280 | 281 | class MenuButton extends StatelessWidget { 282 | @override 283 | Widget build(BuildContext context) { 284 | return Positioned( 285 | right: 0, 286 | bottom: 24, 287 | child: Icon( 288 | Icons.menu, 289 | color: Colors.white, 290 | size: 28, 291 | ), 292 | ); 293 | } 294 | } 295 | -------------------------------------------------------------------------------- /lib/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:buy_tickets_design/exhibition_bottom_sheet.dart'; 2 | import 'package:buy_tickets_design/sliding_cards.dart'; 3 | import 'package:buy_tickets_design/tabs.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | import 'exhibition_bottom_sheet.dart'; 7 | 8 | class HomePage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | backgroundColor: Colors.white, 13 | body: Stack( 14 | children: [ 15 | SafeArea( 16 | child: Column( 17 | crossAxisAlignment: CrossAxisAlignment.start, 18 | children: [ 19 | SizedBox(height: 8), 20 | Header(), 21 | SizedBox(height: 40), 22 | Tabs(), 23 | SizedBox(height: 8), 24 | SlidingCardsView(), 25 | ], 26 | ), 27 | ), 28 | ExhibitionBottomSheet(), //use this or ScrollableExhibitionSheet 29 | ], 30 | ), 31 | ); 32 | } 33 | } 34 | 35 | class Header extends StatelessWidget { 36 | @override 37 | Widget build(BuildContext context) { 38 | return Padding( 39 | padding: const EdgeInsets.symmetric(horizontal: 32), 40 | child: Text( 41 | 'Shenzhen', 42 | style: TextStyle( 43 | fontSize: 22, 44 | fontWeight: FontWeight.w600, 45 | ), 46 | ), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:buy_tickets_design/home_page.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | void main() => runApp(new MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | theme: ThemeData(fontFamily: 'SF Pro Display'), 11 | title: 'Buy Tickets', 12 | home: HomePage(), 13 | ); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/scrollable_exhibition_bottom_sheet.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:ui'; 3 | 4 | import 'package:flutter/material.dart'; 5 | 6 | ///Notice that by default this class is not used 7 | ///Go to [home_page.dart] and replace [ExhibitionBottomSheet] with [ScrollableExhibitionSheet] to use it 8 | class ScrollableExhibitionSheet extends StatefulWidget { 9 | @override 10 | _ScrollableExhibitionSheetState createState() => 11 | _ScrollableExhibitionSheetState(); 12 | } 13 | 14 | class _ScrollableExhibitionSheetState extends State { 15 | double initialPercentage = 0.15; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Positioned.fill( 20 | child: DraggableScrollableSheet( 21 | minChildSize: initialPercentage, 22 | initialChildSize: initialPercentage, 23 | builder: (context, scrollController) { 24 | return AnimatedBuilder( 25 | animation: scrollController, 26 | builder: (context, child) { 27 | double percentage = initialPercentage; 28 | if (scrollController.hasClients) { 29 | percentage = (scrollController.position.viewportDimension) / 30 | (MediaQuery.of(context).size.height); 31 | } 32 | double scaledPercentage = 33 | (percentage - initialPercentage) / (1 - initialPercentage); 34 | return Container( 35 | padding: const EdgeInsets.only(left: 32), 36 | decoration: const BoxDecoration( 37 | color: Color(0xFF162A49), 38 | borderRadius: BorderRadius.vertical(top: Radius.circular(32)), 39 | ), 40 | child: Stack( 41 | children: [ 42 | Opacity( 43 | opacity: percentage == 1 ? 1 : 0, 44 | child: ListView.builder( 45 | padding: EdgeInsets.only(right: 32, top: 128), 46 | controller: scrollController, 47 | itemCount: 20, 48 | itemBuilder: (context, index) { 49 | Event event = events[index % 3]; 50 | return MyEventItem( 51 | event: event, 52 | percentageCompleted: percentage, 53 | ); 54 | }, 55 | ), 56 | ), 57 | ...events.map((event) { 58 | int index = events.indexOf(event); 59 | int heightPerElement = 120 + 8 + 8; 60 | double widthPerElement = 61 | 40 + percentage * 80 + 8 * (1 - percentage); 62 | double leftOffset = widthPerElement * 63 | (index > 4 ? index + 2 : index) * 64 | (1 - scaledPercentage); 65 | return Positioned( 66 | top: 44.0 + 67 | scaledPercentage * (128 - 44) + 68 | index * heightPerElement * scaledPercentage, 69 | left: leftOffset, 70 | right: 32 - leftOffset, 71 | child: IgnorePointer( 72 | ignoring: true, 73 | child: Opacity( 74 | opacity: percentage == 1 ? 0 : 1, 75 | child: MyEventItem( 76 | event: event, 77 | percentageCompleted: percentage, 78 | ), 79 | ), 80 | ), 81 | ); 82 | }), 83 | SheetHeader( 84 | fontSize: 14 + percentage * 8, 85 | topMargin: 86 | 16 + percentage * MediaQuery.of(context).padding.top, 87 | ), 88 | MenuButton(), 89 | ], 90 | ), 91 | ); 92 | }, 93 | ); 94 | }, 95 | ), 96 | ); 97 | } 98 | } 99 | 100 | class MyEventItem extends StatelessWidget { 101 | final Event event; 102 | final double percentageCompleted; 103 | 104 | const MyEventItem({Key key, this.event, this.percentageCompleted}) 105 | : super(key: key); 106 | 107 | @override 108 | Widget build(BuildContext context) { 109 | return Padding( 110 | padding: EdgeInsets.symmetric(vertical: 8), 111 | child: Transform.scale( 112 | alignment: Alignment.topLeft, 113 | scale: 1 / 3 + 2 / 3 * percentageCompleted, 114 | child: SizedBox( 115 | height: 120, 116 | child: Row( 117 | children: [ 118 | ClipRRect( 119 | borderRadius: BorderRadius.horizontal( 120 | left: Radius.circular(16), 121 | right: Radius.circular(16 * (1 - percentageCompleted)), 122 | ), 123 | child: Image.asset( 124 | 'assets/${event.assetName}', 125 | width: 120, 126 | height: 120, 127 | fit: BoxFit.cover, 128 | ), 129 | ), 130 | Expanded( 131 | child: Opacity( 132 | opacity: max(0, percentageCompleted * 2 - 1), 133 | child: Container( 134 | decoration: BoxDecoration( 135 | borderRadius: 136 | BorderRadius.horizontal(right: Radius.circular(16)), 137 | color: Colors.white, 138 | ), 139 | padding: EdgeInsets.all(8), 140 | child: _buildContent(), 141 | ), 142 | ), 143 | ) 144 | ], 145 | ), 146 | ), 147 | ), 148 | ); 149 | } 150 | 151 | Widget _buildContent() { 152 | return Column( 153 | children: [ 154 | Text(event.title, style: TextStyle(fontSize: 16)), 155 | SizedBox(height: 8), 156 | Row( 157 | children: [ 158 | Text( 159 | '1 ticket', 160 | style: TextStyle( 161 | fontWeight: FontWeight.w500, 162 | fontSize: 12, 163 | color: Colors.grey.shade600, 164 | ), 165 | ), 166 | SizedBox(width: 8), 167 | Text( 168 | event.date, 169 | style: TextStyle( 170 | fontWeight: FontWeight.w300, 171 | fontSize: 12, 172 | color: Colors.grey, 173 | ), 174 | ), 175 | ], 176 | ), 177 | Spacer(), 178 | Row( 179 | children: [ 180 | Icon(Icons.place, color: Colors.grey.shade400, size: 16), 181 | Text( 182 | 'Science Park 10 25A', 183 | style: TextStyle(color: Colors.grey.shade400, fontSize: 13), 184 | ) 185 | ], 186 | ) 187 | ], 188 | ); 189 | } 190 | } 191 | 192 | final List events = [ 193 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 194 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 195 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 196 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 197 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 198 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 199 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 200 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 201 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 202 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 203 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 204 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 205 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 206 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 207 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 208 | Event('steve-johnson.jpeg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 209 | Event('efe-kurnaz.jpg', 'Shenzhen GLOBAL DESIGN AWARD 2018', '4.20-30'), 210 | Event('rodion-kutsaev.jpeg', 'Dawan District Guangdong Hong Kong', '4.28-31'), 211 | ]; 212 | 213 | class Event { 214 | final String assetName; 215 | final String title; 216 | final String date; 217 | 218 | Event(this.assetName, this.title, this.date); 219 | } 220 | 221 | class SheetHeader extends StatelessWidget { 222 | final double fontSize; 223 | final double topMargin; 224 | 225 | const SheetHeader( 226 | {Key key, @required this.fontSize, @required this.topMargin}) 227 | : super(key: key); 228 | 229 | @override 230 | Widget build(BuildContext context) { 231 | return Positioned( 232 | left: 0, 233 | right: 32, 234 | child: IgnorePointer( 235 | child: Container( 236 | padding: EdgeInsets.only(top: topMargin, bottom: 12), 237 | decoration: const BoxDecoration( 238 | color: Color(0xFF162A49), 239 | ), 240 | child: Text( 241 | 'Booked Exhibition', 242 | style: TextStyle( 243 | color: Colors.white, 244 | fontSize: fontSize, 245 | fontWeight: FontWeight.w500, 246 | ), 247 | ), 248 | ), 249 | ), 250 | ); 251 | } 252 | } 253 | 254 | class MenuButton extends StatelessWidget { 255 | @override 256 | Widget build(BuildContext context) { 257 | return Positioned( 258 | right: 12, 259 | bottom: 24, 260 | child: Icon( 261 | Icons.menu, 262 | color: Colors.white, 263 | size: 28, 264 | ), 265 | ); 266 | } 267 | } 268 | -------------------------------------------------------------------------------- /lib/sliding_cards.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/rendering.dart'; 3 | import 'dart:math' as math; 4 | 5 | class SlidingCardsView extends StatefulWidget { 6 | @override 7 | _SlidingCardsViewState createState() => _SlidingCardsViewState(); 8 | } 9 | 10 | class _SlidingCardsViewState extends State { 11 | PageController pageController; 12 | double pageOffset = 0; 13 | 14 | @override 15 | void initState() { 16 | super.initState(); 17 | pageController = PageController(viewportFraction: 0.8); 18 | pageController.addListener(() { 19 | setState(() => pageOffset = pageController.page); 20 | }); 21 | } 22 | 23 | @override 24 | void dispose() { 25 | pageController.dispose(); 26 | super.dispose(); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return SizedBox( 32 | height: MediaQuery.of(context).size.height * 0.55, 33 | child: PageView( 34 | controller: pageController, 35 | children: [ 36 | SlidingCard( 37 | name: 'Shenzhen GLOBAL DESIGN AWARD 2018', 38 | date: '4.20-30', 39 | assetName: 'steve-johnson.jpeg', 40 | offset: pageOffset, 41 | ), 42 | SlidingCard( 43 | name: 'Dawan District, Guangdong Hong Kong and Macao', 44 | date: '4.28-31', 45 | assetName: 'rodion-kutsaev.jpeg', 46 | offset: pageOffset - 1, 47 | ), 48 | ], 49 | ), 50 | ); 51 | } 52 | } 53 | 54 | class SlidingCard extends StatelessWidget { 55 | final String name; 56 | final String date; 57 | final String assetName; 58 | final double offset; 59 | 60 | const SlidingCard({ 61 | Key key, 62 | @required this.name, 63 | @required this.date, 64 | @required this.assetName, 65 | @required this.offset, 66 | }) : super(key: key); 67 | 68 | @override 69 | Widget build(BuildContext context) { 70 | double gauss = math.exp(-(math.pow((offset.abs() - 0.5), 2) / 0.08)); 71 | return Transform.translate( 72 | offset: Offset(-32 * gauss * offset.sign, 0), 73 | child: Card( 74 | margin: EdgeInsets.only(left: 8, right: 8, bottom: 24), 75 | elevation: 8, 76 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)), 77 | child: Column( 78 | children: [ 79 | ClipRRect( 80 | borderRadius: BorderRadius.vertical(top: Radius.circular(32)), 81 | child: Image.asset( 82 | 'assets/$assetName', 83 | height: MediaQuery.of(context).size.height * 0.3, 84 | alignment: Alignment(-offset.abs(), 0), 85 | fit: BoxFit.none, 86 | ), 87 | ), 88 | SizedBox(height: 8), 89 | Expanded( 90 | child: CardContent( 91 | name: name, 92 | date: date, 93 | offset: gauss, 94 | ), 95 | ), 96 | ], 97 | ), 98 | ), 99 | ); 100 | } 101 | } 102 | 103 | class CardContent extends StatelessWidget { 104 | final String name; 105 | final String date; 106 | final double offset; 107 | 108 | const CardContent( 109 | {Key key, 110 | @required this.name, 111 | @required this.date, 112 | @required this.offset}) 113 | : super(key: key); 114 | 115 | @override 116 | Widget build(BuildContext context) { 117 | return Padding( 118 | padding: const EdgeInsets.all(8.0), 119 | child: Column( 120 | crossAxisAlignment: CrossAxisAlignment.start, 121 | children: [ 122 | Transform.translate( 123 | offset: Offset(8 * offset, 0), 124 | child: Text(name, style: TextStyle(fontSize: 20)), 125 | ), 126 | SizedBox(height: 8), 127 | Transform.translate( 128 | offset: Offset(32 * offset, 0), 129 | child: Text( 130 | date, 131 | style: TextStyle(color: Colors.grey), 132 | ), 133 | ), 134 | Spacer(), 135 | Row( 136 | children: [ 137 | Transform.translate( 138 | offset: Offset(48 * offset, 0), 139 | child: RaisedButton( 140 | color: Color(0xFF162A49), 141 | child: Transform.translate( 142 | offset: Offset(24 * offset, 0), 143 | child: Text('Reserve'), 144 | ), 145 | textColor: Colors.white, 146 | shape: RoundedRectangleBorder( 147 | borderRadius: BorderRadius.circular(32), 148 | ), 149 | onPressed: () {}, 150 | ), 151 | ), 152 | Spacer(), 153 | Transform.translate( 154 | offset: Offset(32 * offset, 0), 155 | child: Text( 156 | '0.00 \$', 157 | style: TextStyle( 158 | fontWeight: FontWeight.bold, 159 | fontSize: 20, 160 | ), 161 | ), 162 | ), 163 | SizedBox(width: 16), 164 | ], 165 | ) 166 | ], 167 | ), 168 | ); 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /lib/tabs.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Tabs extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Row( 7 | crossAxisAlignment: CrossAxisAlignment.end, 8 | children: [ 9 | SizedBox(width: 24), 10 | MyTab(text: 'Nearby', isSelected: false), 11 | MyTab(text: 'Recent', isSelected: true), 12 | MyTab(text: 'Notice', isSelected: false), 13 | ], 14 | ); 15 | } 16 | } 17 | 18 | class MyTab extends StatelessWidget { 19 | final String text; 20 | final bool isSelected; 21 | 22 | const MyTab({Key key, @required this.isSelected, @required this.text}) 23 | : super(key: key); 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Padding( 28 | padding: const EdgeInsets.all(8.0), 29 | child: Column( 30 | crossAxisAlignment: CrossAxisAlignment.start, 31 | children: [ 32 | Text( 33 | text, 34 | style: TextStyle( 35 | fontSize: isSelected ? 16 : 14, 36 | color: isSelected ? Colors.black : Colors.grey, 37 | fontWeight: isSelected ? FontWeight.w600 : FontWeight.w500, 38 | ), 39 | ), 40 | Container( 41 | height: 6, 42 | width: 20, 43 | decoration: BoxDecoration( 44 | borderRadius: BorderRadius.circular(4), 45 | color: isSelected ? Color(0xFFFF5A1D) : Colors.white, 46 | ), 47 | ) 48 | ], 49 | ), 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | image: 71 | dependency: transitive 72 | description: 73 | name: image 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "2.1.4" 77 | matcher: 78 | dependency: transitive 79 | description: 80 | name: matcher 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.12.6" 84 | meta: 85 | dependency: transitive 86 | description: 87 | name: meta 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.1.8" 91 | path: 92 | dependency: transitive 93 | description: 94 | name: path 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.6.4" 98 | pedantic: 99 | dependency: transitive 100 | description: 101 | name: pedantic 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.8.0+1" 105 | petitparser: 106 | dependency: transitive 107 | description: 108 | name: petitparser 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "2.4.0" 112 | quiver: 113 | dependency: transitive 114 | description: 115 | name: quiver 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.0.5" 119 | sky_engine: 120 | dependency: transitive 121 | description: flutter 122 | source: sdk 123 | version: "0.0.99" 124 | source_span: 125 | dependency: transitive 126 | description: 127 | name: source_span 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.5.5" 131 | stack_trace: 132 | dependency: transitive 133 | description: 134 | name: stack_trace 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.9.3" 138 | stream_channel: 139 | dependency: transitive 140 | description: 141 | name: stream_channel 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "2.0.0" 145 | string_scanner: 146 | dependency: transitive 147 | description: 148 | name: string_scanner 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.0.5" 152 | term_glyph: 153 | dependency: transitive 154 | description: 155 | name: term_glyph 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.1.0" 159 | test_api: 160 | dependency: transitive 161 | description: 162 | name: test_api 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.2.11" 166 | typed_data: 167 | dependency: transitive 168 | description: 169 | name: typed_data 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.1.6" 173 | vector_math: 174 | dependency: transitive 175 | description: 176 | name: vector_math 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.0.8" 180 | xml: 181 | dependency: transitive 182 | description: 183 | name: xml 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "3.5.0" 187 | sdks: 188 | dart: ">=2.4.0 <3.0.0" 189 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: buy_tickets_design 2 | description: A new Flutter project. 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.2.2 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | dev_dependencies: 20 | flutter_test: 21 | sdk: flutter 22 | 23 | 24 | # For information on the generic Dart part of this file, see the 25 | # following page: https://www.dartlang.org/tools/pub/pubspec 26 | 27 | # The following section is specific to Flutter. 28 | flutter: 29 | 30 | # The following line ensures that the Material Icons font is 31 | # included with your application, so that you can use the icons in 32 | # the material Icons class. 33 | uses-material-design: true 34 | assets: 35 | - assets/efe-kurnaz.jpg 36 | - assets/rodion-kutsaev.jpeg 37 | - assets/steve-johnson.jpeg 38 | fonts: 39 | - family: SF Pro Display 40 | fonts: 41 | - asset: fonts/SF-Pro-Display-Ultralight.otf 42 | weight: 100 43 | - asset: fonts/SF-Pro-Display-Thin.otf 44 | weight: 200 45 | - asset: fonts/SF-Pro-Display-Light.otf 46 | weight: 300 47 | - asset: fonts/SF-Pro-Display-Regular.otf 48 | weight: 400 49 | - asset: fonts/SF-Pro-Display-Medium.otf 50 | weight: 500 51 | - asset: fonts/SF-Pro-Display-Semibold.otf 52 | weight: 600 53 | - asset: fonts/SF-Pro-Display-Bold.otf 54 | weight: 700 55 | - asset: fonts/SF-Pro-Display-Heavy.otf 56 | weight: 800 57 | - asset: fonts/SF-Pro-Display-Black.otf 58 | weight: 900 -------------------------------------------------------------------------------- /res/values/strings_en.arb: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter 3 | // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to 4 | // find child widgets in the widget tree, read text, and verify that the values of widget properties 5 | // are correct. 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_test/flutter_test.dart'; 9 | 10 | import 'package:buy_tickets_design/main.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(new MyApp()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | --------------------------------------------------------------------------------