├── LICENSE ├── README.md └── animation_exp ├── .gitignore ├── .metadata ├── README.md ├── ScreenGif ├── cardSwipe.gif └── pageReveal.gif ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── animationexp │ │ │ └── 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 ├── animation_exp.iml ├── animation_exp_android.iml ├── assets ├── avatars │ ├── avatar-1.jpg │ ├── avatar-2.jpg │ ├── avatar-3.jpg │ ├── avatar-4.jpg │ ├── avatar-5.jpg │ ├── avatar-6.jpg │ └── default-avatar.jpg ├── img1.jpg ├── img2.jpg ├── img3.jpg ├── img4.jpg └── img5.jpg ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── 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 ├── PageReveal │ ├── page_dragger.dart │ ├── page_indicator.dart │ ├── page_main.dart │ ├── page_reveal.dart │ └── pages.dart ├── SwipeAnimation │ ├── activeCard.dart │ ├── data.dart │ ├── detail.dart │ ├── dummyCard.dart │ ├── index.dart │ └── styles.dart └── main.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2018 GeekyAnts 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # FlutterCardSwipe 3 | 4 | ## Card Swipe Animation 5 | 6 | Creating the swipe view as used in the Tinder. Swipe right is considered accepted and swipe left is rejected.It is a rebuild version of a UI design that I came across on [Dribbble](https://dribbble.com/shots/2216416-Showtime-app). 7 | 8 | You can also checkout the flow of animation and steps to design it briefly at my medium article [Tinder Swipe in Flutter](https://blog.geekyants.com/tinder-swipe-in-flutter-7e4fc56021bc) 9 | 10 | # Demo 11 | 12 | #### Card Swipe 13 | 14 | ![Demo](https://github.com/geekruchika/FlutterCardSwipe/blob/master/animation_exp/ScreenGif/cardSwipe.gif) 15 | 16 | 19 | 20 | 21 | ## Getting Started 22 | **Note:** Make sure your Flutter environment is setup. 23 | 24 | #### Installation 25 | 26 | In the command terminal, run the following commands: 27 | 28 | $ git clone https://github.com/geekruchika/FlutterCardSwipe.git 29 | $ cd FlutterCardSwipe/animation_exp 30 | $ flutter run 31 | 32 | # Simulate for iOS 33 | #### Method One 34 | 35 | Open the project in Xcode from ios/Runner.xcodeproj. 36 | Hit the play button. 37 | 38 | #### Method Two 39 | 40 | Run the following command in your terminal. 41 | $ open -a Simulator 42 | $ flutter run 43 | 44 | # Simulate for Android 45 | 46 | Make sure you have an Android emulator installed and running. 47 | Run the following command in your terminal. 48 | $ flutter run 49 | 50 | ##### Check out Flutter’s online [documentation](http://flutter.io/) for help getting start with your Flutter Animation project. -------------------------------------------------------------------------------- /animation_exp/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .atom/ 3 | .dart_tool/ 4 | .idea 5 | .vscode/ 6 | .packages 7 | .pub/ 8 | build/ 9 | ios/.generated/ 10 | packages 11 | .flutter-plugins 12 | -------------------------------------------------------------------------------- /animation_exp/.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: bffae2157102dd75a625153d3dc866d3de69c853 8 | channel: dev 9 | -------------------------------------------------------------------------------- /animation_exp/README.md: -------------------------------------------------------------------------------- 1 | # animation_exp 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | For help getting started with Flutter, view our online 8 | [documentation](https://flutter.io/). 9 | -------------------------------------------------------------------------------- /animation_exp/ScreenGif/cardSwipe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ScreenGif/cardSwipe.gif -------------------------------------------------------------------------------- /animation_exp/ScreenGif/pageReveal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ScreenGif/pageReveal.gif -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/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 | apply plugin: 'com.android.application' 15 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 16 | 17 | android { 18 | compileSdkVersion 27 19 | 20 | lintOptions { 21 | disable 'InvalidPackage' 22 | } 23 | 24 | defaultConfig { 25 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 26 | applicationId "com.example.animationexp" 27 | minSdkVersion 16 28 | targetSdkVersion 27 29 | versionCode 1 30 | versionName "1.0" 31 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 32 | } 33 | 34 | buildTypes { 35 | release { 36 | // TODO: Add your own signing config for the release build. 37 | // Signing with the debug keys for now, so `flutter run --release` works. 38 | signingConfig signingConfigs.debug 39 | } 40 | } 41 | } 42 | 43 | flutter { 44 | source '../..' 45 | } 46 | 47 | dependencies { 48 | testImplementation 'junit:junit:4.12' 49 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 50 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 51 | } 52 | -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/java/com/example/animationexp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.animationexp; 2 | 3 | import android.os.Bundle; 4 | 5 | import io.flutter.app.FlutterActivity; 6 | import io.flutter.plugins.GeneratedPluginRegistrant; 7 | 8 | public class MainActivity extends FlutterActivity { 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | GeneratedPluginRegistrant.registerWith(this); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /animation_exp/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /animation_exp/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.0.1' 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 | -------------------------------------------------------------------------------- /animation_exp/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /animation_exp/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /animation_exp/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.1-all.zip 7 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/animation_exp.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /animation_exp/animation_exp_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-1.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-2.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-3.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-4.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-5.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/avatar-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/avatar-6.jpg -------------------------------------------------------------------------------- /animation_exp/assets/avatars/default-avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/avatars/default-avatar.jpg -------------------------------------------------------------------------------- /animation_exp/assets/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/img1.jpg -------------------------------------------------------------------------------- /animation_exp/assets/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/img2.jpg -------------------------------------------------------------------------------- /animation_exp/assets/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/img3.jpg -------------------------------------------------------------------------------- /animation_exp/assets/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/img4.jpg -------------------------------------------------------------------------------- /animation_exp/assets/img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/assets/img5.jpg -------------------------------------------------------------------------------- /animation_exp/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 | *.pbxuser 16 | *.mode1v3 17 | *.mode2v3 18 | *.perspectivev3 19 | 20 | !default.pbxuser 21 | !default.mode1v3 22 | !default.mode2v3 23 | !default.perspectivev3 24 | 25 | xcuserdata 26 | 27 | *.moved-aside 28 | 29 | *.pyc 30 | *sync/ 31 | Icon? 32 | .tags* 33 | 34 | /Flutter/app.flx 35 | /Flutter/app.zip 36 | /Flutter/flutter_assets/ 37 | /Flutter/App.framework 38 | /Flutter/Flutter.framework 39 | /Flutter/Generated.xcconfig 40 | /ServiceDefinitions.json 41 | 42 | Pods/ 43 | -------------------------------------------------------------------------------- /animation_exp/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 | UIRequiredDeviceCapabilities 24 | 25 | arm64 26 | 27 | MinimumOSVersion 28 | 8.0 29 | 30 | 31 | -------------------------------------------------------------------------------- /animation_exp/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /animation_exp/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 19 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 20 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 21 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 22 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 23 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXCopyFilesBuildPhase section */ 27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 28 | isa = PBXCopyFilesBuildPhase; 29 | buildActionMask = 2147483647; 30 | dstPath = ""; 31 | dstSubfolderSpec = 10; 32 | files = ( 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 35 | ); 36 | name = "Embed Frameworks"; 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXCopyFilesBuildPhase section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 43 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 44 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 78 | 3B80C3931E831B6300D905FE /* App.framework */, 79 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 80 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 81 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 82 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 83 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 84 | ); 85 | name = Flutter; 86 | sourceTree = ""; 87 | }; 88 | 97C146E51CF9000F007C117D = { 89 | isa = PBXGroup; 90 | children = ( 91 | 9740EEB11CF90186004384FC /* Flutter */, 92 | 97C146F01CF9000F007C117D /* Runner */, 93 | 97C146EF1CF9000F007C117D /* Products */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 109 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 110 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 113 | 97C147021CF9000F007C117D /* Info.plist */, 114 | 97C146F11CF9000F007C117D /* Supporting Files */, 115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 97C146F21CF9000F007C117D /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 97C146ED1CF9000F007C117D /* Runner */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 135 | buildPhases = ( 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = Runner; 148 | productName = Runner; 149 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 150 | productType = "com.apple.product-type.application"; 151 | }; 152 | /* End PBXNativeTarget section */ 153 | 154 | /* Begin PBXProject section */ 155 | 97C146E61CF9000F007C117D /* Project object */ = { 156 | isa = PBXProject; 157 | attributes = { 158 | LastUpgradeCheck = 0910; 159 | ORGANIZATIONNAME = "The Chromium Authors"; 160 | TargetAttributes = { 161 | 97C146ED1CF9000F007C117D = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | DevelopmentTeam = 3F25347H8E; 164 | }; 165 | }; 166 | }; 167 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 168 | compatibilityVersion = "Xcode 3.2"; 169 | developmentRegion = English; 170 | hasScannedForEncodings = 0; 171 | knownRegions = ( 172 | en, 173 | Base, 174 | ); 175 | mainGroup = 97C146E51CF9000F007C117D; 176 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 177 | projectDirPath = ""; 178 | projectRoot = ""; 179 | targets = ( 180 | 97C146ED1CF9000F007C117D /* Runner */, 181 | ); 182 | }; 183 | /* End PBXProject section */ 184 | 185 | /* Begin PBXResourcesBuildPhase section */ 186 | 97C146EC1CF9000F007C117D /* Resources */ = { 187 | isa = PBXResourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 191 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 194 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 195 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 196 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | /* End PBXResourcesBuildPhase section */ 201 | 202 | /* Begin PBXShellScriptBuildPhase section */ 203 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 204 | isa = PBXShellScriptBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | ); 208 | inputPaths = ( 209 | ); 210 | name = "Thin Binary"; 211 | outputPaths = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | shellPath = /bin/sh; 215 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 216 | }; 217 | 9740EEB61CF901F6004384FC /* Run Script */ = { 218 | isa = PBXShellScriptBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | ); 222 | inputPaths = ( 223 | ); 224 | name = "Run Script"; 225 | outputPaths = ( 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 230 | }; 231 | /* End PBXShellScriptBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 97C146EA1CF9000F007C117D /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 239 | 97C146F31CF9000F007C117D /* main.m in Sources */, 240 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 97C146FB1CF9000F007C117D /* Base */, 251 | ); 252 | name = Main.storyboard; 253 | sourceTree = ""; 254 | }; 255 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 97C147001CF9000F007C117D /* Base */, 259 | ); 260 | name = LaunchScreen.storyboard; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXVariantGroup section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 97C147031CF9000F007C117D /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_ANALYZER_NONNULL = YES; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 277 | CLANG_WARN_BOOL_CONVERSION = YES; 278 | CLANG_WARN_COMMA = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 281 | CLANG_WARN_EMPTY_BODY = YES; 282 | CLANG_WARN_ENUM_CONVERSION = YES; 283 | CLANG_WARN_INFINITE_RECURSION = YES; 284 | CLANG_WARN_INT_CONVERSION = YES; 285 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 286 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 288 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 289 | CLANG_WARN_STRICT_PROTOTYPES = YES; 290 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 291 | CLANG_WARN_UNREACHABLE_CODE = YES; 292 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 293 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 294 | COPY_PHASE_STRIP = NO; 295 | DEBUG_INFORMATION_FORMAT = dwarf; 296 | ENABLE_STRICT_OBJC_MSGSEND = YES; 297 | ENABLE_TESTABILITY = YES; 298 | GCC_C_LANGUAGE_STANDARD = gnu99; 299 | GCC_DYNAMIC_NO_PIC = NO; 300 | GCC_NO_COMMON_BLOCKS = YES; 301 | GCC_OPTIMIZATION_LEVEL = 0; 302 | GCC_PREPROCESSOR_DEFINITIONS = ( 303 | "DEBUG=1", 304 | "$(inherited)", 305 | ); 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 313 | MTL_ENABLE_DEBUG_INFO = YES; 314 | ONLY_ACTIVE_ARCH = YES; 315 | SDKROOT = iphoneos; 316 | TARGETED_DEVICE_FAMILY = "1,2"; 317 | }; 318 | name = Debug; 319 | }; 320 | 97C147041CF9000F007C117D /* Release */ = { 321 | isa = XCBuildConfiguration; 322 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 323 | buildSettings = { 324 | ALWAYS_SEARCH_USER_PATHS = NO; 325 | CLANG_ANALYZER_NONNULL = YES; 326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 327 | CLANG_CXX_LIBRARY = "libc++"; 328 | CLANG_ENABLE_MODULES = YES; 329 | CLANG_ENABLE_OBJC_ARC = YES; 330 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 331 | CLANG_WARN_BOOL_CONVERSION = YES; 332 | CLANG_WARN_COMMA = YES; 333 | CLANG_WARN_CONSTANT_CONVERSION = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 340 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 343 | CLANG_WARN_STRICT_PROTOTYPES = YES; 344 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 345 | CLANG_WARN_UNREACHABLE_CODE = YES; 346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 350 | ENABLE_NS_ASSERTIONS = NO; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_NO_COMMON_BLOCKS = YES; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNDECLARED_SELECTOR = YES; 357 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 358 | GCC_WARN_UNUSED_FUNCTION = YES; 359 | GCC_WARN_UNUSED_VARIABLE = YES; 360 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 361 | MTL_ENABLE_DEBUG_INFO = NO; 362 | SDKROOT = iphoneos; 363 | TARGETED_DEVICE_FAMILY = "1,2"; 364 | VALIDATE_PRODUCT = YES; 365 | }; 366 | name = Release; 367 | }; 368 | 97C147061CF9000F007C117D /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 371 | buildSettings = { 372 | ARCHS = arm64; 373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 374 | DEVELOPMENT_TEAM = 3F25347H8E; 375 | ENABLE_BITCODE = NO; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(inherited)", 378 | "$(PROJECT_DIR)/Flutter", 379 | ); 380 | INFOPLIST_FILE = Runner/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 382 | LIBRARY_SEARCH_PATHS = ( 383 | "$(inherited)", 384 | "$(PROJECT_DIR)/Flutter", 385 | ); 386 | PRODUCT_BUNDLE_IDENTIFIER = com.example.animationExp; 387 | PRODUCT_NAME = "$(TARGET_NAME)"; 388 | }; 389 | name = Debug; 390 | }; 391 | 97C147071CF9000F007C117D /* Release */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 394 | buildSettings = { 395 | ARCHS = arm64; 396 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 397 | DEVELOPMENT_TEAM = 3F25347H8E; 398 | ENABLE_BITCODE = NO; 399 | FRAMEWORK_SEARCH_PATHS = ( 400 | "$(inherited)", 401 | "$(PROJECT_DIR)/Flutter", 402 | ); 403 | INFOPLIST_FILE = Runner/Info.plist; 404 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 405 | LIBRARY_SEARCH_PATHS = ( 406 | "$(inherited)", 407 | "$(PROJECT_DIR)/Flutter", 408 | ); 409 | PRODUCT_BUNDLE_IDENTIFIER = com.example.animationExp; 410 | PRODUCT_NAME = "$(TARGET_NAME)"; 411 | }; 412 | name = Release; 413 | }; 414 | /* End XCBuildConfiguration section */ 415 | 416 | /* Begin XCConfigurationList section */ 417 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 418 | isa = XCConfigurationList; 419 | buildConfigurations = ( 420 | 97C147031CF9000F007C117D /* Debug */, 421 | 97C147041CF9000F007C117D /* Release */, 422 | ); 423 | defaultConfigurationIsVisible = 0; 424 | defaultConfigurationName = Release; 425 | }; 426 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | 97C147061CF9000F007C117D /* Debug */, 430 | 97C147071CF9000F007C117D /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | defaultConfigurationName = Release; 434 | }; 435 | /* End XCConfigurationList section */ 436 | }; 437 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 438 | } 439 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 7 | [GeneratedPluginRegistrant registerWithRegistry:self]; 8 | // Override point for customization after application launch. 9 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geekruchika/FlutterCardSwipe/be2a5f2c187b7fc528aad9e7d4bc4784002a71e4/animation_exp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /animation_exp/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. -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/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 | animation_exp 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | arm64 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIViewControllerBasedStatusBarAppearance 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /animation_exp/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 | -------------------------------------------------------------------------------- /animation_exp/lib/PageReveal/page_dragger.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:ui'; 3 | 4 | import 'package:animation_exp/PageReveal/page_indicator.dart'; 5 | import 'package:flutter/material.dart'; 6 | 7 | class PageDragger extends StatefulWidget { 8 | final canDragRightToLeft; 9 | final canDragLeftToRight; 10 | final StreamController slideUpdateSytream; 11 | 12 | PageDragger( 13 | {this.canDragLeftToRight, 14 | this.canDragRightToLeft, 15 | this.slideUpdateSytream}); 16 | 17 | @override 18 | _PageDraggerState createState() => new _PageDraggerState(); 19 | } 20 | 21 | class _PageDraggerState extends State { 22 | static const FULL_TRANSITION_PX = 300.0; 23 | 24 | Offset dragStart; 25 | SlideDirection slideDirection; 26 | double slidePercent = 0.0; 27 | onDragStart(DragStartDetails details) { 28 | dragStart = details.globalPosition; 29 | } 30 | 31 | onDragUpdate(DragUpdateDetails details) { 32 | if (dragStart != null) { 33 | final newPosition = details.globalPosition; 34 | final dx = dragStart.dx - newPosition.dx; 35 | if (dx > 0.0 && widget.canDragRightToLeft) { 36 | slideDirection = SlideDirection.rightToLeft; 37 | } else if (dx < 0.0 && widget.canDragLeftToRight) { 38 | slideDirection = SlideDirection.leftToRight; 39 | } else { 40 | slideDirection = SlideDirection.none; 41 | } 42 | 43 | if (slideDirection != SlideDirection.none) { 44 | slidePercent = (dx / FULL_TRANSITION_PX).abs().clamp(0.0, 1.0); 45 | } else { 46 | slidePercent = 0.0; 47 | } 48 | 49 | widget.slideUpdateSytream.add( 50 | new SlideUpdate(UpdateType.dragging, slidePercent, slideDirection)); 51 | } 52 | } 53 | 54 | onDragEnd(DragEndDetails details) { 55 | widget.slideUpdateSytream.add( 56 | new SlideUpdate(UpdateType.doneDragging, 0.0, SlideDirection.none)); 57 | 58 | dragStart = null; 59 | } 60 | 61 | @override 62 | Widget build(BuildContext context) { 63 | return new GestureDetector( 64 | onHorizontalDragStart: onDragStart, 65 | onHorizontalDragUpdate: onDragUpdate, 66 | onHorizontalDragEnd: onDragEnd, 67 | ); 68 | } 69 | } 70 | 71 | class AnimatedPagedragger { 72 | static const PERCENT_PER_MILLISECOND = 0.005; 73 | 74 | final slideDirection; 75 | final transitionGoal; 76 | 77 | AnimationController completionAnimationController; 78 | 79 | AnimatedPagedragger({ 80 | this.slideDirection, 81 | this.transitionGoal, 82 | slidePercent, 83 | StreamController slideUpdateStream, 84 | TickerProvider vsync, 85 | }) { 86 | var startSlidePercent = slidePercent; 87 | var endSlidePercent; 88 | var duration; 89 | 90 | if (transitionGoal == TransitionGoal.open) { 91 | endSlidePercent = 1.0; 92 | 93 | final slideRemaining = 1.0 - slidePercent; 94 | duration = new Duration( 95 | milliseconds: (slideRemaining / PERCENT_PER_MILLISECOND).round()); 96 | } else { 97 | endSlidePercent = 0.0; 98 | duration = new Duration( 99 | milliseconds: (slidePercent / PERCENT_PER_MILLISECOND).round()); 100 | } 101 | 102 | completionAnimationController = 103 | new AnimationController(vsync: vsync, duration: duration) 104 | ..addListener(() { 105 | final slidePercent = lerpDouble(startSlidePercent, endSlidePercent, 106 | completionAnimationController.value); 107 | slideUpdateStream.add(new SlideUpdate( 108 | UpdateType.animating, slidePercent, slideDirection)); 109 | }) 110 | ..addStatusListener((AnimationStatus status) { 111 | if (status == AnimationStatus.completed) { 112 | slideUpdateStream.add(new SlideUpdate( 113 | UpdateType.doneAnimating, endSlidePercent, slideDirection)); 114 | } 115 | }); 116 | } 117 | run() { 118 | completionAnimationController.forward(from: 0.0); 119 | } 120 | 121 | dispose() { 122 | completionAnimationController.dispose(); 123 | } 124 | } 125 | 126 | enum TransitionGoal { 127 | open, 128 | close, 129 | } 130 | 131 | enum UpdateType { 132 | dragging, 133 | doneDragging, 134 | animating, 135 | doneAnimating, 136 | } 137 | 138 | class SlideUpdate { 139 | final updateType; 140 | final direction; 141 | final slidePercent; 142 | 143 | SlideUpdate(this.updateType, this.slidePercent, this.direction); 144 | } 145 | -------------------------------------------------------------------------------- /animation_exp/lib/PageReveal/page_indicator.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:animation_exp/PageReveal/pages.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class PagerIndicator extends StatelessWidget { 7 | final PagerIndicatorViewModel viewModel; 8 | PagerIndicator({this.viewModel}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | List bubbles = []; 13 | 14 | for (var i = 0; i < viewModel.pages.length; ++i) { 15 | final page = viewModel.pages[i]; 16 | var percentActive; 17 | if (i == viewModel.activeIndex) { 18 | percentActive = 1.0 - viewModel.slidePercent; 19 | } else if (i == viewModel.activeIndex - 1 && 20 | viewModel.slideDirection == SlideDirection.leftToRight) { 21 | percentActive = viewModel.slidePercent; 22 | } else if (i == viewModel.activeIndex + 1 && 23 | viewModel.slideDirection == SlideDirection.rightToLeft) { 24 | percentActive = viewModel.slidePercent; 25 | } else { 26 | percentActive = 0.0; 27 | } 28 | 29 | bool isHollow = i > viewModel.activeIndex || 30 | (i == viewModel.activeIndex && 31 | viewModel.slideDirection == SlideDirection.leftToRight); 32 | 33 | bubbles.add(new PageBubble( 34 | viewModel: new PageBubbleViewModel( 35 | page.color, percentActive, page.iconAssetIcon, isHollow), 36 | )); 37 | } 38 | 39 | final BUBBLE_WIDTH = 55.0; 40 | final baseTranslation = 41 | ((viewModel.pages.length * BUBBLE_WIDTH) / 2) - (BUBBLE_WIDTH / 2); 42 | var translation = baseTranslation - (viewModel.activeIndex * BUBBLE_WIDTH); 43 | 44 | if (viewModel.slideDirection == SlideDirection.leftToRight) { 45 | translation += BUBBLE_WIDTH * viewModel.slidePercent; 46 | } else if (viewModel.slideDirection == SlideDirection.rightToLeft) { 47 | translation -= BUBBLE_WIDTH * viewModel.slidePercent; 48 | } 49 | 50 | return new Column( 51 | children: [ 52 | new Expanded(child: new Container()), 53 | new Transform( 54 | transform: new Matrix4.translationValues(translation, 0.0, 0.0), 55 | child: new Row( 56 | mainAxisAlignment: MainAxisAlignment.center, 57 | children: bubbles, 58 | ), 59 | ), 60 | ], 61 | ); 62 | } 63 | } 64 | 65 | enum SlideDirection { leftToRight, rightToLeft, none } 66 | 67 | class PagerIndicatorViewModel { 68 | final List pages; 69 | final int activeIndex; 70 | final SlideDirection slideDirection; 71 | final double slidePercent; 72 | 73 | PagerIndicatorViewModel( 74 | this.slideDirection, this.activeIndex, this.pages, this.slidePercent); 75 | } 76 | 77 | class PageBubble extends StatelessWidget { 78 | final PageBubbleViewModel viewModel; 79 | 80 | PageBubble({this.viewModel}); 81 | 82 | @override 83 | Widget build(BuildContext context) { 84 | return new Container( 85 | width: 55.0, 86 | height: 65.0, 87 | child: new Center( 88 | child: new Container( 89 | width: lerpDouble(25.0, 45.0, viewModel.activePercent), 90 | height: lerpDouble(25.0, 45.0, viewModel.activePercent), 91 | decoration: new BoxDecoration( 92 | color: viewModel.isHollow 93 | ? const Color(0x88FFFFFF) 94 | .withAlpha((0x88 * viewModel.activePercent).round()) 95 | : const Color(0x88FFFFFF), 96 | shape: BoxShape.circle, 97 | border: new Border.all( 98 | color: viewModel.isHollow 99 | ? const Color(0x88FFFFFF).withAlpha( 100 | (0x88 * (1.0 - viewModel.activePercent)).round()) 101 | : Colors.transparent)), 102 | child: new Opacity( 103 | opacity: viewModel.activePercent, 104 | child: new Icon( 105 | viewModel.iconPath, 106 | color: viewModel.color, 107 | )), 108 | ), 109 | ), 110 | ); 111 | } 112 | } 113 | 114 | class PageBubbleViewModel { 115 | final IconData iconPath; 116 | final Color color; 117 | final bool isHollow; 118 | final double activePercent; 119 | 120 | PageBubbleViewModel( 121 | this.color, this.activePercent, this.iconPath, this.isHollow); 122 | } 123 | -------------------------------------------------------------------------------- /animation_exp/lib/PageReveal/page_main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:animation_exp/PageReveal/page_dragger.dart'; 4 | import 'package:animation_exp/PageReveal/page_indicator.dart'; 5 | import 'package:animation_exp/PageReveal/page_reveal.dart'; 6 | import 'package:animation_exp/PageReveal/pages.dart'; 7 | import 'package:flutter/material.dart'; 8 | 9 | class PageMain extends StatefulWidget { 10 | @override 11 | PageMainState createState() => new PageMainState(); 12 | } 13 | 14 | class PageMainState extends State with TickerProviderStateMixin { 15 | StreamController slideUpdateStream; 16 | AnimatedPagedragger animatedPagedragger; 17 | 18 | int activeIndex = 0; 19 | int nextPageIndex = 0; 20 | SlideDirection slideDirection = SlideDirection.none; 21 | double slidePercent = 0.0; 22 | 23 | PageMainState() { 24 | slideUpdateStream = new StreamController(); 25 | 26 | slideUpdateStream.stream.listen((SlideUpdate event) { 27 | setState(() { 28 | if (event.updateType == UpdateType.dragging) { 29 | slideDirection = event.direction; 30 | slidePercent = event.slidePercent; 31 | 32 | if (slideDirection == SlideDirection.leftToRight) { 33 | nextPageIndex = activeIndex - 1; 34 | } else if (slideDirection == SlideDirection.rightToLeft) { 35 | nextPageIndex = activeIndex + 1; 36 | } else { 37 | nextPageIndex = activeIndex; 38 | } 39 | 40 | // nextPageIndex=slideDirection==SlideDirection.leftToRight ? activeIndex-1 : activeIndex+1; 41 | // 42 | // nextPageIndex.clamp(0.0, pages.length-1); 43 | } else if (event.updateType == UpdateType.animating) { 44 | slideDirection = event.direction; 45 | slidePercent = event.slidePercent; 46 | } else if (event.updateType == UpdateType.doneDragging) { 47 | if (slidePercent > 0.5) { 48 | animatedPagedragger = new AnimatedPagedragger( 49 | slideDirection: slideDirection, 50 | transitionGoal: TransitionGoal.open, 51 | slidePercent: slidePercent, 52 | slideUpdateStream: slideUpdateStream, 53 | vsync: this, 54 | ); 55 | 56 | // activeIndex=slideDirection==SlideDirection.leftToRight ? activeIndex-1 : activeIndex+1; 57 | // activeIndex.clamp(0.0, pages.length-1); 58 | } else { 59 | animatedPagedragger = new AnimatedPagedragger( 60 | slideDirection: slideDirection, 61 | transitionGoal: TransitionGoal.close, 62 | slidePercent: slidePercent, 63 | slideUpdateStream: slideUpdateStream, 64 | vsync: this, 65 | ); 66 | nextPageIndex = activeIndex; 67 | } 68 | animatedPagedragger.run(); 69 | 70 | // slideDirection=SlideDirection.none; 71 | // slidePercent=0.0; 72 | 73 | } else if (event.updateType == UpdateType.doneAnimating) { 74 | activeIndex = nextPageIndex; 75 | slideDirection = SlideDirection.none; 76 | slidePercent = 0.0; 77 | animatedPagedragger.dispose(); 78 | } 79 | }); 80 | }); 81 | } 82 | 83 | @override 84 | Widget build(BuildContext context) { 85 | // print(slidePercent); 86 | return (new Scaffold( 87 | body: new Stack( 88 | children: [ 89 | new Page( 90 | viewModel: pages[activeIndex], 91 | percentVisible: 1.0, 92 | ), 93 | new PageReveal( 94 | revealPercent: slidePercent, 95 | child: new Page( 96 | viewModel: pages[nextPageIndex], 97 | percentVisible: slidePercent, 98 | ), 99 | ), 100 | new PagerIndicator( 101 | viewModel: new PagerIndicatorViewModel( 102 | slideDirection, activeIndex, pages, slidePercent), 103 | ), 104 | new PageDragger( 105 | canDragLeftToRight: activeIndex > 0, 106 | canDragRightToLeft: activeIndex < pages.length - 1, 107 | slideUpdateSytream: this.slideUpdateStream, 108 | ) 109 | ], 110 | ))); 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /animation_exp/lib/PageReveal/page_reveal.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'dart:math'; 3 | 4 | import 'package:flutter/material.dart'; 5 | 6 | 7 | class PageReveal extends StatelessWidget { 8 | 9 | final double revealPercent; 10 | final Widget child; 11 | PageReveal({this.child,this.revealPercent}); 12 | 13 | 14 | 15 | @override 16 | 17 | Widget build(BuildContext context) { 18 | return new ClipOval( 19 | clipper: new CircleRevealClipper(revealPercent), 20 | child: child, 21 | ); 22 | } 23 | } 24 | 25 | 26 | 27 | class CircleRevealClipper extends CustomClipper{ 28 | final double revealPercent; 29 | 30 | CircleRevealClipper(this.revealPercent); 31 | 32 | 33 | @override 34 | Rect getClip(Size size) { 35 | 36 | final epicenter=new Offset(size.width/2, size.height*0.9); 37 | 38 | 39 | double theta=atan(epicenter.dy/epicenter.dx); 40 | 41 | final distanceToCorner=epicenter.dy/sin(theta); 42 | 43 | final radius =distanceToCorner*revealPercent; 44 | final diameter=2*radius; 45 | 46 | return new Rect.fromLTWH(epicenter.dx-radius,epicenter.dy-radius,diameter,diameter); 47 | 48 | 49 | } 50 | 51 | @override 52 | bool shouldReclip(CustomClipper oldClipper) { 53 | // TODO: implement shouldReclip 54 | return true; 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /animation_exp/lib/PageReveal/pages.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | 4 | final pages=[ 5 | new PageViewModel(Colors.blue, Icons.phone, Icons.contacts, "This is subtitle", "Contact"), 6 | 7 | new PageViewModel(Colors.red, Icons.chat_bubble, Icons.chat, "This is subtitle", "Chat"), 8 | 9 | new PageViewModel(Colors.green, Icons.hotel, Icons.home, "This is subtitle", "Home"), 10 | 11 | ]; 12 | 13 | class Page extends StatelessWidget { 14 | 15 | final PageViewModel viewModel; 16 | final double percentVisible; 17 | Page({this.viewModel,this.percentVisible=1.0}); 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return new Container( 22 | width: double.INFINITY, 23 | color: viewModel.color, 24 | child: new Opacity( 25 | opacity: percentVisible, 26 | child: new Column( 27 | mainAxisAlignment: MainAxisAlignment.center, 28 | children: [ 29 | 30 | new Transform( 31 | child: new Padding( 32 | padding: const EdgeInsets.only(bottom:25.0), 33 | child: new Icon( 34 | viewModel.iconName, 35 | size: 150.0, 36 | color: Colors.white, 37 | ), 38 | ), 39 | transform: new Matrix4.translationValues(0.0, 50.0*(1.0-percentVisible), 0.0), 40 | ), 41 | 42 | new Transform( 43 | transform: new Matrix4.translationValues(0.0, 30.0*(1.0-percentVisible), 0.0), 44 | child: new Padding( 45 | padding: const EdgeInsets.only(top:10.0,bottom: 10.0), 46 | child: new Text( 47 | viewModel.title, 48 | style: new TextStyle(fontSize: 34.0, color: Colors.white,fontWeight: FontWeight.bold), 49 | ), 50 | ), 51 | ), 52 | new Transform( 53 | transform: new Matrix4.translationValues(0.0, 30.0*(1.0-percentVisible), 0.0), 54 | 55 | child: new Padding( 56 | padding: const EdgeInsets.only(bottom:75.0), 57 | child: new Text( 58 | viewModel.subtitle, 59 | textAlign: TextAlign.center, 60 | style: new TextStyle(fontSize: 18.0, color: Colors.white), 61 | ), 62 | ), 63 | ) 64 | ], 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | 71 | 72 | class PageViewModel{ 73 | final Color color; 74 | final IconData iconName; 75 | final String title; 76 | final String subtitle; 77 | final IconData iconAssetIcon; 78 | PageViewModel(this.color,this.iconAssetIcon,this.iconName,this.subtitle,this.title); 79 | } -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/activeCard.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:animation_exp/SwipeAnimation/detail.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | Positioned cardDemo( 7 | DecorationImage img, 8 | double bottom, 9 | double right, 10 | double left, 11 | double cardWidth, 12 | double rotation, 13 | double skew, 14 | BuildContext context, 15 | Function dismissImg, 16 | int flag, 17 | Function addImg, 18 | Function swipeRight, 19 | Function swipeLeft) { 20 | Size screenSize = MediaQuery.of(context).size; 21 | // print("Card"); 22 | return new Positioned( 23 | bottom: 100.0 + bottom, 24 | right: flag == 0 ? right != 0.0 ? right : null : null, 25 | left: flag == 1 ? right != 0.0 ? right : null : null, 26 | child: new Dismissible( 27 | key: new Key(new Random().toString()), 28 | crossAxisEndOffset: -0.3, 29 | onResize: () { 30 | //print("here"); 31 | // setState(() { 32 | // var i = data.removeLast(); 33 | 34 | // data.insert(0, i); 35 | // }); 36 | }, 37 | onDismissed: (DismissDirection direction) { 38 | // _swipeAnimation(); 39 | if (direction == DismissDirection.endToStart) 40 | dismissImg(img); 41 | else 42 | addImg(img); 43 | }, 44 | child: new Transform( 45 | alignment: flag == 0 ? Alignment.bottomRight : Alignment.bottomLeft, 46 | //transform: null, 47 | transform: new Matrix4.skewX(skew), 48 | //..rotateX(-math.pi / rotation), 49 | child: new RotationTransition( 50 | turns: new AlwaysStoppedAnimation( 51 | flag == 0 ? rotation / 360 : -rotation / 360), 52 | child: new Hero( 53 | tag: "img", 54 | child: new GestureDetector( 55 | onTap: () { 56 | // Navigator.push( 57 | // context, 58 | // new MaterialPageRoute( 59 | // builder: (context) => new DetailPage(type: img))); 60 | Navigator.of(context).push(new PageRouteBuilder( 61 | pageBuilder: (_, __, ___) => new DetailPage(type: img), 62 | )); 63 | }, 64 | child: new Card( 65 | color: Colors.transparent, 66 | elevation: 4.0, 67 | child: new Container( 68 | alignment: Alignment.center, 69 | width: screenSize.width / 1.2 + cardWidth, 70 | height: screenSize.height / 1.7, 71 | decoration: new BoxDecoration( 72 | color: new Color.fromRGBO(121, 114, 173, 1.0), 73 | borderRadius: new BorderRadius.circular(8.0), 74 | ), 75 | child: new Column( 76 | children: [ 77 | new Container( 78 | width: screenSize.width / 1.2 + cardWidth, 79 | height: screenSize.height / 2.2, 80 | decoration: new BoxDecoration( 81 | borderRadius: new BorderRadius.only( 82 | topLeft: new Radius.circular(8.0), 83 | topRight: new Radius.circular(8.0)), 84 | image: img, 85 | ), 86 | ), 87 | new Container( 88 | width: screenSize.width / 1.2 + cardWidth, 89 | height: 90 | screenSize.height / 1.7 - screenSize.height / 2.2, 91 | alignment: Alignment.center, 92 | child: new Row( 93 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 94 | children: [ 95 | new FlatButton( 96 | padding: new EdgeInsets.all(0.0), 97 | onPressed: () { 98 | swipeLeft(); 99 | }, 100 | child: new Container( 101 | height: 60.0, 102 | width: 130.0, 103 | alignment: Alignment.center, 104 | decoration: new BoxDecoration( 105 | color: Colors.red, 106 | borderRadius: 107 | new BorderRadius.circular(60.0), 108 | ), 109 | child: new Text( 110 | "DON'T", 111 | style: new TextStyle(color: Colors.white), 112 | ), 113 | )), 114 | new FlatButton( 115 | padding: new EdgeInsets.all(0.0), 116 | onPressed: () { 117 | swipeRight(); 118 | }, 119 | child: new Container( 120 | height: 60.0, 121 | width: 130.0, 122 | alignment: Alignment.center, 123 | decoration: new BoxDecoration( 124 | color: Colors.cyan, 125 | borderRadius: 126 | new BorderRadius.circular(60.0), 127 | ), 128 | child: new Text( 129 | "I'M IN", 130 | style: new TextStyle(color: Colors.white), 131 | ), 132 | )) 133 | ], 134 | )) 135 | ], 136 | ), 137 | ), 138 | ), 139 | ), 140 | ), 141 | ), 142 | ), 143 | ), 144 | ); 145 | } 146 | -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/data.dart: -------------------------------------------------------------------------------- 1 | import 'package:animation_exp/SwipeAnimation/styles.dart'; 2 | 3 | List imageData = [image5, image3, image4, image2, image1]; 4 | -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/detail.dart: -------------------------------------------------------------------------------- 1 | import 'package:animation_exp/SwipeAnimation/data.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:animation_exp/SwipeAnimation/styles.dart'; 4 | import 'package:flutter/scheduler.dart'; 5 | 6 | class DetailPage extends StatefulWidget { 7 | final DecorationImage type; 8 | const DetailPage({Key key, this.type}) : super(key: key); 9 | @override 10 | _DetailPageState createState() => new _DetailPageState(type: type); 11 | } 12 | 13 | enum AppBarBehavior { normal, pinned, floating, snapping } 14 | 15 | class _DetailPageState extends State with TickerProviderStateMixin { 16 | AnimationController _containerController; 17 | Animation width; 18 | Animation heigth; 19 | DecorationImage type; 20 | _DetailPageState({this.type}); 21 | List data = imageData; 22 | double _appBarHeight = 256.0; 23 | AppBarBehavior _appBarBehavior = AppBarBehavior.pinned; 24 | 25 | void initState() { 26 | _containerController = new AnimationController( 27 | duration: new Duration(milliseconds: 2000), vsync: this); 28 | super.initState(); 29 | width = new Tween( 30 | begin: 200.0, 31 | end: 220.0, 32 | ).animate( 33 | new CurvedAnimation( 34 | parent: _containerController, 35 | curve: Curves.ease, 36 | ), 37 | ); 38 | heigth = new Tween( 39 | begin: 400.0, 40 | end: 400.0, 41 | ).animate( 42 | new CurvedAnimation( 43 | parent: _containerController, 44 | curve: Curves.ease, 45 | ), 46 | ); 47 | heigth.addListener(() { 48 | setState(() { 49 | if (heigth.isCompleted) {} 50 | }); 51 | }); 52 | _containerController.forward(); 53 | } 54 | 55 | @override 56 | void dispose() { 57 | _containerController.dispose(); 58 | super.dispose(); 59 | } 60 | 61 | @override 62 | Widget build(BuildContext context) { 63 | timeDilation = 0.7; 64 | int img = data.indexOf(type); 65 | //print("detail"); 66 | return new Theme( 67 | data: new ThemeData( 68 | brightness: Brightness.light, 69 | primaryColor: const Color.fromRGBO(106, 94, 175, 1.0), 70 | platform: Theme.of(context).platform, 71 | ), 72 | child: new Container( 73 | width: width.value, 74 | height: heigth.value, 75 | color: const Color.fromRGBO(106, 94, 175, 1.0), 76 | child: new Hero( 77 | tag: "img", 78 | child: new Card( 79 | color: Colors.transparent, 80 | child: new Container( 81 | alignment: Alignment.center, 82 | width: width.value, 83 | height: heigth.value, 84 | decoration: new BoxDecoration( 85 | color: Colors.white, 86 | borderRadius: new BorderRadius.circular(10.0), 87 | ), 88 | child: new Stack( 89 | alignment: AlignmentDirectional.bottomCenter, 90 | children: [ 91 | new CustomScrollView( 92 | shrinkWrap: false, 93 | slivers: [ 94 | new SliverAppBar( 95 | elevation: 0.0, 96 | forceElevated: true, 97 | leading: new IconButton( 98 | onPressed: () { 99 | Navigator.of(context).pop(); 100 | }, 101 | icon: new Icon( 102 | Icons.arrow_back, 103 | color: Colors.cyan, 104 | size: 30.0, 105 | ), 106 | ), 107 | expandedHeight: _appBarHeight, 108 | pinned: _appBarBehavior == AppBarBehavior.pinned, 109 | floating: _appBarBehavior == AppBarBehavior.floating || 110 | _appBarBehavior == AppBarBehavior.snapping, 111 | snap: _appBarBehavior == AppBarBehavior.snapping, 112 | flexibleSpace: new FlexibleSpaceBar( 113 | title: new Text("Party"), 114 | background: new Stack( 115 | fit: StackFit.expand, 116 | children: [ 117 | new Container( 118 | width: width.value, 119 | height: _appBarHeight, 120 | decoration: new BoxDecoration( 121 | image: data[img], 122 | ), 123 | ), 124 | ], 125 | ), 126 | ), 127 | ), 128 | new SliverList( 129 | delegate: new SliverChildListDelegate([ 130 | new Container( 131 | color: Colors.white, 132 | child: new Padding( 133 | padding: const EdgeInsets.all(35.0), 134 | child: new Column( 135 | crossAxisAlignment: CrossAxisAlignment.start, 136 | children: [ 137 | new Container( 138 | padding: new EdgeInsets.only(bottom: 20.0), 139 | alignment: Alignment.center, 140 | decoration: new BoxDecoration( 141 | color: Colors.white, 142 | border: new Border( 143 | bottom: new BorderSide( 144 | color: Colors.black12))), 145 | child: new Row( 146 | mainAxisAlignment: 147 | MainAxisAlignment.spaceBetween, 148 | children: [ 149 | new Row( 150 | children: [ 151 | new Icon( 152 | Icons.access_time, 153 | color: Colors.cyan, 154 | ), 155 | new Padding( 156 | padding: 157 | const EdgeInsets.all(8.0), 158 | child: new Text("10:00 AM"), 159 | ) 160 | ], 161 | ), 162 | new Row( 163 | children: [ 164 | new Icon( 165 | Icons.map, 166 | color: Colors.cyan, 167 | ), 168 | new Padding( 169 | padding: 170 | const EdgeInsets.all(8.0), 171 | child: new Text("15 MILES"), 172 | ) 173 | ], 174 | ), 175 | ], 176 | ), 177 | ), 178 | new Padding( 179 | padding: const EdgeInsets.only( 180 | top: 16.0, bottom: 8.0), 181 | child: new Text( 182 | "ABOUT", 183 | style: new TextStyle( 184 | fontWeight: FontWeight.bold), 185 | ), 186 | ), 187 | new Text( 188 | "It's party, party, party like a nigga just got out of jail Flyin' in my 'Rari like a bat that just flew outta hell I'm from the east of ATL, but ballin' in the Cali hills Lil mama booty boomin', that bitch movin' and she standin' still I know these bitches choosin' me, but I got 80 on me still. host for the purposes of socializing, conversation, recreation, or as part of a festival or other commemoration of a special occasion. A party will typically feature food and beverages, and often music and dancing or other forms of entertainment. "), 189 | new Container( 190 | margin: new EdgeInsets.only(top: 25.0), 191 | padding: new EdgeInsets.only( 192 | top: 5.0, bottom: 10.0), 193 | height: 120.0, 194 | decoration: new BoxDecoration( 195 | color: Colors.white, 196 | border: new Border( 197 | top: new BorderSide( 198 | color: Colors.black12))), 199 | child: new Column( 200 | mainAxisAlignment: 201 | MainAxisAlignment.spaceEvenly, 202 | crossAxisAlignment: 203 | CrossAxisAlignment.start, 204 | children: [ 205 | new Text( 206 | "ATTENDEES", 207 | style: new TextStyle( 208 | fontWeight: FontWeight.bold), 209 | ), 210 | new Row( 211 | mainAxisAlignment: 212 | MainAxisAlignment.spaceAround, 213 | crossAxisAlignment: 214 | CrossAxisAlignment.start, 215 | children: [ 216 | new CircleAvatar( 217 | backgroundImage: avatar1), 218 | new CircleAvatar( 219 | backgroundImage: avatar2, 220 | ), 221 | new CircleAvatar( 222 | backgroundImage: avatar3, 223 | ), 224 | new CircleAvatar( 225 | backgroundImage: avatar4, 226 | ), 227 | new CircleAvatar( 228 | backgroundImage: avatar5, 229 | ), 230 | new CircleAvatar( 231 | backgroundImage: avatar6, 232 | ) 233 | ], 234 | ) 235 | ], 236 | ), 237 | ), 238 | new Container( 239 | height: 100.0, 240 | ) 241 | ], 242 | ), 243 | ), 244 | ), 245 | ]), 246 | ), 247 | ], 248 | ), 249 | new Container( 250 | width: 600.0, 251 | height: 80.0, 252 | decoration: new BoxDecoration( 253 | color: new Color.fromRGBO(121, 114, 173, 1.0), 254 | ), 255 | alignment: Alignment.center, 256 | child: new Row( 257 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 258 | children: [ 259 | new FlatButton( 260 | padding: new EdgeInsets.all(0.0), 261 | onPressed: () {}, 262 | child: new Container( 263 | height: 60.0, 264 | width: 130.0, 265 | alignment: Alignment.center, 266 | decoration: new BoxDecoration( 267 | color: Colors.red, 268 | borderRadius: new BorderRadius.circular(60.0), 269 | ), 270 | child: new Text( 271 | "DON'T", 272 | style: new TextStyle(color: Colors.white), 273 | ), 274 | )), 275 | new FlatButton( 276 | padding: new EdgeInsets.all(0.0), 277 | onPressed: () {}, 278 | child: new Container( 279 | height: 60.0, 280 | width: 130.0, 281 | alignment: Alignment.center, 282 | decoration: new BoxDecoration( 283 | color: Colors.cyan, 284 | borderRadius: new BorderRadius.circular(60.0), 285 | ), 286 | child: new Text( 287 | "I'M IN", 288 | style: new TextStyle(color: Colors.white), 289 | ), 290 | )) 291 | ], 292 | )) 293 | ], 294 | ), 295 | ), 296 | ), 297 | ), 298 | ), 299 | ); 300 | } 301 | } 302 | -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/dummyCard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | Positioned cardDemoDummy( 4 | DecorationImage img, 5 | double bottom, 6 | double right, 7 | double left, 8 | double cardWidth, 9 | double rotation, 10 | double skew, 11 | BuildContext context) { 12 | Size screenSize = MediaQuery.of(context).size; 13 | // Size screenSize=(500.0,200.0); 14 | // print("dummyCard"); 15 | return new Positioned( 16 | bottom: 100.0 + bottom, 17 | // right: flag == 0 ? right != 0.0 ? right : null : null, 18 | //left: flag == 1 ? right != 0.0 ? right : null : null, 19 | child: new Card( 20 | color: Colors.transparent, 21 | elevation: 4.0, 22 | child: new Container( 23 | alignment: Alignment.center, 24 | width: screenSize.width / 1.2 + cardWidth, 25 | height: screenSize.height / 1.7, 26 | decoration: new BoxDecoration( 27 | color: new Color.fromRGBO(121, 114, 173, 1.0), 28 | borderRadius: new BorderRadius.circular(8.0), 29 | ), 30 | child: new Column( 31 | children: [ 32 | new Container( 33 | width: screenSize.width / 1.2 + cardWidth, 34 | height: screenSize.height / 2.2, 35 | decoration: new BoxDecoration( 36 | borderRadius: new BorderRadius.only( 37 | topLeft: new Radius.circular(8.0), 38 | topRight: new Radius.circular(8.0)), 39 | image: img, 40 | ), 41 | ), 42 | new Container( 43 | width: screenSize.width / 1.2 + cardWidth, 44 | height: screenSize.height / 1.7 - screenSize.height / 2.2, 45 | alignment: Alignment.center, 46 | child: new Row( 47 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 48 | children: [ 49 | new FlatButton( 50 | padding: new EdgeInsets.all(0.0), 51 | onPressed: () {}, 52 | child: new Container( 53 | height: 60.0, 54 | width: 130.0, 55 | alignment: Alignment.center, 56 | decoration: new BoxDecoration( 57 | color: Colors.red, 58 | borderRadius: new BorderRadius.circular(60.0), 59 | ), 60 | child: new Text( 61 | "DON'T", 62 | style: new TextStyle(color: Colors.white), 63 | ), 64 | )), 65 | new FlatButton( 66 | padding: new EdgeInsets.all(0.0), 67 | onPressed: () {}, 68 | child: new Container( 69 | height: 60.0, 70 | width: 130.0, 71 | alignment: Alignment.center, 72 | decoration: new BoxDecoration( 73 | color: Colors.cyan, 74 | borderRadius: new BorderRadius.circular(60.0), 75 | ), 76 | child: new Text( 77 | "I'M IN", 78 | style: new TextStyle(color: Colors.white), 79 | ), 80 | )) 81 | ], 82 | )) 83 | ], 84 | ), 85 | ), 86 | ), 87 | ); 88 | } 89 | -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/index.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:animation_exp/SwipeAnimation/data.dart'; 3 | import 'package:animation_exp/SwipeAnimation/dummyCard.dart'; 4 | import 'package:animation_exp/SwipeAnimation/activeCard.dart'; 5 | 6 | //import 'package:animation_exp/PageReveal/page_main.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter/scheduler.dart' show timeDilation; 9 | 10 | class CardDemo extends StatefulWidget { 11 | @override 12 | CardDemoState createState() => new CardDemoState(); 13 | } 14 | 15 | class CardDemoState extends State with TickerProviderStateMixin { 16 | AnimationController _buttonController; 17 | Animation rotate; 18 | Animation right; 19 | Animation bottom; 20 | Animation width; 21 | int flag = 0; 22 | 23 | List data = imageData; 24 | List selectedData = []; 25 | void initState() { 26 | super.initState(); 27 | 28 | _buttonController = new AnimationController( 29 | duration: new Duration(milliseconds: 1000), vsync: this); 30 | 31 | rotate = new Tween( 32 | begin: -0.0, 33 | end: -40.0, 34 | ).animate( 35 | new CurvedAnimation( 36 | parent: _buttonController, 37 | curve: Curves.ease, 38 | ), 39 | ); 40 | rotate.addListener(() { 41 | setState(() { 42 | if (rotate.isCompleted) { 43 | var i = data.removeLast(); 44 | data.insert(0, i); 45 | 46 | _buttonController.reset(); 47 | } 48 | }); 49 | }); 50 | 51 | right = new Tween( 52 | begin: 0.0, 53 | end: 400.0, 54 | ).animate( 55 | new CurvedAnimation( 56 | parent: _buttonController, 57 | curve: Curves.ease, 58 | ), 59 | ); 60 | bottom = new Tween( 61 | begin: 15.0, 62 | end: 100.0, 63 | ).animate( 64 | new CurvedAnimation( 65 | parent: _buttonController, 66 | curve: Curves.ease, 67 | ), 68 | ); 69 | width = new Tween( 70 | begin: 20.0, 71 | end: 25.0, 72 | ).animate( 73 | new CurvedAnimation( 74 | parent: _buttonController, 75 | curve: Curves.bounceOut, 76 | ), 77 | ); 78 | } 79 | 80 | @override 81 | void dispose() { 82 | _buttonController.dispose(); 83 | super.dispose(); 84 | } 85 | 86 | Future _swipeAnimation() async { 87 | try { 88 | await _buttonController.forward(); 89 | } on TickerCanceled {} 90 | } 91 | 92 | dismissImg(DecorationImage img) { 93 | setState(() { 94 | data.remove(img); 95 | }); 96 | } 97 | 98 | addImg(DecorationImage img) { 99 | setState(() { 100 | data.remove(img); 101 | selectedData.add(img); 102 | }); 103 | } 104 | 105 | swipeRight() { 106 | if (flag == 0) 107 | setState(() { 108 | flag = 1; 109 | }); 110 | _swipeAnimation(); 111 | } 112 | 113 | swipeLeft() { 114 | if (flag == 1) 115 | setState(() { 116 | flag = 0; 117 | }); 118 | _swipeAnimation(); 119 | } 120 | 121 | @override 122 | Widget build(BuildContext context) { 123 | timeDilation = 0.4; 124 | 125 | double initialBottom = 15.0; 126 | var dataLength = data.length; 127 | double backCardPosition = initialBottom + (dataLength - 1) * 10 + 10; 128 | double backCardWidth = -10.0; 129 | return (new Scaffold( 130 | appBar: new AppBar( 131 | elevation: 0.0, 132 | backgroundColor: new Color.fromRGBO(106, 94, 175, 1.0), 133 | centerTitle: true, 134 | leading: new Container( 135 | margin: const EdgeInsets.all(15.0), 136 | child: new Icon( 137 | Icons.equalizer, 138 | color: Colors.cyan, 139 | size: 30.0, 140 | ), 141 | ), 142 | actions: [ 143 | new GestureDetector( 144 | onTap: () { 145 | // Navigator.push( 146 | // context, 147 | // new MaterialPageRoute( 148 | // builder: (context) => new PageMain())); 149 | }, 150 | child: new Container( 151 | margin: const EdgeInsets.all(15.0), 152 | child: new Icon( 153 | Icons.search, 154 | color: Colors.cyan, 155 | size: 30.0, 156 | )), 157 | ), 158 | ], 159 | title: new Row( 160 | mainAxisAlignment: MainAxisAlignment.center, 161 | children: [ 162 | new Text( 163 | "EVENTS", 164 | style: new TextStyle( 165 | fontSize: 12.0, 166 | letterSpacing: 3.5, 167 | fontWeight: FontWeight.bold), 168 | ), 169 | new Container( 170 | width: 15.0, 171 | height: 15.0, 172 | margin: new EdgeInsets.only(bottom: 20.0), 173 | alignment: Alignment.center, 174 | child: new Text( 175 | dataLength.toString(), 176 | style: new TextStyle(fontSize: 10.0), 177 | ), 178 | decoration: new BoxDecoration( 179 | color: Colors.red, shape: BoxShape.circle), 180 | ) 181 | ], 182 | ), 183 | ), 184 | body: new Container( 185 | color: new Color.fromRGBO(106, 94, 175, 1.0), 186 | alignment: Alignment.center, 187 | child: dataLength > 0 188 | ? new Stack( 189 | alignment: AlignmentDirectional.center, 190 | children: data.map((item) { 191 | if (data.indexOf(item) == dataLength - 1) { 192 | return cardDemo( 193 | item, 194 | bottom.value, 195 | right.value, 196 | 0.0, 197 | backCardWidth + 10, 198 | rotate.value, 199 | rotate.value < -10 ? 0.1 : 0.0, 200 | context, 201 | dismissImg, 202 | flag, 203 | addImg, 204 | swipeRight, 205 | swipeLeft); 206 | } else { 207 | backCardPosition = backCardPosition - 10; 208 | backCardWidth = backCardWidth + 10; 209 | 210 | return cardDemoDummy(item, backCardPosition, 0.0, 0.0, 211 | backCardWidth, 0.0, 0.0, context); 212 | } 213 | }).toList()) 214 | : new Text("No Event Left", 215 | style: new TextStyle(color: Colors.white, fontSize: 50.0)), 216 | ))); 217 | } 218 | } 219 | -------------------------------------------------------------------------------- /animation_exp/lib/SwipeAnimation/styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | DecorationImage image1 = new DecorationImage( 4 | image: new ExactAssetImage('assets/img1.jpg'), 5 | fit: BoxFit.cover, 6 | ); 7 | DecorationImage image2 = new DecorationImage( 8 | image: new ExactAssetImage('assets/img2.jpg'), 9 | fit: BoxFit.cover, 10 | ); 11 | 12 | DecorationImage image3 = new DecorationImage( 13 | image: new ExactAssetImage('assets/img3.jpg'), 14 | fit: BoxFit.cover, 15 | ); 16 | DecorationImage image4 = new DecorationImage( 17 | image: new ExactAssetImage('assets/img4.jpg'), 18 | fit: BoxFit.cover, 19 | ); 20 | DecorationImage image5 = new DecorationImage( 21 | image: new ExactAssetImage('assets/img5.jpg'), 22 | fit: BoxFit.cover, 23 | ); 24 | 25 | ImageProvider avatar1 = new ExactAssetImage('assets/avatars/avatar-1.jpg'); 26 | ImageProvider avatar2 = new ExactAssetImage('assets/avatars/avatar-2.jpg'); 27 | ImageProvider avatar3 = new ExactAssetImage('assets/avatars/avatar-3.jpg'); 28 | ImageProvider avatar4 = new ExactAssetImage('assets/avatars/avatar-4.jpg'); 29 | ImageProvider avatar5 = new ExactAssetImage('assets/avatars/avatar-5.jpg'); 30 | ImageProvider avatar6 = new ExactAssetImage('assets/avatars/avatar-6.jpg'); 31 | -------------------------------------------------------------------------------- /animation_exp/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:animation_exp/SwipeAnimation/index.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 new MaterialApp( 10 | title: 'Flutter Demo', 11 | // showPerformanceOverlay: true, 12 | theme: new ThemeData( 13 | primarySwatch: Colors.blue, 14 | ), 15 | // home: new PageMain(), 16 | home: new CardDemo(), 17 | //home: BottomNavigationDemo(), 18 | // home:new exp(), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /animation_exp/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | analyzer: 5 | dependency: transitive 6 | description: 7 | name: analyzer 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "0.32.4" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.0.8" 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.4" 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.0.2" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.0.6" 60 | csslib: 61 | dependency: transitive 62 | description: 63 | name: csslib 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.14.5" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.2" 74 | flutter: 75 | dependency: "direct main" 76 | description: flutter 77 | source: sdk 78 | version: "0.0.0" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | front_end: 85 | dependency: transitive 86 | description: 87 | name: front_end 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.1.4" 91 | glob: 92 | dependency: transitive 93 | description: 94 | name: glob 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.1.7" 98 | html: 99 | dependency: transitive 100 | description: 101 | name: html 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.13.3+3" 105 | http: 106 | dependency: transitive 107 | description: 108 | name: http 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "0.11.3+17" 112 | http_multi_server: 113 | dependency: transitive 114 | description: 115 | name: http_multi_server 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.0.5" 119 | http_parser: 120 | dependency: transitive 121 | description: 122 | name: http_parser 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "3.1.3" 126 | io: 127 | dependency: transitive 128 | description: 129 | name: io 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.3.3" 133 | js: 134 | dependency: transitive 135 | description: 136 | name: js 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "0.6.1+1" 140 | json_rpc_2: 141 | dependency: transitive 142 | description: 143 | name: json_rpc_2 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "2.0.9" 147 | kernel: 148 | dependency: transitive 149 | description: 150 | name: kernel 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "0.3.4" 154 | logging: 155 | dependency: transitive 156 | description: 157 | name: logging 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.11.3+2" 161 | matcher: 162 | dependency: transitive 163 | description: 164 | name: matcher 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "0.12.3+1" 168 | meta: 169 | dependency: transitive 170 | description: 171 | name: meta 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.1.6" 175 | mime: 176 | dependency: transitive 177 | description: 178 | name: mime 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "0.9.6+2" 182 | multi_server_socket: 183 | dependency: transitive 184 | description: 185 | name: multi_server_socket 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "1.0.2" 189 | node_preamble: 190 | dependency: transitive 191 | description: 192 | name: node_preamble 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.4.4" 196 | package_config: 197 | dependency: transitive 198 | description: 199 | name: package_config 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "1.0.5" 203 | package_resolver: 204 | dependency: transitive 205 | description: 206 | name: package_resolver 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "1.0.4" 210 | path: 211 | dependency: transitive 212 | description: 213 | name: path 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "1.6.2" 217 | plugin: 218 | dependency: transitive 219 | description: 220 | name: plugin 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "0.2.0+3" 224 | pool: 225 | dependency: transitive 226 | description: 227 | name: pool 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "1.3.6" 231 | pub_semver: 232 | dependency: transitive 233 | description: 234 | name: pub_semver 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "1.4.2" 238 | quiver: 239 | dependency: transitive 240 | description: 241 | name: quiver 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "2.0.0+1" 245 | shelf: 246 | dependency: transitive 247 | description: 248 | name: shelf 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "0.7.3+3" 252 | shelf_packages_handler: 253 | dependency: transitive 254 | description: 255 | name: shelf_packages_handler 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "1.0.4" 259 | shelf_static: 260 | dependency: transitive 261 | description: 262 | name: shelf_static 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "0.2.8" 266 | shelf_web_socket: 267 | dependency: transitive 268 | description: 269 | name: shelf_web_socket 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "0.2.2+4" 273 | sky_engine: 274 | dependency: transitive 275 | description: flutter 276 | source: sdk 277 | version: "0.0.99" 278 | source_map_stack_trace: 279 | dependency: transitive 280 | description: 281 | name: source_map_stack_trace 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "1.1.5" 285 | source_maps: 286 | dependency: transitive 287 | description: 288 | name: source_maps 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.10.7" 292 | source_span: 293 | dependency: transitive 294 | description: 295 | name: source_span 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.4.1" 299 | stack_trace: 300 | dependency: transitive 301 | description: 302 | name: stack_trace 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.9.3" 306 | stream_channel: 307 | dependency: transitive 308 | description: 309 | name: stream_channel 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.6.8" 313 | string_scanner: 314 | dependency: transitive 315 | description: 316 | name: string_scanner 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.0.4" 320 | term_glyph: 321 | dependency: transitive 322 | description: 323 | name: term_glyph 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.0.1" 327 | test: 328 | dependency: transitive 329 | description: 330 | name: test 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.3.0" 334 | typed_data: 335 | dependency: transitive 336 | description: 337 | name: typed_data 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.1.6" 341 | utf: 342 | dependency: transitive 343 | description: 344 | name: utf 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.9.0+5" 348 | vector_math: 349 | dependency: transitive 350 | description: 351 | name: vector_math 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "2.0.8" 355 | vm_service_client: 356 | dependency: transitive 357 | description: 358 | name: vm_service_client 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "0.2.6" 362 | watcher: 363 | dependency: transitive 364 | description: 365 | name: watcher 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "0.9.7+10" 369 | web_socket_channel: 370 | dependency: transitive 371 | description: 372 | name: web_socket_channel 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "1.0.9" 376 | yaml: 377 | dependency: transitive 378 | description: 379 | name: yaml 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.1.15" 383 | sdks: 384 | dart: ">=2.0.0-dev.68.0 <3.0.0" 385 | -------------------------------------------------------------------------------- /animation_exp/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: animation_exp 2 | description: A new Flutter project. 3 | 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | 8 | # The following adds the Cupertino Icons font to your application. 9 | # Use with the CupertinoIcons class for iOS style icons. 10 | cupertino_icons: ^0.1.0 11 | 12 | dev_dependencies: 13 | flutter_test: 14 | sdk: flutter 15 | 16 | 17 | # For information on the generic Dart part of this file, see the 18 | # following page: https://www.dartlang.org/tools/pub/pubspec 19 | 20 | # The following section is specific to Flutter. 21 | flutter: 22 | 23 | # The following line ensures that the Material Icons font is 24 | # included with your application, so that you can use the icons in 25 | # the material Icons class. 26 | uses-material-design: true 27 | 28 | # To add assets to your application, add an assets section, like this: 29 | assets: 30 | - assets/img1.jpg 31 | - assets/img2.jpg 32 | - assets/img3.jpg 33 | - assets/img4.jpg 34 | - assets/img5.jpg 35 | - assets/avatars/avatar-1.jpg 36 | - assets/avatars/avatar-2.jpg 37 | - assets/avatars/avatar-3.jpg 38 | - assets/avatars/avatar-4.jpg 39 | - assets/avatars/avatar-5.jpg 40 | - assets/avatars/avatar-6.jpg 41 | 42 | 43 | # - images/a_dot_burr.jpeg 44 | # - images/a_dot_ham.jpeg 45 | 46 | # An image asset can refer to one or more resolution-specific "variants", see 47 | # https://flutter.io/assets-and-images/#resolution-aware. 48 | 49 | # For details regarding adding assets from package dependencies, see 50 | # https://flutter.io/assets-and-images/#from-packages 51 | 52 | # To add custom fonts to your application, add a fonts section here, 53 | # in this "flutter" section. Each entry in this list should have a 54 | # "family" key with the font family name, and a "fonts" key with a 55 | # list giving the asset and other descriptors for the font. For 56 | # example: 57 | # fonts: 58 | # - family: Schyler 59 | # fonts: 60 | # - asset: fonts/Schyler-Regular.ttf 61 | # - asset: fonts/Schyler-Italic.ttf 62 | # style: italic 63 | # - family: Trajan Pro 64 | # fonts: 65 | # - asset: fonts/TrajanPro.ttf 66 | # - asset: fonts/TrajanPro_Bold.ttf 67 | # weight: 700 68 | # 69 | # For details regarding fonts from package dependencies, 70 | # see https://flutter.io/custom-fonts/#from-packages 71 | -------------------------------------------------------------------------------- /animation_exp/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:animation_exp/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 | --------------------------------------------------------------------------------