├── .gitignore
├── .metadata
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_parallax_scroll
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── 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-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
└── svg
│ ├── background_icons.svg
│ ├── layer1.svg
│ ├── layer2.svg
│ ├── layer2_icons.svg
│ ├── layer3.svg
│ ├── layer3_icons.svg
│ ├── money.svg
│ ├── mountains.svg
│ └── stars.svg
├── doc
├── badges
│ ├── Dart-0175C2.svg
│ ├── Flutter-02569B.svg
│ ├── Flutter-3.svg
│ ├── built-with-love.svg
│ ├── dart-null_safety-blue.svg
│ ├── flutter-dart.svg
│ └── license-MIT.svg
└── img
│ ├── banner.png
│ ├── showcase_1.gif
│ └── showcase_2.gif
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── main.dart
├── screens
│ └── home
│ │ ├── home_screen.dart
│ │ └── subscreens
│ │ ├── benefits_subscreen.dart
│ │ └── urban_planners_subscreen.dart
└── shared
│ ├── colors.dart
│ ├── consts.dart
│ ├── widgets.dart
│ └── widgets
│ ├── custom_button.dart
│ ├── paralax.dart
│ ├── paralax
│ ├── parallax_scroll.dart
│ └── parallax_svg_background.dart
│ └── svg_label.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Exceptions to above rules.
43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: f1875d570e39de09040c8f79aa13cc56baab8db1
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
17 | base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
18 | - platform: android
19 | create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
20 | base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
21 |
22 | # User provided section
23 |
24 | # List of Local paths (relative to this file) that should be
25 | # ignored by the migrate tool.
26 | #
27 | # Files that are not part of the templates will be ignored by default.
28 | unmanaged_files:
29 | - 'lib/main.dart'
30 | - 'ios/Runner.xcodeproj/project.pbxproj'
31 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "cSpell.words": ["ARGB", "cupertino", "playstore", "rxdart", "Stian's"]
3 | }
4 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Tomasz Pawlikowski
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | # Flutter UI Challenge- "Urban Planners" Parallax Scroll
8 |
9 | 
10 |
11 | ## About project
12 |
13 | The application was written based on this great UI concept: https://dribbble.com/shots/8907229-Urban-Planners-Mobile-Animation
14 |
15 | Many thanks to **Stian**, for allowing me to write an application based on his UI concept.
16 | Thanks a lot to him for his great involvement in this project.
17 | Check out the rest of his great designs: https://dribbble.com/Stian
18 |
19 | ## App in action
20 |
21 | 
22 | 
23 |
24 | ## Follow me
25 |
26 | If you want to be informed about new projects, follow me on [Twitter](https://twitter.com/t_pawlik)
27 |
28 | ## Dev
29 |
30 | To build application, you need to install **Flutter (3.0+)**. You can find help here: https://flutter.dev/docs/get-started/install
31 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.flutter_parallax_scroll"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_parallax_scroll/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_parallax_scroll
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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-7.4-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/svg/background_icons.svg:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/assets/svg/layer1.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svg/layer2.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svg/layer2_icons.svg:
--------------------------------------------------------------------------------
1 |
38 |
--------------------------------------------------------------------------------
/assets/svg/layer3.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svg/layer3_icons.svg:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/assets/svg/money.svg:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/assets/svg/mountains.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/assets/svg/stars.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/doc/badges/Dart-0175C2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/Flutter-02569B.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/Flutter-3.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/built-with-love.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/dart-null_safety-blue.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/flutter-dart.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/badges/license-MIT.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/img/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/doc/img/banner.png
--------------------------------------------------------------------------------
/doc/img/showcase_1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/doc/img/showcase_1.gif
--------------------------------------------------------------------------------
/doc/img/showcase_2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/doc/img/showcase_2.gif
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - path_provider_ios (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | path_provider_ios:
14 | :path: ".symlinks/plugins/path_provider_ios/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
18 | path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
19 |
20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
21 |
22 | COCOAPODS: 1.11.3
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 303A360B0078DAF0D53EB2B6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC093CAF69BB48D38213FFEF /* Pods_Runner.framework */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 042A1D61731C262C044795B3 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
36 | 260A31DD14E9C67A39061011 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | CC093CAF69BB48D38213FFEF /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
49 | E37ABE8CCE56B5D1F7605D57 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 303A360B0078DAF0D53EB2B6 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 8EABAF33E77C9754A82417D0 /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | CC093CAF69BB48D38213FFEF /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 9740EEB11CF90186004384FC /* Flutter */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
79 | );
80 | name = Flutter;
81 | sourceTree = "";
82 | };
83 | 97C146E51CF9000F007C117D = {
84 | isa = PBXGroup;
85 | children = (
86 | 9740EEB11CF90186004384FC /* Flutter */,
87 | 97C146F01CF9000F007C117D /* Runner */,
88 | 97C146EF1CF9000F007C117D /* Products */,
89 | EAC4B29987706C8AF7C3A3A2 /* Pods */,
90 | 8EABAF33E77C9754A82417D0 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
108 | 97C147021CF9000F007C117D /* Info.plist */,
109 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
110 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
111 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
112 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
113 | );
114 | path = Runner;
115 | sourceTree = "";
116 | };
117 | EAC4B29987706C8AF7C3A3A2 /* Pods */ = {
118 | isa = PBXGroup;
119 | children = (
120 | E37ABE8CCE56B5D1F7605D57 /* Pods-Runner.debug.xcconfig */,
121 | 260A31DD14E9C67A39061011 /* Pods-Runner.release.xcconfig */,
122 | 042A1D61731C262C044795B3 /* Pods-Runner.profile.xcconfig */,
123 | );
124 | name = Pods;
125 | path = Pods;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | CB727A114A84789ADEC0138D /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | 3C36D187430347EC74020FC3 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1300;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputPaths = (
207 | );
208 | name = "Thin Binary";
209 | outputPaths = (
210 | );
211 | runOnlyForDeploymentPostprocessing = 0;
212 | shellPath = /bin/sh;
213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
214 | };
215 | 3C36D187430347EC74020FC3 /* [CP] Embed Pods Frameworks */ = {
216 | isa = PBXShellScriptBuildPhase;
217 | buildActionMask = 2147483647;
218 | files = (
219 | );
220 | inputFileListPaths = (
221 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
222 | );
223 | name = "[CP] Embed Pods Frameworks";
224 | outputFileListPaths = (
225 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
226 | );
227 | runOnlyForDeploymentPostprocessing = 0;
228 | shellPath = /bin/sh;
229 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
230 | showEnvVarsInLog = 0;
231 | };
232 | 9740EEB61CF901F6004384FC /* Run Script */ = {
233 | isa = PBXShellScriptBuildPhase;
234 | buildActionMask = 2147483647;
235 | files = (
236 | );
237 | inputPaths = (
238 | );
239 | name = "Run Script";
240 | outputPaths = (
241 | );
242 | runOnlyForDeploymentPostprocessing = 0;
243 | shellPath = /bin/sh;
244 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
245 | };
246 | CB727A114A84789ADEC0138D /* [CP] Check Pods Manifest.lock */ = {
247 | isa = PBXShellScriptBuildPhase;
248 | buildActionMask = 2147483647;
249 | files = (
250 | );
251 | inputFileListPaths = (
252 | );
253 | inputPaths = (
254 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
255 | "${PODS_ROOT}/Manifest.lock",
256 | );
257 | name = "[CP] Check Pods Manifest.lock";
258 | outputFileListPaths = (
259 | );
260 | outputPaths = (
261 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | shellPath = /bin/sh;
265 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
266 | showEnvVarsInLog = 0;
267 | };
268 | /* End PBXShellScriptBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 97C146EA1CF9000F007C117D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXSourcesBuildPhase section */
281 |
282 | /* Begin PBXVariantGroup section */
283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
284 | isa = PBXVariantGroup;
285 | children = (
286 | 97C146FB1CF9000F007C117D /* Base */,
287 | );
288 | name = Main.storyboard;
289 | sourceTree = "";
290 | };
291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 97C147001CF9000F007C117D /* Base */,
295 | );
296 | name = LaunchScreen.storyboard;
297 | sourceTree = "";
298 | };
299 | /* End PBXVariantGroup section */
300 |
301 | /* Begin XCBuildConfiguration section */
302 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
333 | ENABLE_NS_ASSERTIONS = NO;
334 | ENABLE_STRICT_OBJC_MSGSEND = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_NO_COMMON_BLOCKS = YES;
337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
339 | GCC_WARN_UNDECLARED_SELECTOR = YES;
340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341 | GCC_WARN_UNUSED_FUNCTION = YES;
342 | GCC_WARN_UNUSED_VARIABLE = YES;
343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
344 | MTL_ENABLE_DEBUG_INFO = NO;
345 | SDKROOT = iphoneos;
346 | SUPPORTED_PLATFORMS = iphoneos;
347 | TARGETED_DEVICE_FAMILY = "1,2";
348 | VALIDATE_PRODUCT = YES;
349 | };
350 | name = Profile;
351 | };
352 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
353 | isa = XCBuildConfiguration;
354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
359 | ENABLE_BITCODE = NO;
360 | INFOPLIST_FILE = Runner/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = (
362 | "$(inherited)",
363 | "@executable_path/Frameworks",
364 | );
365 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterParallaxScroll;
366 | PRODUCT_NAME = "$(TARGET_NAME)";
367 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
368 | SWIFT_VERSION = 5.0;
369 | VERSIONING_SYSTEM = "apple-generic";
370 | };
371 | name = Profile;
372 | };
373 | 97C147031CF9000F007C117D /* Debug */ = {
374 | isa = XCBuildConfiguration;
375 | buildSettings = {
376 | ALWAYS_SEARCH_USER_PATHS = NO;
377 | CLANG_ANALYZER_NONNULL = YES;
378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
379 | CLANG_CXX_LIBRARY = "libc++";
380 | CLANG_ENABLE_MODULES = YES;
381 | CLANG_ENABLE_OBJC_ARC = YES;
382 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
383 | CLANG_WARN_BOOL_CONVERSION = YES;
384 | CLANG_WARN_COMMA = YES;
385 | CLANG_WARN_CONSTANT_CONVERSION = YES;
386 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
388 | CLANG_WARN_EMPTY_BODY = YES;
389 | CLANG_WARN_ENUM_CONVERSION = YES;
390 | CLANG_WARN_INFINITE_RECURSION = YES;
391 | CLANG_WARN_INT_CONVERSION = YES;
392 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
393 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
394 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
395 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
396 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
397 | CLANG_WARN_STRICT_PROTOTYPES = YES;
398 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
399 | CLANG_WARN_UNREACHABLE_CODE = YES;
400 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
401 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
402 | COPY_PHASE_STRIP = NO;
403 | DEBUG_INFORMATION_FORMAT = dwarf;
404 | ENABLE_STRICT_OBJC_MSGSEND = YES;
405 | ENABLE_TESTABILITY = YES;
406 | GCC_C_LANGUAGE_STANDARD = gnu99;
407 | GCC_DYNAMIC_NO_PIC = NO;
408 | GCC_NO_COMMON_BLOCKS = YES;
409 | GCC_OPTIMIZATION_LEVEL = 0;
410 | GCC_PREPROCESSOR_DEFINITIONS = (
411 | "DEBUG=1",
412 | "$(inherited)",
413 | );
414 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
415 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
416 | GCC_WARN_UNDECLARED_SELECTOR = YES;
417 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
418 | GCC_WARN_UNUSED_FUNCTION = YES;
419 | GCC_WARN_UNUSED_VARIABLE = YES;
420 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
421 | MTL_ENABLE_DEBUG_INFO = YES;
422 | ONLY_ACTIVE_ARCH = YES;
423 | SDKROOT = iphoneos;
424 | TARGETED_DEVICE_FAMILY = "1,2";
425 | };
426 | name = Debug;
427 | };
428 | 97C147041CF9000F007C117D /* Release */ = {
429 | isa = XCBuildConfiguration;
430 | buildSettings = {
431 | ALWAYS_SEARCH_USER_PATHS = NO;
432 | CLANG_ANALYZER_NONNULL = YES;
433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
434 | CLANG_CXX_LIBRARY = "libc++";
435 | CLANG_ENABLE_MODULES = YES;
436 | CLANG_ENABLE_OBJC_ARC = YES;
437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
438 | CLANG_WARN_BOOL_CONVERSION = YES;
439 | CLANG_WARN_COMMA = YES;
440 | CLANG_WARN_CONSTANT_CONVERSION = YES;
441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
443 | CLANG_WARN_EMPTY_BODY = YES;
444 | CLANG_WARN_ENUM_CONVERSION = YES;
445 | CLANG_WARN_INFINITE_RECURSION = YES;
446 | CLANG_WARN_INT_CONVERSION = YES;
447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
448 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
449 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
451 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
452 | CLANG_WARN_STRICT_PROTOTYPES = YES;
453 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
454 | CLANG_WARN_UNREACHABLE_CODE = YES;
455 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
457 | COPY_PHASE_STRIP = NO;
458 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
459 | ENABLE_NS_ASSERTIONS = NO;
460 | ENABLE_STRICT_OBJC_MSGSEND = YES;
461 | GCC_C_LANGUAGE_STANDARD = gnu99;
462 | GCC_NO_COMMON_BLOCKS = YES;
463 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
464 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
465 | GCC_WARN_UNDECLARED_SELECTOR = YES;
466 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
467 | GCC_WARN_UNUSED_FUNCTION = YES;
468 | GCC_WARN_UNUSED_VARIABLE = YES;
469 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
470 | MTL_ENABLE_DEBUG_INFO = NO;
471 | SDKROOT = iphoneos;
472 | SUPPORTED_PLATFORMS = iphoneos;
473 | SWIFT_COMPILATION_MODE = wholemodule;
474 | SWIFT_OPTIMIZATION_LEVEL = "-O";
475 | TARGETED_DEVICE_FAMILY = "1,2";
476 | VALIDATE_PRODUCT = YES;
477 | };
478 | name = Release;
479 | };
480 | 97C147061CF9000F007C117D /* Debug */ = {
481 | isa = XCBuildConfiguration;
482 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
483 | buildSettings = {
484 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
485 | CLANG_ENABLE_MODULES = YES;
486 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
487 | ENABLE_BITCODE = NO;
488 | INFOPLIST_FILE = Runner/Info.plist;
489 | LD_RUNPATH_SEARCH_PATHS = (
490 | "$(inherited)",
491 | "@executable_path/Frameworks",
492 | );
493 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterParallaxScroll;
494 | PRODUCT_NAME = "$(TARGET_NAME)";
495 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
496 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
497 | SWIFT_VERSION = 5.0;
498 | VERSIONING_SYSTEM = "apple-generic";
499 | };
500 | name = Debug;
501 | };
502 | 97C147071CF9000F007C117D /* Release */ = {
503 | isa = XCBuildConfiguration;
504 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
505 | buildSettings = {
506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
507 | CLANG_ENABLE_MODULES = YES;
508 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
509 | ENABLE_BITCODE = NO;
510 | INFOPLIST_FILE = Runner/Info.plist;
511 | LD_RUNPATH_SEARCH_PATHS = (
512 | "$(inherited)",
513 | "@executable_path/Frameworks",
514 | );
515 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterParallaxScroll;
516 | PRODUCT_NAME = "$(TARGET_NAME)";
517 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
518 | SWIFT_VERSION = 5.0;
519 | VERSIONING_SYSTEM = "apple-generic";
520 | };
521 | name = Release;
522 | };
523 | /* End XCBuildConfiguration section */
524 |
525 | /* Begin XCConfigurationList section */
526 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
527 | isa = XCConfigurationList;
528 | buildConfigurations = (
529 | 97C147031CF9000F007C117D /* Debug */,
530 | 97C147041CF9000F007C117D /* Release */,
531 | 249021D3217E4FDB00AE95B9 /* Profile */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
537 | isa = XCConfigurationList;
538 | buildConfigurations = (
539 | 97C147061CF9000F007C117D /* Debug */,
540 | 97C147071CF9000F007C117D /* Release */,
541 | 249021D4217E4FDB00AE95B9 /* Profile */,
542 | );
543 | defaultConfigurationIsVisible = 0;
544 | defaultConfigurationName = Release;
545 | };
546 | /* End XCConfigurationList section */
547 | };
548 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
549 | }
550 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pawlik92/flutter_parallax_scroll/17463955c9f43e7d7b1a3b5148cfb2e1bd878828/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Parallax Scroll
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_parallax_scroll
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'screens/home/home_screen.dart';
4 |
5 | void main() {
6 | WidgetsFlutterBinding.ensureInitialized();
7 |
8 | SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
9 | overlays: [SystemUiOverlay.bottom]);
10 | SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
11 | .then((_) {
12 | runApp(const MyApp());
13 | });
14 | }
15 |
16 | class MyApp extends StatelessWidget {
17 | const MyApp({Key? key}) : super(key: key);
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return const MaterialApp(
22 | title: 'Flutter Parallax Scroll',
23 | debugShowCheckedModeBanner: false,
24 | home: HomeScreen(),
25 | );
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/screens/home/home_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'subscreens/benefits_subscreen.dart';
3 | import 'subscreens/urban_planners_subscreen.dart';
4 | import '../../shared/colors.dart';
5 | import '../../shared/consts.dart';
6 | import '../../shared/widgets/paralax.dart';
7 |
8 | class HomeScreen extends StatefulWidget {
9 | const HomeScreen({Key? key}) : super(key: key);
10 |
11 | @override
12 | State createState() => _HomeScreenState();
13 | }
14 |
15 | class _HomeScreenState extends State {
16 | final ScrollController controller = ScrollController();
17 | bool _disabled3D = false;
18 |
19 | @override
20 | void dispose() {
21 | controller.dispose();
22 | super.dispose();
23 | }
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 | return Scaffold(
28 | body: Container(
29 | color: CustomColors.backgroundGreen,
30 | child: ParallaxScroll(
31 | controller: controller,
32 | physic: const ClampingScrollPhysics(),
33 | parallaxBackgroundChildren: _buildParallaxElements(),
34 | parallaxForegroundChildren: [
35 | ParallaxElement(
36 | child: _buildEffectToggle(),
37 | )
38 | ],
39 | children: [
40 | UrbanPlannersSubscreen(controller: controller),
41 | BenefitsSubscreen(controller: controller),
42 | ],
43 | ),
44 | ),
45 | );
46 | }
47 |
48 | List _buildParallaxElements() {
49 | return [
50 | ParallaxElement(
51 | scrollDelay: const Duration(milliseconds: 230),
52 | child: ParallaxSvgBackground(
53 | disableDeepEffect: true,
54 | disableShadow: true,
55 | settings: ParallaxBackgroundSettings.predefined(),
56 | svgAssetName: 'assets/svg/background_icons.svg',
57 | translationOffset: Consts.svgBackgroundIconsOffst,
58 | ),
59 | ),
60 | ParallaxElement(
61 | scrollDelay: const Duration(milliseconds: 230),
62 | child: ParallaxSvgBackground(
63 | disableDeepEffect: _disabled3D,
64 | settings: ParallaxBackgroundSettings.predefined(),
65 | svgAssetName: 'assets/svg/layer3.svg',
66 | translationOffset: Consts.svgLayersOffset,
67 | ),
68 | ),
69 | ParallaxElement(
70 | scrollDelay: const Duration(milliseconds: 230),
71 | child: ParallaxSvgBackground(
72 | disableDeepEffect: true,
73 | disableShadow: true,
74 | settings: ParallaxBackgroundSettings.predefined(),
75 | svgAssetName: 'assets/svg/layer3_icons.svg',
76 | translationOffset: Consts.svgLayer3IconsOffst,
77 | ),
78 | ),
79 | ParallaxElement(
80 | scrollDelay: const Duration(milliseconds: 150),
81 | child: ParallaxSvgBackground(
82 | disableDeepEffect: _disabled3D,
83 | settings: ParallaxBackgroundSettings.predefined(),
84 | svgAssetName: 'assets/svg/layer2.svg',
85 | translationOffset: Consts.svgLayersOffset,
86 | ),
87 | ),
88 | ParallaxElement(
89 | scrollDelay: const Duration(milliseconds: 150),
90 | child: ParallaxSvgBackground(
91 | disableDeepEffect: true,
92 | disableShadow: true,
93 | settings: ParallaxBackgroundSettings.predefined(),
94 | svgAssetName: 'assets/svg/layer2_icons.svg',
95 | translationOffset: Consts.svgLayer2IconsOffst,
96 | ),
97 | ),
98 | ParallaxElement(
99 | scrollDelay: const Duration(milliseconds: 40),
100 | child: ParallaxSvgBackground(
101 | disableDeepEffect: _disabled3D,
102 | settings: ParallaxBackgroundSettings.predefined(),
103 | svgAssetName: 'assets/svg/layer1.svg',
104 | translationOffset: Consts.svgLayersOffset,
105 | ),
106 | ),
107 | ];
108 | }
109 |
110 | Widget _buildEffectToggle() {
111 | return IconButton(
112 | icon: Icon(
113 | _disabled3D ? Icons.blur_off : Icons.blur_on,
114 | color: CustomColors.green3,
115 | size: 30,
116 | ),
117 | tooltip: 'On/Off 3D effect',
118 | onPressed: () {
119 | setState(() => _disabled3D = !_disabled3D);
120 | },
121 | );
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/lib/screens/home/subscreens/benefits_subscreen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../../../shared/colors.dart';
3 | import '../../../shared/widgets.dart';
4 | import 'package:google_fonts/google_fonts.dart';
5 |
6 | class BenefitsSubscreen extends StatelessWidget {
7 | const BenefitsSubscreen({
8 | Key? key,
9 | this.controller,
10 | }) : super(key: key);
11 |
12 | final ScrollController? controller;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Column(
17 | mainAxisAlignment: MainAxisAlignment.start,
18 | children: [
19 | const SizedBox(height: 200.0),
20 | Text(
21 | 'All inclusive estate'.toUpperCase(),
22 | style: GoogleFonts.nunito(
23 | color: CustomColors.textGreen,
24 | fontSize: 19,
25 | fontWeight: FontWeight.w900,
26 | ),
27 | ),
28 | const SizedBox(height: 22),
29 | Text(
30 | 'Benefits',
31 | style: GoogleFonts.poppins(
32 | color: CustomColors.headerText,
33 | fontSize: 60,
34 | fontWeight: FontWeight.w800,
35 | height: .9,
36 | ),
37 | ),
38 | const SizedBox(height: 20),
39 | SizedBox(
40 | width: 70,
41 | height: 5,
42 | child: Container(
43 | color: CustomColors.orange,
44 | ),
45 | ),
46 | const SizedBox(height: 25),
47 | Text(
48 | 'Get the most out of your buck,\nwe know the best spots.',
49 | textAlign: TextAlign.center,
50 | style: GoogleFonts.nunito(
51 | color: CustomColors.text,
52 | fontSize: 25,
53 | fontWeight: FontWeight.w500,
54 | height: 1.2,
55 | ),
56 | ),
57 | const SizedBox(height: 50),
58 | Text(
59 | 'We don\'t just find prime quality \nfor affordable prices, we also find\n the right community for you.',
60 | textAlign: TextAlign.center,
61 | style: GoogleFonts.nunito(
62 | color: CustomColors.text,
63 | fontSize: 20,
64 | fontWeight: FontWeight.w500,
65 | height: 1.2,
66 | ),
67 | ),
68 | const SizedBox(height: 45),
69 | Row(
70 | mainAxisAlignment: MainAxisAlignment.center,
71 | children: const [
72 | SvgLabel(
73 | assetName: 'assets/svg/mountains.svg',
74 | label: 'Prime \nview',
75 | ),
76 | SizedBox(width: 45),
77 | SvgLabel(
78 | assetName: 'assets/svg/stars.svg',
79 | label: 'Excellent \nquality',
80 | ),
81 | SizedBox(width: 45),
82 | SvgLabel(
83 | assetName: 'assets/svg/money.svg',
84 | label: 'Good \nprices',
85 | ),
86 | ],
87 | ),
88 | const SizedBox(height: 90),
89 | Align(
90 | alignment: const Alignment(.8, 0.0),
91 | child: CustomButton(
92 | text: 'Get in touch',
93 | minWidth: 200,
94 | onPressed: () {
95 | controller!.animateTo(0,
96 | duration: const Duration(milliseconds: 2300),
97 | curve: Curves.ease);
98 | },
99 | ),
100 | ),
101 | const SizedBox(height: 200),
102 | ],
103 | );
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/lib/screens/home/subscreens/urban_planners_subscreen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../../../shared/colors.dart';
3 | import 'package:google_fonts/google_fonts.dart';
4 |
5 | class UrbanPlannersSubscreen extends StatelessWidget {
6 | const UrbanPlannersSubscreen({
7 | Key? key,
8 | this.controller,
9 | }) : super(key: key);
10 |
11 | final ScrollController? controller;
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Column(
16 | mainAxisSize: MainAxisSize.max,
17 | mainAxisAlignment: MainAxisAlignment.start,
18 | children: [
19 | const SizedBox(height: 200),
20 | Text(
21 | 'Lots. For little'.toUpperCase(),
22 | textAlign: TextAlign.center,
23 | style: GoogleFonts.nunito(
24 | color: CustomColors.textGreen,
25 | fontSize: 19,
26 | fontWeight: FontWeight.w900,
27 | ),
28 | ),
29 | const SizedBox(height: 22),
30 | Text(
31 | 'Urban \nPlanners',
32 | textAlign: TextAlign.center,
33 | style: GoogleFonts.poppins(
34 | color: CustomColors.headerText,
35 | fontSize: 60,
36 | fontWeight: FontWeight.w800,
37 | height: .9,
38 | ),
39 | ),
40 | const SizedBox(height: 20),
41 | SizedBox(
42 | width: 70,
43 | height: 5,
44 | child: Container(
45 | color: CustomColors.orange,
46 | ),
47 | ),
48 | const SizedBox(height: 25),
49 | Text(
50 | 'Location matters as much as \nyour house, we focus on the \nwhole experience of real estate.',
51 | textAlign: TextAlign.center,
52 | style: GoogleFonts.nunito(
53 | color: CustomColors.text,
54 | fontSize: 20,
55 | fontWeight: FontWeight.w500,
56 | height: 1.2,
57 | ),
58 | ),
59 | const SizedBox(height: 10),
60 | TextButton(
61 | onPressed: () {
62 | controller!.animateTo(1540,
63 | duration: const Duration(milliseconds: 2300),
64 | curve: Curves.ease);
65 | },
66 | child: Text(
67 | 'Show more',
68 | style: GoogleFonts.nunito(
69 | color: CustomColors.orange,
70 | fontSize: 18,
71 | fontWeight: FontWeight.w600,
72 | height: 1.2,
73 | ),
74 | ),
75 | ),
76 | const SizedBox(height: 330),
77 | _buildExteriorInfoSection(),
78 | const SizedBox(height: 370),
79 | ],
80 | );
81 | }
82 |
83 | Widget _buildExteriorInfoSection() {
84 | return Align(
85 | alignment: Alignment.centerLeft,
86 | child: Padding(
87 | padding: const EdgeInsets.only(left: 30.0),
88 | child: Column(
89 | crossAxisAlignment: CrossAxisAlignment.stretch,
90 | children: [
91 | Text(
92 | 'Get the \nbest view',
93 | textAlign: TextAlign.left,
94 | style: GoogleFonts.poppins(
95 | color: CustomColors.headerText,
96 | fontSize: 28,
97 | fontWeight: FontWeight.w800,
98 | height: 1,
99 | ),
100 | ),
101 | const SizedBox(height: 16),
102 | Text(
103 | 'We know all the \nsweet spots \nin your region.',
104 | style: GoogleFonts.nunito(
105 | color: CustomColors.text,
106 | fontSize: 20,
107 | fontWeight: FontWeight.w500,
108 | height: 1.2,
109 | ),
110 | ),
111 | ],
112 | ),
113 | ),
114 | );
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/lib/shared/colors.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | class CustomColors {
4 | static Color text = const Color.fromARGB(255, 65, 62, 62);
5 | static Color headerText = const Color.fromARGB(255, 36, 36, 36);
6 | static Color textGreen = const Color.fromARGB(255, 116, 180, 155);
7 | static Color orange = const Color.fromARGB(255, 253, 147, 38);
8 | static Color backgroundGreen = const Color.fromARGB(255, 92, 141, 138);
9 | static Color green2 = const Color.fromARGB(255, 117, 180, 156);
10 | static Color green3 = const Color.fromARGB(255, 166, 212, 195);
11 | }
12 |
--------------------------------------------------------------------------------
/lib/shared/consts.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 |
3 | class Consts {
4 | static Offset svgLayersOffset = const Offset(0, -134);
5 | static Offset svgBackgroundIconsOffst = const Offset(0, 914);
6 | static Offset svgLayer2IconsOffst = const Offset(0, 126);
7 | static Offset svgLayer3IconsOffst = const Offset(0, 592);
8 | }
9 |
--------------------------------------------------------------------------------
/lib/shared/widgets.dart:
--------------------------------------------------------------------------------
1 | export './widgets/custom_button.dart';
2 | export './widgets/svg_label.dart';
3 |
--------------------------------------------------------------------------------
/lib/shared/widgets/custom_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../colors.dart';
3 | import 'package:google_fonts/google_fonts.dart';
4 |
5 | class CustomButton extends StatelessWidget {
6 | const CustomButton({
7 | Key? key,
8 | required this.text,
9 | required this.onPressed,
10 | this.minWidth = 135.0,
11 | this.height = 62.0,
12 | }) : super(key: key);
13 |
14 | final VoidCallback onPressed;
15 | final String text;
16 | final double minWidth;
17 | final double height;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return ButtonTheme(
22 | minWidth: minWidth,
23 | height: height,
24 | child: ElevatedButton(
25 | style: ElevatedButton.styleFrom(
26 | padding:
27 | const EdgeInsets.symmetric(horizontal: 40.0, vertical: 20.0),
28 | backgroundColor: CustomColors.orange,
29 | shape: RoundedRectangleBorder(
30 | borderRadius: BorderRadius.circular(25.0),
31 | ),
32 | elevation: 0,
33 | textStyle: const TextStyle(color: Colors.white)),
34 | onPressed: onPressed,
35 | child: Text(
36 | text.toUpperCase(),
37 | style: GoogleFonts.nunito(
38 | color: Colors.white,
39 | fontSize: 15,
40 | fontWeight: FontWeight.w800,
41 | ),
42 | ),
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/shared/widgets/paralax.dart:
--------------------------------------------------------------------------------
1 | export './paralax/parallax_scroll.dart';
2 | export './paralax/parallax_svg_background.dart';
3 |
--------------------------------------------------------------------------------
/lib/shared/widgets/paralax/parallax_scroll.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:rxdart/rxdart.dart';
3 |
4 | class ParallaxScroll extends StatefulWidget {
5 | const ParallaxScroll({
6 | Key? key,
7 | this.children = const [],
8 | this.parallaxBackgroundChildren = const [],
9 | this.parallaxForegroundChildren = const [],
10 | this.controller,
11 | this.physic,
12 | }) : super(key: key);
13 |
14 | final List children;
15 | final List parallaxBackgroundChildren;
16 | final List parallaxForegroundChildren;
17 | final ScrollPhysics? physic;
18 | final ScrollController? controller;
19 |
20 | @override
21 | State createState() => _ParallaxScrollState();
22 | }
23 |
24 | class _ParallaxScrollState extends State {
25 | final _scrollDataSubject = BehaviorSubject();
26 | final Map> _scrollStreams = {};
27 |
28 | @override
29 | void dispose() {
30 | _scrollDataSubject.close();
31 | super.dispose();
32 | }
33 |
34 | @override
35 | Widget build(BuildContext context) {
36 | return Stack(
37 | children: [
38 | ..._buildParallaxElements(widget.parallaxBackgroundChildren),
39 | NotificationListener(
40 | onNotification: _onScrollUpdate,
41 | child: SingleChildScrollView(
42 | controller: widget.controller,
43 | physics: widget.physic,
44 | child: Column(
45 | children: widget.children,
46 | ),
47 | ),
48 | ),
49 | ..._buildParallaxElements(widget.parallaxForegroundChildren),
50 | ],
51 | );
52 | }
53 |
54 | List<_ParallaxElementWrapper> _buildParallaxElements(
55 | List elements) {
56 | List<_ParallaxElementWrapper> result = [];
57 | for (ParallaxElement element in elements) {
58 | result.add(
59 | _ParallaxElementWrapper(element,
60 | scrollPostitionStream: _getDelayedScrollStream(
61 | element.scrollDelay,
62 | )),
63 | );
64 | }
65 |
66 | return result;
67 | }
68 |
69 | bool _onScrollUpdate(ScrollNotification notification) {
70 | if (notification is ScrollUpdateNotification) {
71 | _scrollDataSubject.add(notification.metrics.pixels);
72 | }
73 | return true;
74 | }
75 |
76 | Stream? _getDelayedScrollStream(Duration duration) {
77 | if (!_scrollStreams.containsKey(duration)) {
78 | _generateScrollStream(duration);
79 | }
80 |
81 | return _scrollStreams[duration];
82 | }
83 |
84 | void _generateScrollStream(Duration duration) {
85 | _scrollStreams.putIfAbsent(
86 | duration, () => _scrollDataSubject.delay(duration));
87 | }
88 | }
89 |
90 | class ParallaxElement extends StatelessWidget {
91 | const ParallaxElement({
92 | Key? key,
93 | this.scrollDelay = const Duration(),
94 | required this.child,
95 | }) : super(key: key);
96 |
97 | final Duration scrollDelay;
98 | final Widget child;
99 |
100 | @override
101 | Widget build(BuildContext context) {
102 | return child;
103 | }
104 | }
105 |
106 | class _ParallaxElementWrapper extends StatelessWidget {
107 | const _ParallaxElementWrapper(
108 | this.child, {
109 | required this.scrollPostitionStream,
110 | Key? key,
111 | }) : super(key: key);
112 |
113 | final ParallaxElement child;
114 | final Stream? scrollPostitionStream;
115 |
116 | @override
117 | Widget build(BuildContext context) {
118 | return StreamBuilder(
119 | stream: scrollPostitionStream,
120 | builder: (context, snapshot) {
121 | return Positioned(
122 | top: -1 * (snapshot.data ?? 0.0),
123 | child: child,
124 | );
125 | },
126 | );
127 | }
128 | }
129 |
--------------------------------------------------------------------------------
/lib/shared/widgets/paralax/parallax_svg_background.dart:
--------------------------------------------------------------------------------
1 | import 'dart:typed_data';
2 |
3 | import 'package:flutter/widgets.dart';
4 | import 'package:flutter_svg/flutter_svg.dart';
5 | import 'package:quiver/core.dart' as quiver;
6 |
7 | class ParallaxBackgroundSettings {
8 | const ParallaxBackgroundSettings({
9 | this.deepEffectMatrix,
10 | this.shadowSigma = 0.0,
11 | this.shadowColor = const Color(0x00000000),
12 | });
13 |
14 | final Float64List? deepEffectMatrix;
15 | final double shadowSigma;
16 | final Color shadowColor;
17 |
18 | static ParallaxBackgroundSettings predefined() {
19 | return ParallaxBackgroundSettings(
20 | deepEffectMatrix: (Matrix4.identity()
21 | ..scale(1.02, 1.010)
22 | ..translate(-9.0, 2))
23 | .storage,
24 | shadowColor: const Color.fromARGB(110, 0, 0, 0),
25 | shadowSigma: 12,
26 | );
27 | }
28 |
29 | @override
30 | bool operator ==(Object other) =>
31 | (other is ParallaxBackgroundSettings) &&
32 | deepEffectMatrix == other.deepEffectMatrix &&
33 | shadowSigma == other.shadowSigma &&
34 | shadowColor == other.shadowColor;
35 |
36 | @override
37 | int get hashCode => quiver.hash3(
38 | deepEffectMatrix.hashCode, shadowColor.hashCode, shadowSigma.hashCode);
39 | }
40 |
41 | class ParallaxSvgBackground extends StatefulWidget {
42 | const ParallaxSvgBackground({
43 | Key? key,
44 | required this.svgAssetName,
45 | this.disableDeepEffect = false,
46 | this.disableShadow = false,
47 | this.translationOffset = Offset.zero,
48 | this.settings,
49 | this.autoXScale = false,
50 | this.autoYScale = false,
51 | }) : super(key: key);
52 |
53 | final bool disableDeepEffect;
54 | final bool disableShadow;
55 | final String svgAssetName;
56 | final Offset translationOffset;
57 | final ParallaxBackgroundSettings? settings;
58 | final bool autoXScale;
59 | final bool autoYScale;
60 |
61 | @override
62 | State createState() => _ParallaxSvgBackgroundState();
63 | }
64 |
65 | class _ParallaxSvgBackgroundState extends State {
66 | ParallaxBackgroundSettings get settings =>
67 | widget.settings ?? _predefinedSettings;
68 |
69 | bool _needsRepaint = false;
70 | final ParallaxBackgroundSettings _predefinedSettings =
71 | ParallaxBackgroundSettings.predefined();
72 |
73 | @override
74 | void didUpdateWidget(ParallaxSvgBackground oldWidget) {
75 | super.didUpdateWidget(oldWidget);
76 | _needsRepaint = widget.disableDeepEffect != oldWidget.disableDeepEffect ||
77 | widget.disableShadow != oldWidget.disableShadow ||
78 | widget.svgAssetName != oldWidget.svgAssetName ||
79 | oldWidget.settings != settings;
80 | }
81 |
82 | @override
83 | Widget build(BuildContext context) {
84 | return FutureBuilder(
85 | future: _loadSvg(),
86 | builder: (BuildContext context, AsyncSnapshot snapshot) {
87 | if (snapshot.connectionState != ConnectionState.done) {
88 | return Container();
89 | }
90 |
91 | Widget result = RepaintBoundary(
92 | child: CustomPaint(
93 | isComplex: true,
94 | willChange: false,
95 | painter: _ParallaxBackgroundPainter(
96 | drawableRoot: snapshot.data,
97 | translationOffset: widget.translationOffset,
98 | disableDeepEffect: widget.disableDeepEffect,
99 | disableShadow: widget.disableShadow,
100 | settings: widget.settings,
101 | needsRepaint: _needsRepaint,
102 | autoXScale: widget.autoXScale,
103 | autoYScale: widget.autoYScale,
104 | screenSize: MediaQuery.of(context).size,
105 | ),
106 | ),
107 | );
108 | if (_needsRepaint == true) {
109 | WidgetsBinding.instance.addPostFrameCallback(
110 | (_) => setState(() => _needsRepaint = false));
111 | }
112 | return result;
113 | },
114 | );
115 | }
116 |
117 | Future _loadSvg() {
118 | return DefaultAssetBundle.of(context)
119 | .loadString(widget.svgAssetName)
120 | .then(
121 | (svgString) => svg.fromSvgString(svgString, svgString));
122 | }
123 | }
124 |
125 | class _ParallaxBackgroundPainter extends CustomPainter {
126 | const _ParallaxBackgroundPainter({
127 | this.disableDeepEffect,
128 | this.disableShadow,
129 | this.needsRepaint,
130 | this.drawableRoot,
131 | this.translationOffset,
132 | this.settings,
133 | this.autoXScale,
134 | this.autoYScale,
135 | this.screenSize,
136 | });
137 |
138 | final bool? disableDeepEffect;
139 | final bool? disableShadow;
140 | final bool? needsRepaint;
141 | final DrawableRoot? drawableRoot;
142 | final Offset? translationOffset;
143 | final ParallaxBackgroundSettings? settings;
144 | final bool? autoXScale;
145 | final bool? autoYScale;
146 | final Size? screenSize;
147 |
148 | @override
149 | void paint(Canvas canvas, Size size) async {
150 | canvas.save();
151 | if (translationOffset != null) {
152 | canvas.translate(translationOffset!.dx, translationOffset!.dy);
153 | }
154 |
155 | double scaleXFactor = 1;
156 | double scaleYFactor = 1;
157 |
158 | if (autoXScale == true) {
159 | scaleXFactor = screenSize!.width / drawableRoot!.viewport.width;
160 | }
161 | if (autoYScale == true) {
162 | scaleYFactor = screenSize!.height / drawableRoot!.viewport.height;
163 | }
164 |
165 | canvas.scale(scaleXFactor, scaleYFactor);
166 |
167 | drawableRoot!.clipCanvasToViewBox(canvas);
168 | _drawPath(canvas, drawableRoot!);
169 |
170 | canvas.restore();
171 | }
172 |
173 | @override
174 | bool shouldRepaint(_ParallaxBackgroundPainter oldDelegate) =>
175 | needsRepaint == true;
176 |
177 | _drawPath(Canvas canvas, DrawableRoot drawable) {
178 | Float64List deepEffectMatrix =
179 | settings?.deepEffectMatrix ?? Matrix4.identity().storage;
180 |
181 | // Draw shadow
182 | if (disableShadow != true) {
183 | var shadowDrawable = drawable.mergeStyle(
184 | DrawableStyle(
185 | fill: DrawablePaint(
186 | PaintingStyle.fill,
187 | color: settings!.shadowColor,
188 | maskFilter:
189 | MaskFilter.blur(BlurStyle.normal, settings!.shadowSigma),
190 | ),
191 | ),
192 | );
193 |
194 | canvas.save();
195 |
196 | canvas.transform(deepEffectMatrix);
197 | shadowDrawable.draw(canvas, Rect.zero);
198 |
199 | canvas.restore();
200 | }
201 |
202 | if (disableDeepEffect != true) {
203 | var deepDrawable = drawable.mergeStyle(
204 | const DrawableStyle(
205 | fill: DrawablePaint(
206 | PaintingStyle.fill,
207 | color: Color.fromARGB(40, 0, 0, 0),
208 | ),
209 | ),
210 | );
211 |
212 | canvas.save();
213 |
214 | canvas.transform(deepEffectMatrix);
215 | drawable.draw(canvas, Rect.zero);
216 | deepDrawable.draw(canvas, Rect.zero);
217 |
218 | canvas.restore();
219 | }
220 |
221 | drawable.draw(canvas, Rect.zero);
222 | }
223 | }
224 |
--------------------------------------------------------------------------------
/lib/shared/widgets/svg_label.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import '../colors.dart';
3 | import 'package:flutter_svg/svg.dart';
4 | import 'package:google_fonts/google_fonts.dart';
5 |
6 | class SvgLabel extends StatelessWidget {
7 | const SvgLabel({Key? key,
8 | required this.assetName,
9 | required this.label,
10 | }) : super(key: key);
11 |
12 | final String assetName;
13 | final String label;
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Column(children: [
18 | SvgPicture.asset(
19 | assetName,
20 | ),
21 | const SizedBox(height: 22.0),
22 | Text(
23 | label.toUpperCase(),
24 | textAlign: TextAlign.center,
25 | style: GoogleFonts.nunito(
26 | color: CustomColors.textGreen,
27 | fontSize: 17,
28 | fontWeight: FontWeight.w700,
29 | height: .9,
30 | ),
31 | ),
32 | ]);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.9.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.1"
25 | clock:
26 | dependency: transitive
27 | description:
28 | name: clock
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.1"
32 | collection:
33 | dependency: transitive
34 | description:
35 | name: collection
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.16.0"
39 | crypto:
40 | dependency: transitive
41 | description:
42 | name: crypto
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "3.0.2"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.0.5"
53 | fake_async:
54 | dependency: transitive
55 | description:
56 | name: fake_async
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.3.1"
60 | ffi:
61 | dependency: transitive
62 | description:
63 | name: ffi
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "2.0.1"
67 | file:
68 | dependency: transitive
69 | description:
70 | name: file
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "6.1.2"
74 | flutter:
75 | dependency: "direct main"
76 | description: flutter
77 | source: sdk
78 | version: "0.0.0"
79 | flutter_lints:
80 | dependency: "direct dev"
81 | description:
82 | name: flutter_lints
83 | url: "https://pub.dartlang.org"
84 | source: hosted
85 | version: "2.0.1"
86 | flutter_svg:
87 | dependency: "direct main"
88 | description:
89 | name: flutter_svg
90 | url: "https://pub.dartlang.org"
91 | source: hosted
92 | version: "1.1.2"
93 | flutter_test:
94 | dependency: "direct dev"
95 | description: flutter
96 | source: sdk
97 | version: "0.0.0"
98 | google_fonts:
99 | dependency: "direct main"
100 | description:
101 | name: google_fonts
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "3.0.1"
105 | http:
106 | dependency: transitive
107 | description:
108 | name: http
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "0.13.5"
112 | http_parser:
113 | dependency: transitive
114 | description:
115 | name: http_parser
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "4.0.1"
119 | lints:
120 | dependency: transitive
121 | description:
122 | name: lints
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "2.0.0"
126 | matcher:
127 | dependency: transitive
128 | description:
129 | name: matcher
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "0.12.12"
133 | material_color_utilities:
134 | dependency: transitive
135 | description:
136 | name: material_color_utilities
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "0.1.5"
140 | meta:
141 | dependency: transitive
142 | description:
143 | name: meta
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "1.8.0"
147 | path:
148 | dependency: transitive
149 | description:
150 | name: path
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "1.8.2"
154 | path_drawing:
155 | dependency: transitive
156 | description:
157 | name: path_drawing
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "1.0.1"
161 | path_parsing:
162 | dependency: transitive
163 | description:
164 | name: path_parsing
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "1.0.1"
168 | path_provider:
169 | dependency: transitive
170 | description:
171 | name: path_provider
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "2.0.11"
175 | path_provider_android:
176 | dependency: transitive
177 | description:
178 | name: path_provider_android
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "2.0.17"
182 | path_provider_ios:
183 | dependency: transitive
184 | description:
185 | name: path_provider_ios
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "2.0.11"
189 | path_provider_linux:
190 | dependency: transitive
191 | description:
192 | name: path_provider_linux
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "2.1.7"
196 | path_provider_macos:
197 | dependency: transitive
198 | description:
199 | name: path_provider_macos
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.0.6"
203 | path_provider_platform_interface:
204 | dependency: transitive
205 | description:
206 | name: path_provider_platform_interface
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "2.0.4"
210 | path_provider_windows:
211 | dependency: transitive
212 | description:
213 | name: path_provider_windows
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "2.1.1"
217 | petitparser:
218 | dependency: transitive
219 | description:
220 | name: petitparser
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "5.0.0"
224 | platform:
225 | dependency: transitive
226 | description:
227 | name: platform
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "3.1.0"
231 | plugin_platform_interface:
232 | dependency: transitive
233 | description:
234 | name: plugin_platform_interface
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "2.1.2"
238 | process:
239 | dependency: transitive
240 | description:
241 | name: process
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "4.2.4"
245 | quiver:
246 | dependency: "direct main"
247 | description:
248 | name: quiver
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "3.1.0"
252 | rxdart:
253 | dependency: "direct main"
254 | description:
255 | name: rxdart
256 | url: "https://pub.dartlang.org"
257 | source: hosted
258 | version: "0.27.5"
259 | sky_engine:
260 | dependency: transitive
261 | description: flutter
262 | source: sdk
263 | version: "0.0.99"
264 | source_span:
265 | dependency: transitive
266 | description:
267 | name: source_span
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.9.0"
271 | stack_trace:
272 | dependency: transitive
273 | description:
274 | name: stack_trace
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.10.0"
278 | stream_channel:
279 | dependency: transitive
280 | description:
281 | name: stream_channel
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "2.1.0"
285 | string_scanner:
286 | dependency: transitive
287 | description:
288 | name: string_scanner
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.1.1"
292 | term_glyph:
293 | dependency: transitive
294 | description:
295 | name: term_glyph
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.2.1"
299 | test_api:
300 | dependency: transitive
301 | description:
302 | name: test_api
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "0.4.12"
306 | typed_data:
307 | dependency: transitive
308 | description:
309 | name: typed_data
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "1.3.1"
313 | vector_math:
314 | dependency: transitive
315 | description:
316 | name: vector_math
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "2.1.2"
320 | win32:
321 | dependency: transitive
322 | description:
323 | name: win32
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.7.0"
327 | xdg_directories:
328 | dependency: transitive
329 | description:
330 | name: xdg_directories
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "0.2.0+1"
334 | xml:
335 | dependency: transitive
336 | description:
337 | name: xml
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "6.1.0"
341 | sdks:
342 | dart: ">=2.17.0 <3.0.0"
343 | flutter: ">=3.0.0"
344 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_parallax_scroll
2 | description: Parallax scroll app based on Stian's UI.
3 |
4 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
5 | version: 1.0.0+1
6 |
7 | environment:
8 | sdk: '>=2.12.0 <3.0.0'
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 |
14 | cupertino_icons: ^1.0.4
15 | rxdart: ^0.27.5
16 | google_fonts: ^3.0.1
17 | flutter_svg: ^1.1.2
18 | quiver: ^3.1.0
19 |
20 | dev_dependencies:
21 | flutter_test:
22 | sdk: flutter
23 |
24 | # The "flutter_lints" package below contains a set of recommended lints to
25 | # encourage good coding practices. The lint set provided by the package is
26 | # activated in the `analysis_options.yaml` file located at the root of your
27 | # package. See that file for information about deactivating specific lint
28 | # rules and activating additional ones.
29 | flutter_lints: ^2.0.1
30 |
31 | flutter:
32 | uses-material-design: true
33 |
34 | assets:
35 | - assets/svg/
36 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flutter_parallax_scroll/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------