├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── example
├── .gitignore
├── .metadata
├── README.md
├── android
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── cleveroad
│ │ │ │ │ └── flutter_plugin_example
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── res
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
├── assets
│ ├── hollow_circle.svg
│ ├── s_0_1.png
│ ├── s_0_2.png
│ ├── s_0_3.png
│ ├── s_0_4.png
│ ├── s_0_5.png
│ ├── s_0_6.png
│ ├── s_0_7.png
│ ├── s_0_8.png
│ ├── s_1_1.png
│ ├── s_1_2.png
│ ├── s_1_3.png
│ ├── s_1_4.png
│ ├── s_1_5.png
│ ├── s_1_6.png
│ ├── s_1_7.png
│ ├── s_1_8.png
│ ├── s_2_1.png
│ ├── s_2_2.png
│ ├── s_2_3.png
│ ├── s_2_4.png
│ ├── s_2_5.png
│ ├── s_2_6.png
│ └── s_2_7.png
├── ios
│ ├── Flutter
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── Podfile
│ ├── Podfile.lock
│ ├── Runner.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ └── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── 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
│ ├── page
│ │ ├── e_commerce_page.dart
│ │ ├── web_analytics_page.dart
│ │ └── web_developer_page.dart
│ └── sliding_tutorial.dart
├── pubspec.yaml
└── web
│ ├── favicon.png
│ ├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
│ ├── index.html
│ └── manifest.json
├── images
├── article.png
├── demo.gif
├── header.jpg
└── logo-footer.png
├── lib
├── flutter_sliding_tutorial.dart
└── src
│ ├── animated_background_color.dart
│ ├── sliding_container.dart
│ ├── sliding_indicator.dart
│ └── sliding_page.dart
└── pubspec.yaml
/.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 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/ServiceDefinitions.json
65 | **/ios/Runner/GeneratedPluginRegistrant.*
66 |
67 | # Exceptions to above rules.
68 | !**/ios/**/default.mode1v3
69 | !**/ios/**/default.mode2v3
70 | !**/ios/**/default.pbxuser
71 | !**/ios/**/default.perspectivev3
72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
73 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: b712a172f9694745f50505c93340883493b505e5
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # 2.0.0+1
2 |
3 | - Removed margin from the last indicator
4 |
5 | # 2.0.0
6 |
7 | - Support for Flutter 3.0.0
8 | - Updated dependencies
9 |
10 | # 1.1.3+3
11 |
12 | - Fixed #21
13 |
14 | # 1.1.3+2
15 |
16 | - Added web support to example
17 |
18 | # 1.1.3+1
19 |
20 | - Added an example of customizing page background colors
21 |
22 | # 1.1.3
23 |
24 | - Fixed Android Embedding
25 |
26 | # 1.1.2
27 |
28 | - Updated example for web
29 |
30 | # 1.1.0+1
31 |
32 | - Updated readme
33 |
34 | # 1.1.0
35 |
36 | - Fixed sliding indicator oversize when using icons
37 |
38 | # 1.0.0-nullsafety
39 |
40 | - Null safety support
41 |
42 | # 0.1.0
43 |
44 | - Removed unnecessary dependency
45 |
46 | # 0.0.1
47 |
48 | - First public release
49 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2021 Cleveroad
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.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## SlidingTutorial
2 | 
3 |
4 | ## Cleveroad introduces Sliding Tutorial Library for Flutter
5 |
6 | Hey guys, hope you haven’t started developing a tutorial for your Flutter app yet, as we have already completed a part of your job. Don’t worry, we act from good motives only. Our aim is to help you create a sliding tutorial in a fast and simple manner. So we’ve done some work and voila!. A simple Flutter Sliding Tutorial library is at your service.
7 |
[Open tutorial in the browser](https://flutter-sliding-tutorial.github.io)
8 |
9 | 
10 | ###### Also you can watch the animation of the Sliding Tutorial for Android on YouTube in HD quality.
11 |
12 | The invention is going to ease the problem of structural design but not to limit a stretch of your imagination at the same time. We took care of the suitability aspect. So, your app is not going to look alien among other Flutter elements.
13 |
14 | Applied parallax effects will make your product presentation look like Google apps tutorial.
15 |
16 | All you need to do is:
17 |
1. Create background designs for each screen of your tutorial (assistance with mobile design)
18 |
2. Create icons for each screen of your tutorial
19 |
3. Follow the instructions below
20 |
21 | [](https://www.cleveroad.com/?utm_source=github&utm_medium=label&utm_campaign=contacts)
22 |
23 |
24 | ## Full Documentation
25 |
26 | ## Setup
27 | In the `pubspec.yaml` of your flutter project, add the following dependency:
28 | ```yaml
29 | dependencies:
30 | ...
31 | flutter_sliding_tutorial: "^2.0.0+1"
32 | ```
33 |
34 | In your library add the following import:
35 |
36 | ```dart
37 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
38 | ```
39 |
40 | [Quick Start]
41 |
42 | ## Changelog
43 | See [changelog history].
44 |
45 | ## Support
46 | If you have any questions regarding the use of this tutorial, please contact us for support at info@cleveroad.com (email subject: «Sliding Tutorial: Flutter. Support request.»)
47 |
or
48 |
Use our contacts:
49 |
Cleveroad.com
50 |
Facebook account
51 |
Twitter account
52 |
Google+ account
53 |
54 | ## License
55 |
56 |
57 | The MIT License (MIT)
58 |
59 | Copyright (c) 2021 Cleveroad
60 |
61 | Permission is hereby granted, free of charge, to any person obtaining a copy
62 | of this software and associated documentation files (the "Software"), to deal
63 | in the Software without restriction, including without limitation the rights
64 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
65 | copies of the Software, and to permit persons to whom the Software is
66 | furnished to do so, subject to the following conditions:
67 |
68 | The above copyright notice and this permission notice shall be included in all
69 | copies or substantial portions of the Software.
70 |
71 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
74 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
77 | SOFTWARE.
78 |
79 | [changelog history]: /CHANGELOG.md
80 |
81 | [Quick Start]: https://github.com/Cleveroad/flutter_sliding_tutorial/wiki/Quick-Start
82 |
83 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
84 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
85 |
86 | For help getting started with Flutter, view our
87 | [online documentation](https://flutter.dev/docs), which offers tutorials,
88 | samples, guidance on mobile development, and a full API reference.
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # Docs: https://dart.dev/guides/language/analysis-options
2 | # All available rules: https://dart-lang.github.io/linter/lints/
3 |
4 | linter:
5 | rules:
6 | # Const rules.
7 | - prefer_const_constructors # If a const constructor is available, it is preferable to use it.
8 | - prefer_const_constructors_in_immutables # PREFER declaring const constructors on @immutable classes. If a class is immutable, it is usually a good idea to make its constructor a const constructor.
9 | - prefer_const_declarations # Const declarations are more hot-reload friendly and allow to use const constructors if an instantiation references this declaration.
10 | - prefer_const_literals_to_create_immutables # PREFER using const for instantiating list, map and set literals used as parameters in immutable class instantiations.
11 | - unnecessary_const # AVOID repeating const keyword in a const context.
12 |
13 | # Style rules.
14 | - always_declare_return_types # DO declare method return types. When declaring a method or function always specify a return type. Declaring return types for functions helps improve your codebase by allowing the analyzer to more adequately check your code for errors that could occur during runtime.
15 | - always_put_control_body_on_new_line # DO separate the control structure expression from its statement.
16 | - always_put_required_named_parameters_first # DO specify @required on named parameter before other named parameters.
17 | - always_require_non_null_named_parameters # DO specify @required on named parameters without a default value on which an assert(param != null) is done.
18 | # - always_specify_types # DO specify type annotations. # Conflicts with omit_local_variable_types, which is more useful.
19 | - annotate_overrides # DO annotate overridden methods and fields.
20 | - avoid_annotating_with_dynamic # AVOID annotating with dynamic when not required.
21 | # - avoid_as # AVOID using as. # Makes some logic constructions too complicated.
22 | - avoid_bool_literals_in_conditional_expressions # AVOID bool literals in conditional expressions.
23 | # - avoid_catches_without_on_clauses # AVOID catches without on clauses. # Makes errors handling less reliable and more bigger.
24 | - avoid_catching_errors # DON'T explicitly catch Error or types that implement it.
25 | - avoid_classes_with_only_static_members # AVOID defining a class that contains only static members.
26 | - avoid_double_and_int_checks # AVOID to check if type is double or int.
27 | - avoid_equals_and_hash_code_on_mutable_classes # AVOID overloading operator == and hashCode on classes not marked @immutable.
28 | - avoid_escaping_inner_quotes # Avoid escaping inner quotes by converting surrounding quotes.
29 | - avoid_field_initializers_in_const_classes # AVOID field initializers in const classes.
30 | # - avoid_function_literals_in_foreach_calls # AVOID using forEach with a function literal.
31 | - avoid_implementing_value_types # DON'T implement classes that override ==.
32 | - avoid_init_to_null # DON'T explicitly initialize variables to null.
33 | - avoid_js_rounded_ints # AVOID integer literals that cannot be represented exactly when compiled to JavaScript.
34 | - avoid_null_checks_in_equality_operators # DON'T check for null in custom == operators.
35 | - avoid_positional_boolean_parameters # AVOID positional boolean parameters.
36 | - avoid_private_typedef_functions # AVOID private typedef functions used only once. Prefer inline function syntax.
37 | - avoid_redundant_argument_values # DON'T declare arguments with values that match the defaults for the corresponding parameter.
38 | - avoid_renaming_method_parameters # DON'T rename parameters of overridden methods.
39 | - avoid_return_types_on_setters # AVOID return types on setters.
40 | - avoid_returning_null # AVOID returning null from members whose return type is bool, double, int, or num.
41 | - avoid_returning_null_for_void # AVOID returning null for void.
42 | - avoid_returning_this # AVOID returning this from methods just to enable a fluent interface.
43 | - avoid_setters_without_getters # DON'T define a setter without a corresponding getter.
44 | - avoid_shadowing_type_parameters # AVOID shadowing type parameters.
45 | - avoid_single_cascade_in_expression_statements # AVOID single cascade in expression statements.
46 | # - avoid_types_on_closure_parameters # AVOID annotating types for function expression parameters.
47 | - avoid_unnecessary_containers # Avoid wrapping widgets in unnecessary containers.
48 | - avoid_unused_constructor_parameters # AVOID defining unused parameters in constructors. # Gives warning in widget constructor.
49 | - avoid_void_async # DO mark async functions to return Future.
50 | - await_only_futures # AVOID using await on anything other than a future.
51 | - camel_case_extensions # DO name extensions using UpperCamelCase.
52 | - camel_case_types # DO name types using UpperCamelCase.
53 | - cascade_invocations # DO Use the cascading style when succesively invoking methods on the same reference.
54 | - constant_identifier_names # PREFER using lowerCamelCase for constant names.
55 | - curly_braces_in_flow_control_structures # DO use curly braces for all flow control structures.
56 | - directives_ordering # DO place “dart:” imports before other imports.
57 | # - do_not_use_environment # DO NOT use fromEnvironment or hasEnvironment factory constructors. # Doesn't work.
58 | - empty_catches # AVOID empty catch blocks.
59 | - empty_constructor_bodies # DO use ; instead of {} for empty constructor bodies.
60 | # - exhaustive_cases # DO define case clauses for all constants in enum-like classes. # Doesn't work.
61 | - file_names # DO name source files using lowercase_with_underscores.
62 | - flutter_style_todos # DO Use Flutter TODO format.
63 | - implementation_imports # DON'T import implementation files from another package.
64 | - join_return_with_assignment # DO join return statement with assignment when possible.
65 | - leading_newlines_in_multiline_strings # Multiline strings are easier to read when they start with a newline (a newline starting a multiline string is ignored).
66 | - library_names # DO name libraries using lowercase_with_underscores.
67 | - library_prefixes # DO use lowercase_with_underscores when specifying a library prefix.
68 | # - lines_longer_than_80_chars # AVOID lines longer than 80 characters # Sometimes hard to follow this.
69 | # - no_default_cases # DO define default behavior outside switch statements. # Experimental rule.
70 | - no_runtimeType_toString # Calling toString on a runtime type is a non-trivial operation that can negatively impact performance. It's better to avoid it.
71 | - non_constant_identifier_names # DO name non-constant identifiers using lowerCamelCase.
72 | - null_closures # DO NOT pass null as an argument where a closure is expected.
73 | - omit_local_variable_types # CONSIDER omitting type annotations for local variables.
74 | - one_member_abstracts # AVOID defining a one-member abstract class when a simple function will do.
75 | - only_throw_errors # DO throw only instances of classes that extend dart.core.Error or dart.core.Exception.
76 | - overridden_fields # DON'T override fields.
77 | - package_api_docs # DO provide doc comments for all public APIs.
78 | - package_prefixed_library_names # DO prefix library names with the package name and a dot-separated path.
79 | - parameter_assignments # DON'T assign new values to parameters of methods or functions.
80 | - prefer_adjacent_string_concatenation # DO use adjacent strings to concatenate string literals.
81 | - prefer_asserts_in_initializer_lists # DO put asserts in initializer list for constructors with only asserts in their body.
82 | - prefer_asserts_with_message # When assertions fail it's not always simple to understand why. Adding a message to the assert helps the developer to understand why the AssertionError occurs.
83 | # - prefer_bool_in_asserts # DO use a boolean for assert conditions. # Old rule.
84 | - prefer_collection_literals # DO use collection literals when possible.
85 | - prefer_conditional_assignment # PREFER using ??= over testing for null.
86 | - prefer_constructors_over_static_methods # PREFER defining constructors instead of static methods to create instances.
87 | - prefer_contains # DON'T use indexOf to see if a collection contains an element.
88 | # - prefer_double_quotes # DO use double quotes where they wouldn't require additional escapes. # Conflicts with better rule prefer_single_quotes.
89 | - prefer_equal_for_default_values # DO Use = to separate a named parameter from its default value.
90 | # - prefer_expression_function_bodies # CONSIDER using => for short members whose body is a single return statement. # Some functions are not convenient to use with this.
91 | - prefer_final_fields # DO prefer declaring private fields as final if they are not reassigned later in the class.
92 | - prefer_final_in_for_each # DO prefer declaring for-each loop variables as final if they are not reassigned later in the code.
93 | - prefer_final_locals # DO prefer declaring variables as final if they are not reassigned later in the code.
94 | - prefer_for_elements_to_map_fromIterable # When building maps from iterables, it is preferable to use for elements.
95 | - prefer_foreach # DO use forEach if you are only going to apply a function or a method to all the elements of an iterable.
96 | - prefer_function_declarations_over_variables # DO use a function declaration to bind a function to a name.
97 | - prefer_generic_function_type_aliases # PREFER generic function type aliases.
98 | - prefer_if_elements_to_conditional_expressions # When building collections, it is preferable to use if elements rather than conditionals.
99 | - prefer_if_null_operators # Prefer using if null operators instead of null checks in conditional expressions.
100 | - prefer_initializing_formals # DO use initializing formals when possible.
101 | - prefer_inlined_adds # Declare elements in list literals inline, rather than using add and addAll methods where possible.
102 | - prefer_int_literals # DO use int literals rather than the corresponding double literal.
103 | - prefer_interpolation_to_compose_strings # PREFER using interpolation to compose strings and values.
104 | - prefer_is_empty # DON'T use length to see if a collection is empty.
105 | - prefer_is_not_empty # PREFER x.isNotEmpty to !x.isEmpty for Iterable and Map instances.
106 | - prefer_is_not_operator # When checking if an object is not of a specified type, it is preferable to use the 'is!' operator.
107 | - prefer_iterable_whereType # PREFER iterable.whereType() over iterable.where((e) => e is T).
108 | - prefer_mixin # Dart 2.1 introduced a new syntax for mixins that provides a safe way for a mixin to invoke inherited members using super. The new style of mixins should always be used for types that are to be mixed in. As a result, this lint will flag any uses of a class in a with clause.
109 | - prefer_null_aware_operators # Prefer using null aware operators instead of null checks in conditional expressions.
110 | - prefer_single_quotes # DO use single quotes where they wouldn't require additional escapes.
111 | - prefer_spread_collections # Use spread collections when possible.
112 | - prefer_typing_uninitialized_variables # PREFER specifying a type annotation for uninitialized variables and fields.
113 | - provide_deprecation_message # DO specify a deprecation message (with migration instructions and/or a removal schedule) in the Deprecation constructor.
114 | # - public_member_api_docs # DO document all public members. # todo: uncomment later for writing docs
115 | - recursive_getters # DON'T create recursive getters.
116 | # - sized_box_for_whitespace # Use SizedBox to add whitespace to a layout. A Container is a heavier Widget than a SizedBox, and as bonus, SizedBox has a const constructor. # Doesn't work.
117 | - slash_for_doc_comments # PREFER using /// for doc comments. Although Dart supports two syntaxes of doc comments (/// and /**), we prefer using /// for doc comments.
118 | - sort_child_properties_last # Sort child properties last in widget instance creations.
119 | - sort_constructors_first # DO sort constructor declarations before other members.
120 | - sort_unnamed_constructors_first # DO sort unnamed constructor declarations first, before named ones.
121 | # - super_goes_last # DO place the super call last in a constructor initialization list. # Old rule.
122 | - type_annotate_public_apis # PREFER type annotating public APIs.
123 | - type_init_formals # DON'T type annotate initializing formals.
124 | - unawaited_futures # DO await functions that return a Future inside of an async function body.
125 | - unnecessary_await_in_return # Avoid returning an awaited expression when the expression type is assignable to the function's return type.
126 | - unnecessary_brace_in_string_interps # AVOID using braces in interpolation when not needed.
127 | # - unnecessary_final # DON'T use final for local variables. # Conflicts with better rule prefer_final_locals.
128 | - unnecessary_getters_setters # AVOID wrapping fields in getters and setters just to be "safe".
129 | - unnecessary_lambdas # DON'T create a lambda when a tear-off will do.
130 | - unnecessary_new # AVOID new keyword to create instances.
131 | - unnecessary_null_aware_assignments # AVOID null in null-aware assignment.
132 | - unnecessary_null_in_if_null_operators # AVOID using null as an operand in if null operators.
133 | - unnecessary_overrides # DON'T override a method to do a super method invocation with same parameters.
134 | - unnecessary_parenthesis # AVOID using parenthesis when not needed.
135 | - unnecessary_raw_strings # Use raw string only when needed.
136 | - unnecessary_string_escapes # Remove unnecessary backslashes in strings.
137 | - unnecessary_string_interpolations # Don't use string interpolation if there's only a string expression in it.
138 | - unnecessary_this # DON'T use this when not needed to avoid shadowing.
139 | - use_full_hex_values_for_flutter_colors # Prefer an 8-digit hexadecimal integer(0xFFFFFFFF) to instantiate Color. Colors have four 8-bit channels, which adds up to 32 bits, so Colors are described using a 32 bit integer.
140 | - use_function_type_syntax_for_parameters # Use generic function type syntax for parameters.
141 | # - use_is_even_rather_than_modulo # PREFER the use of intValue.isOdd/isEven to check for evenness. # Doesn't work.
142 | - use_raw_strings # A raw string can be used to avoid escaping only backslashes and dollars.
143 | - use_rethrow_when_possible # DO use rethrow to rethrow a caught exception.
144 | - use_setters_to_change_properties # DO use a setter for operations that conceptually change a property.
145 | - use_string_buffers # DO use string buffers to compose strings.
146 | - use_to_and_as_if_applicable # PREFER naming a method to___() if it copies the object's state to a new object.
147 | - void_checks # DO NOT assign to void.
148 | - use_super_parameters # Use super-initializer parameters where possible.
149 |
150 | # Error rules.
151 | # - always_use_package_imports # DO avoid relative imports for files in lib/. # Doesn't work.
152 | - avoid_empty_else # AVOID empty else statements.
153 | - avoid_print # DO avoid print calls in production code.
154 | - avoid_relative_lib_imports # DO avoid relative imports for files in lib/.
155 | - avoid_returning_null_for_future # AVOID returning null for Future.
156 | - avoid_slow_async_io # AVOID using the following asynchronous file I/O methods because they are much slower than their synchronous counterparts.
157 | - avoid_types_as_parameter_names # AVOID using a parameter name that is the same as an existing type.
158 | - avoid_web_libraries_in_flutter # Avoid using web libraries, dart:html, dart:js and dart:js_util in Flutter packages that are not web plugins. These libraries are not supported outside a web context; functionality that depends on them will fail at runtime in Flutter mobile, and their use is generally discouraged in Flutter web.
159 | - cancel_subscriptions # DO invoke cancel on instances of dart.async.StreamSubscription.
160 | - close_sinks # DO invoke close on instances of dart.core.Sink.
161 | # - comment_references # DO reference only in scope identifiers in doc comments.
162 | - control_flow_in_finally # AVOID control flow leaving finally blocks.
163 | # - diagnostic_describe_all_properties # DO reference all public properties in debug method implementations. # We don't use this
164 | - empty_statements # AVOID empty statements.
165 | - hash_and_equals # DO override hashCode if overriding == and prefer overriding == if overriding hashCode.
166 | - invariant_booleans # DON'T test for conditions that can be inferred at compile time or test the same condition twice.
167 | - iterable_contains_unrelated_type # DON'T invoke contains on Iterable with an instance of different type than the parameter type.
168 | - list_remove_unrelated_type # DON'T invoke remove on List with an instance of different type than the parameter type.
169 | - literal_only_boolean_expressions # DON'T test for conditions composed only by literals, since the value can be inferred at compile time.
170 | - no_adjacent_strings_in_list # DON'T use adjacent strings in list.
171 | - no_duplicate_case_values # DON'T use more than one case with same value.
172 | - no_logic_in_create_state # DON'T put any logic in createState().
173 | # - prefer_relative_imports # Prefer relative imports for files in lib/. # Bad rule
174 | - prefer_void_to_null # DO NOT use the type Null where void would work.
175 | - test_types_in_equals # DO test type arguments in operator ==(Object other).
176 | - throw_in_finally # AVOID throwing exceptions in finally blocks.
177 | - unnecessary_statements # AVOID using unnecessary statements.
178 | - unrelated_type_equality_checks # DON'T Compare references of unrelated types for equality.
179 | - unsafe_html # https://dart-lang.github.io/linter/lints/unsafe_html.html
180 | - use_key_in_widget_constructors # DO use key in widget constructors.
181 | - valid_regexps # DO use valid regular expression syntax when creating regular expression instances.
182 |
183 | # Pub rules.
184 | - package_names # DO use lowercase_with_underscores for package names.
185 |
186 | analyzer:
187 | # TODO(implement) later
188 | # strong-mode:
189 | # Stricter type checks.
190 | # implicit-casts: false
191 | # implicit-dynamic: false
192 | errors:
193 | missing_required_param: error
194 | exclude:
195 | # Build
196 | - 'build/**'
--------------------------------------------------------------------------------
/example/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | *.lock
7 | .DS_Store
8 | .atom/
9 | .buildlog/
10 | .history
11 | .svn/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | .dart_tool/
27 | .flutter-plugins
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Generated.xcconfig
62 | **/ios/Flutter/app.flx
63 | **/ios/Flutter/app.zip
64 | **/ios/Flutter/flutter_assets/
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 | /ios/Flutter/flutter_export_environment.sh
75 | /ios/Flutter/Flutter.podspec
76 | /ios/Flutter/.last_build_id
77 |
--------------------------------------------------------------------------------
/example/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 20e59316b8b8474554b38493b8ca888794b0234a
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | ## SlidingTutorial
2 |
3 | Demonstrates how to use the flutter_sliding_tutorial plugin. [Quick Start] or [Example]
4 |
5 | [Quick Start]: https://github.com/Cleveroad/flutter_sliding_tutorial/wiki/Quick-Start
6 | [Example]: https://github.com/Cleveroad/flutter_sliding_tutorial/tree/master/example
7 | [Web application]: https://flutter-sliding-tutorial.github.io
--------------------------------------------------------------------------------
/example/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 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.cleveroad.flutter_sliding_tutorial_example"
42 | minSdkVersion 16
43 | targetSdkVersion 31
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'androidx.test:runner:1.1.1'
66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
67 | }
68 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
21 |
22 |
23 |
24 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/cleveroad/flutter_plugin_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.cleveroad.flutter_sliding_tutorial_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity;
4 |
5 |
6 | class MainActivity : FlutterActivity() {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.21'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.2.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 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 | android.enableR8=true
6 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Dec 10 11:49:21 EET 2021
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/example/assets/hollow_circle.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/example/assets/s_0_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_1.png
--------------------------------------------------------------------------------
/example/assets/s_0_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_2.png
--------------------------------------------------------------------------------
/example/assets/s_0_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_3.png
--------------------------------------------------------------------------------
/example/assets/s_0_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_4.png
--------------------------------------------------------------------------------
/example/assets/s_0_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_5.png
--------------------------------------------------------------------------------
/example/assets/s_0_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_6.png
--------------------------------------------------------------------------------
/example/assets/s_0_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_7.png
--------------------------------------------------------------------------------
/example/assets/s_0_8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_0_8.png
--------------------------------------------------------------------------------
/example/assets/s_1_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_1.png
--------------------------------------------------------------------------------
/example/assets/s_1_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_2.png
--------------------------------------------------------------------------------
/example/assets/s_1_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_3.png
--------------------------------------------------------------------------------
/example/assets/s_1_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_4.png
--------------------------------------------------------------------------------
/example/assets/s_1_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_5.png
--------------------------------------------------------------------------------
/example/assets/s_1_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_6.png
--------------------------------------------------------------------------------
/example/assets/s_1_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_7.png
--------------------------------------------------------------------------------
/example/assets/s_1_8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_1_8.png
--------------------------------------------------------------------------------
/example/assets/s_2_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_1.png
--------------------------------------------------------------------------------
/example/assets/s_2_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_2.png
--------------------------------------------------------------------------------
/example/assets/s_2_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_3.png
--------------------------------------------------------------------------------
/example/assets/s_2_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_4.png
--------------------------------------------------------------------------------
/example/assets/s_2_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_5.png
--------------------------------------------------------------------------------
/example/assets/s_2_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_6.png
--------------------------------------------------------------------------------
/example/assets/s_2_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/assets/s_2_7.png
--------------------------------------------------------------------------------
/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '11.0'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def parse_KV_file(file, separator='=')
13 | file_abs_path = File.expand_path(file)
14 | if !File.exists? file_abs_path
15 | return [];
16 | end
17 | pods_ary = []
18 | skip_line_start_symbols = ["#", "/"]
19 | File.foreach(file_abs_path) { |line|
20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
21 | plugin = line.split(pattern=separator)
22 | if plugin.length == 2
23 | podname = plugin[0].strip()
24 | path = plugin[1].strip()
25 | podpath = File.expand_path("#{path}", file_abs_path)
26 | pods_ary.push({:name => podname, :path => podpath});
27 | else
28 | puts "Invalid plugin specification: #{line}"
29 | end
30 | }
31 | return pods_ary
32 | end
33 |
34 | target 'Runner' do
35 | use_frameworks!
36 |
37 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
38 | # referring to absolute paths on developers' machines.
39 | system('rm -rf .symlinks')
40 | system('mkdir -p .symlinks/plugins')
41 |
42 | # Flutter Pods
43 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
44 | if generated_xcode_build_settings.empty?
45 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
46 | end
47 | generated_xcode_build_settings.map { |p|
48 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
49 | symlink = File.join('.symlinks', 'flutter')
50 | File.symlink(File.dirname(p[:path]), symlink)
51 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
52 | end
53 | }
54 |
55 | # Plugin Pods
56 | plugin_pods = parse_KV_file('../.flutter-plugins')
57 | plugin_pods.map { |p|
58 | symlink = File.join('.symlinks', 'plugins', p[:name])
59 | File.symlink(p[:path], symlink)
60 | pod p[:name], :path => File.join(symlink, 'ios')
61 | }
62 | end
63 |
64 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
65 | install! 'cocoapods', :disable_input_output_paths => true
66 |
67 | post_install do |installer|
68 | installer.pods_project.targets.each do |target|
69 | target.build_configurations.each do |config|
70 | config.build_settings['ENABLE_BITCODE'] = 'NO'
71 | end
72 | end
73 | end
74 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODFILE CHECKSUM: 476e2fed613d5ca562fc538af8faba3e0a79ca08
2 |
3 | COCOAPODS: 1.11.3
4 |
--------------------------------------------------------------------------------
/example/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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 8FE52F76A66A19D89FD28E10 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5864272949429EE7A119D211 /* Pods_Runner.framework */; };
14 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXCopyFilesBuildPhase section */
21 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
22 | isa = PBXCopyFilesBuildPhase;
23 | buildActionMask = 2147483647;
24 | dstPath = "";
25 | dstSubfolderSpec = 10;
26 | files = (
27 | );
28 | name = "Embed Frameworks";
29 | runOnlyForDeploymentPostprocessing = 0;
30 | };
31 | /* End PBXCopyFilesBuildPhase section */
32 |
33 | /* Begin PBXFileReference section */
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 | 347BA31C2D35AE4D1B3327CB /* 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 = ""; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 5864272949429EE7A119D211 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
40 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
41 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | 9E3DFD2DFBB3C3C8408B6CF6 /* 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 | BB4F39712802D8BC35997B0B /* 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 = ""; };
51 | /* End PBXFileReference section */
52 |
53 | /* Begin PBXFrameworksBuildPhase section */
54 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
55 | isa = PBXFrameworksBuildPhase;
56 | buildActionMask = 2147483647;
57 | files = (
58 | 8FE52F76A66A19D89FD28E10 /* Pods_Runner.framework in Frameworks */,
59 | );
60 | runOnlyForDeploymentPostprocessing = 0;
61 | };
62 | /* End PBXFrameworksBuildPhase section */
63 |
64 | /* Begin PBXGroup section */
65 | 09268BC92A3F662F7EB400F1 /* Frameworks */ = {
66 | isa = PBXGroup;
67 | children = (
68 | 5864272949429EE7A119D211 /* Pods_Runner.framework */,
69 | );
70 | name = Frameworks;
71 | sourceTree = "";
72 | };
73 | 8A0145626F8C7273EDDCAF33 /* Pods */ = {
74 | isa = PBXGroup;
75 | children = (
76 | 9E3DFD2DFBB3C3C8408B6CF6 /* Pods-Runner.debug.xcconfig */,
77 | BB4F39712802D8BC35997B0B /* Pods-Runner.release.xcconfig */,
78 | 347BA31C2D35AE4D1B3327CB /* Pods-Runner.profile.xcconfig */,
79 | );
80 | path = Pods;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 8A0145626F8C7273EDDCAF33 /* Pods */,
101 | 09268BC92A3F662F7EB400F1 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 97C146F11CF9000F007C117D /* Supporting Files */,
121 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
122 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
123 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
124 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
125 | );
126 | path = Runner;
127 | sourceTree = "";
128 | };
129 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
130 | isa = PBXGroup;
131 | children = (
132 | );
133 | name = "Supporting Files";
134 | sourceTree = "";
135 | };
136 | /* End PBXGroup section */
137 |
138 | /* Begin PBXNativeTarget section */
139 | 97C146ED1CF9000F007C117D /* Runner */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
142 | buildPhases = (
143 | 1780C709DC0EE8E5A8117F2D /* [CP] Check Pods Manifest.lock */,
144 | 9740EEB61CF901F6004384FC /* Run Script */,
145 | 97C146EA1CF9000F007C117D /* Sources */,
146 | 97C146EB1CF9000F007C117D /* Frameworks */,
147 | 97C146EC1CF9000F007C117D /* Resources */,
148 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
150 | );
151 | buildRules = (
152 | );
153 | dependencies = (
154 | );
155 | name = Runner;
156 | productName = Runner;
157 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
158 | productType = "com.apple.product-type.application";
159 | };
160 | /* End PBXNativeTarget section */
161 |
162 | /* Begin PBXProject section */
163 | 97C146E61CF9000F007C117D /* Project object */ = {
164 | isa = PBXProject;
165 | attributes = {
166 | LastUpgradeCheck = 1300;
167 | ORGANIZATIONNAME = "The Chromium Authors";
168 | TargetAttributes = {
169 | 97C146ED1CF9000F007C117D = {
170 | CreatedOnToolsVersion = 7.3.1;
171 | DevelopmentTeam = NWLDMP2326;
172 | LastSwiftMigration = 0910;
173 | ProvisioningStyle = Manual;
174 | };
175 | };
176 | };
177 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
178 | compatibilityVersion = "Xcode 3.2";
179 | developmentRegion = en;
180 | hasScannedForEncodings = 0;
181 | knownRegions = (
182 | en,
183 | Base,
184 | );
185 | mainGroup = 97C146E51CF9000F007C117D;
186 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
187 | projectDirPath = "";
188 | projectRoot = "";
189 | targets = (
190 | 97C146ED1CF9000F007C117D /* Runner */,
191 | );
192 | };
193 | /* End PBXProject section */
194 |
195 | /* Begin PBXResourcesBuildPhase section */
196 | 97C146EC1CF9000F007C117D /* Resources */ = {
197 | isa = PBXResourcesBuildPhase;
198 | buildActionMask = 2147483647;
199 | files = (
200 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
201 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
202 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
203 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
204 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
205 | );
206 | runOnlyForDeploymentPostprocessing = 0;
207 | };
208 | /* End PBXResourcesBuildPhase section */
209 |
210 | /* Begin PBXShellScriptBuildPhase section */
211 | 1780C709DC0EE8E5A8117F2D /* [CP] Check Pods Manifest.lock */ = {
212 | isa = PBXShellScriptBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | );
216 | inputFileListPaths = (
217 | );
218 | inputPaths = (
219 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
220 | "${PODS_ROOT}/Manifest.lock",
221 | );
222 | name = "[CP] Check Pods Manifest.lock";
223 | outputFileListPaths = (
224 | );
225 | outputPaths = (
226 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
227 | );
228 | runOnlyForDeploymentPostprocessing = 0;
229 | shellPath = /bin/sh;
230 | 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";
231 | showEnvVarsInLog = 0;
232 | };
233 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
234 | isa = PBXShellScriptBuildPhase;
235 | buildActionMask = 2147483647;
236 | files = (
237 | );
238 | inputPaths = (
239 | );
240 | name = "Thin Binary";
241 | outputPaths = (
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | shellPath = /bin/sh;
245 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
246 | };
247 | 9740EEB61CF901F6004384FC /* Run Script */ = {
248 | isa = PBXShellScriptBuildPhase;
249 | buildActionMask = 2147483647;
250 | files = (
251 | );
252 | inputPaths = (
253 | );
254 | name = "Run Script";
255 | outputPaths = (
256 | );
257 | runOnlyForDeploymentPostprocessing = 0;
258 | shellPath = /bin/sh;
259 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
260 | };
261 | /* End PBXShellScriptBuildPhase section */
262 |
263 | /* Begin PBXSourcesBuildPhase section */
264 | 97C146EA1CF9000F007C117D /* Sources */ = {
265 | isa = PBXSourcesBuildPhase;
266 | buildActionMask = 2147483647;
267 | files = (
268 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
269 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
270 | );
271 | runOnlyForDeploymentPostprocessing = 0;
272 | };
273 | /* End PBXSourcesBuildPhase section */
274 |
275 | /* Begin PBXVariantGroup section */
276 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
277 | isa = PBXVariantGroup;
278 | children = (
279 | 97C146FB1CF9000F007C117D /* Base */,
280 | );
281 | name = Main.storyboard;
282 | sourceTree = "";
283 | };
284 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
285 | isa = PBXVariantGroup;
286 | children = (
287 | 97C147001CF9000F007C117D /* Base */,
288 | );
289 | name = LaunchScreen.storyboard;
290 | sourceTree = "";
291 | };
292 | /* End PBXVariantGroup section */
293 |
294 | /* Begin XCBuildConfiguration section */
295 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
296 | isa = XCBuildConfiguration;
297 | buildSettings = {
298 | ALWAYS_SEARCH_USER_PATHS = NO;
299 | CLANG_ANALYZER_NONNULL = YES;
300 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
301 | CLANG_CXX_LIBRARY = "libc++";
302 | CLANG_ENABLE_MODULES = YES;
303 | CLANG_ENABLE_OBJC_ARC = YES;
304 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
305 | CLANG_WARN_BOOL_CONVERSION = YES;
306 | CLANG_WARN_COMMA = YES;
307 | CLANG_WARN_CONSTANT_CONVERSION = YES;
308 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
309 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
310 | CLANG_WARN_EMPTY_BODY = YES;
311 | CLANG_WARN_ENUM_CONVERSION = YES;
312 | CLANG_WARN_INFINITE_RECURSION = YES;
313 | CLANG_WARN_INT_CONVERSION = YES;
314 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
315 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
316 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
317 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
318 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
319 | CLANG_WARN_STRICT_PROTOTYPES = YES;
320 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
321 | CLANG_WARN_UNREACHABLE_CODE = YES;
322 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
323 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
324 | COPY_PHASE_STRIP = NO;
325 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
326 | ENABLE_NS_ASSERTIONS = NO;
327 | ENABLE_STRICT_OBJC_MSGSEND = YES;
328 | GCC_C_LANGUAGE_STANDARD = gnu99;
329 | GCC_NO_COMMON_BLOCKS = YES;
330 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
331 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
332 | GCC_WARN_UNDECLARED_SELECTOR = YES;
333 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
334 | GCC_WARN_UNUSED_FUNCTION = YES;
335 | GCC_WARN_UNUSED_VARIABLE = YES;
336 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
337 | MTL_ENABLE_DEBUG_INFO = NO;
338 | SDKROOT = iphoneos;
339 | TARGETED_DEVICE_FAMILY = "1,2";
340 | VALIDATE_PRODUCT = YES;
341 | };
342 | name = Profile;
343 | };
344 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
345 | isa = XCBuildConfiguration;
346 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
347 | buildSettings = {
348 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
349 | CODE_SIGN_IDENTITY = "iPhone Distribution";
350 | CODE_SIGN_STYLE = Manual;
351 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
352 | DEVELOPMENT_TEAM = NWLDMP2326;
353 | ENABLE_BITCODE = NO;
354 | FRAMEWORK_SEARCH_PATHS = (
355 | "$(inherited)",
356 | "$(PROJECT_DIR)/Flutter",
357 | );
358 | INFOPLIST_FILE = Runner/Info.plist;
359 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
360 | LIBRARY_SEARCH_PATHS = (
361 | "$(inherited)",
362 | "$(PROJECT_DIR)/Flutter",
363 | );
364 | PRODUCT_BUNDLE_IDENTIFIER = salmon.deltasport;
365 | PRODUCT_NAME = "$(TARGET_NAME)";
366 | PROVISIONING_PROFILE_SPECIFIER = DeltaSportAdHoc;
367 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
368 | SWIFT_VERSION = 4.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 = 11.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 = 11.0;
470 | MTL_ENABLE_DEBUG_INFO = NO;
471 | SDKROOT = iphoneos;
472 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
473 | TARGETED_DEVICE_FAMILY = "1,2";
474 | VALIDATE_PRODUCT = YES;
475 | };
476 | name = Release;
477 | };
478 | 97C147061CF9000F007C117D /* Debug */ = {
479 | isa = XCBuildConfiguration;
480 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
481 | buildSettings = {
482 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
483 | CLANG_ENABLE_MODULES = YES;
484 | CODE_SIGN_IDENTITY = "iPhone Developer";
485 | CODE_SIGN_STYLE = Manual;
486 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
487 | DEVELOPMENT_TEAM = NWLDMP2326;
488 | ENABLE_BITCODE = NO;
489 | FRAMEWORK_SEARCH_PATHS = (
490 | "$(inherited)",
491 | "$(PROJECT_DIR)/Flutter",
492 | );
493 | INFOPLIST_FILE = Runner/Info.plist;
494 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
495 | LIBRARY_SEARCH_PATHS = (
496 | "$(inherited)",
497 | "$(PROJECT_DIR)/Flutter",
498 | );
499 | PRODUCT_BUNDLE_IDENTIFIER = salmon.deltasport;
500 | PRODUCT_NAME = "$(TARGET_NAME)";
501 | PROVISIONING_PROFILE_SPECIFIER = DeltaSportDev;
502 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
503 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
504 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
505 | SWIFT_VERSION = 4.0;
506 | VERSIONING_SYSTEM = "apple-generic";
507 | };
508 | name = Debug;
509 | };
510 | 97C147071CF9000F007C117D /* Release */ = {
511 | isa = XCBuildConfiguration;
512 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
513 | buildSettings = {
514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
515 | CLANG_ENABLE_MODULES = YES;
516 | CODE_SIGN_IDENTITY = "iPhone Distribution";
517 | CODE_SIGN_STYLE = Manual;
518 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
519 | DEVELOPMENT_TEAM = NWLDMP2326;
520 | ENABLE_BITCODE = NO;
521 | FRAMEWORK_SEARCH_PATHS = (
522 | "$(inherited)",
523 | "$(PROJECT_DIR)/Flutter",
524 | );
525 | INFOPLIST_FILE = Runner/Info.plist;
526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
527 | LIBRARY_SEARCH_PATHS = (
528 | "$(inherited)",
529 | "$(PROJECT_DIR)/Flutter",
530 | );
531 | PRODUCT_BUNDLE_IDENTIFIER = salmon.deltasport;
532 | PRODUCT_NAME = "$(TARGET_NAME)";
533 | PROVISIONING_PROFILE_SPECIFIER = DeltaSportAppStore;
534 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
535 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
536 | SWIFT_VERSION = 4.0;
537 | VERSIONING_SYSTEM = "apple-generic";
538 | };
539 | name = Release;
540 | };
541 | /* End XCBuildConfiguration section */
542 |
543 | /* Begin XCConfigurationList section */
544 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
545 | isa = XCConfigurationList;
546 | buildConfigurations = (
547 | 97C147031CF9000F007C117D /* Debug */,
548 | 97C147041CF9000F007C117D /* Release */,
549 | 249021D3217E4FDB00AE95B9 /* Profile */,
550 | );
551 | defaultConfigurationIsVisible = 0;
552 | defaultConfigurationName = Release;
553 | };
554 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
555 | isa = XCConfigurationList;
556 | buildConfigurations = (
557 | 97C147061CF9000F007C117D /* Debug */,
558 | 97C147071CF9000F007C117D /* Release */,
559 | 249021D4217E4FDB00AE95B9 /* Profile */,
560 | );
561 | defaultConfigurationIsVisible = 0;
562 | defaultConfigurationName = Release;
563 | };
564 | /* End XCConfigurationList section */
565 | };
566 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
567 | }
568 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/example/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.
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_sliding_tutorial_example
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:example_flutter_sliding_tutorial/sliding_tutorial.dart';
2 | import 'package:flutter/gestures.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
5 | import 'package:flutter_svg/flutter_svg.dart';
6 |
7 | void main() => runApp(const MyApp());
8 |
9 | class MyApp extends StatelessWidget {
10 | const MyApp({super.key});
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return MaterialApp(
15 | scrollBehavior: AppScrollBehavior(),
16 | home: const ExamplePage(),
17 | );
18 | }
19 | }
20 |
21 | class AppScrollBehavior extends MaterialScrollBehavior {
22 | @override
23 | Set get dragDevices => {
24 | PointerDeviceKind.touch,
25 | PointerDeviceKind.mouse,
26 | };
27 | }
28 |
29 | class ExamplePage extends StatefulWidget {
30 | const ExamplePage({
31 | super.key,
32 | });
33 |
34 | @override
35 | _ExamplePageState createState() => _ExamplePageState();
36 | }
37 |
38 | class _ExamplePageState extends State {
39 | final ValueNotifier notifier = ValueNotifier(0);
40 | final _pageCtrl = PageController();
41 | int pageCount = 6;
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | return Scaffold(
46 | body: Center(
47 | child: Stack(
48 | children: [
49 | /// [StatefulWidget] with [PageView] and [AnimatedBackgroundColor].
50 | SlidingTutorial(
51 | controller: _pageCtrl,
52 | pageCount: pageCount,
53 | notifier: notifier,
54 | ),
55 |
56 | /// Separator.
57 | Align(
58 | alignment: const Alignment(0, 0.85),
59 | child: Container(
60 | width: double.infinity,
61 | height: 0.5,
62 | color: Colors.white,
63 | ),
64 | ),
65 | Align(
66 | alignment: Alignment.centerLeft,
67 | child: IconButton(
68 | icon: const Icon(
69 | Icons.arrow_back_ios_rounded,
70 | color: Colors.white,
71 | ),
72 | onPressed: () {
73 | _pageCtrl.previousPage(
74 | duration: const Duration(milliseconds: 600),
75 | curve: Curves.linear,
76 | );
77 | },
78 | ),
79 | ),
80 | Align(
81 | alignment: Alignment.centerRight,
82 | child: IconButton(
83 | icon: const Icon(
84 | Icons.arrow_back_ios_rounded,
85 | color: Colors.white,
86 | textDirection: TextDirection.rtl,
87 | ),
88 | onPressed: () {
89 | _pageCtrl.nextPage(
90 | duration: const Duration(milliseconds: 600),
91 | curve: Curves.linear,
92 | );
93 | },
94 | ),
95 | ),
96 |
97 | /// [SlidingIndicator] for [PageView] in [SlidingTutorial].
98 | Align(
99 | alignment: const Alignment(0, 0.94),
100 | child: SlidingIndicator(
101 | indicatorCount: pageCount,
102 | notifier: notifier,
103 | activeIndicator: const Icon(
104 | Icons.check_circle,
105 | color: Color(0xFF29B6F6),
106 | ),
107 | inActiveIndicator: SvgPicture.asset(
108 | 'assets/hollow_circle.svg',
109 | ),
110 | inactiveIndicatorSize: 14,
111 | activeIndicatorSize: 14,
112 | ),
113 | )
114 | ],
115 | )),
116 | );
117 | }
118 | }
119 |
--------------------------------------------------------------------------------
/example/lib/page/e_commerce_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
3 |
4 | class ECommercePage extends StatelessWidget {
5 | const ECommercePage(
6 | this.page,
7 | this.notifier, {
8 | super.key,
9 | });
10 |
11 | final int page;
12 | final ValueNotifier notifier;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return SlidingPage(
17 | notifier: notifier,
18 | page: page,
19 | child: Stack(
20 | clipBehavior: Clip.none,
21 | children: [
22 | Center(
23 | child: FractionallySizedBox(
24 | widthFactor: 1,
25 | heightFactor: 0.4,
26 | child: SlidingContainer(
27 | offset: 300,
28 | child: Image.asset(
29 | 'assets/s_2_3.png',
30 | )),
31 | ),
32 | ),
33 | Center(
34 | child: FractionallySizedBox(
35 | widthFactor: 0.55,
36 | heightFactor: 0.18,
37 | child: SlidingContainer(
38 | child: Image.asset(
39 | 'assets/s_2_1.png',
40 | )),
41 | ),
42 | ),
43 | Opacity(
44 | opacity: 0.5,
45 | child: Align(
46 | alignment: const Alignment(0.3, -0.35),
47 | child: FractionallySizedBox(
48 | widthFactor: 0.75,
49 | heightFactor: 0.20,
50 | child: SlidingContainer(
51 | offset: 170,
52 | child: Image.asset(
53 | 'assets/s_2_2.png',
54 | )),
55 | ),
56 | ),
57 | ),
58 | Align(
59 | alignment: const Alignment(-0.2, -0.27),
60 | child: FractionallySizedBox(
61 | widthFactor: 0.16,
62 | heightFactor: 0.07,
63 | child: SlidingContainer(
64 | offset: 50,
65 | child: Image.asset(
66 | 'assets/s_2_4.png',
67 | )),
68 | ),
69 | ),
70 | Align(
71 | alignment: const Alignment(0.3, -0.35),
72 | child: FractionallySizedBox(
73 | widthFactor: 0.14,
74 | heightFactor: 0.07,
75 | child: SlidingContainer(
76 | offset: 150,
77 | child: Image.asset(
78 | 'assets/s_2_6.png',
79 | )),
80 | ),
81 | ),
82 | Align(
83 | alignment: const Alignment(0.8, -0.3),
84 | child: FractionallySizedBox(
85 | widthFactor: 0.15,
86 | heightFactor: 0.10,
87 | child: SlidingContainer(
88 | offset: 50,
89 | child: Image.asset(
90 | 'assets/s_2_5.png',
91 | )),
92 | ),
93 | ),
94 | Align(
95 | alignment: const Alignment(0.7, 0.1),
96 | child: FractionallySizedBox(
97 | widthFactor: 0.25,
98 | heightFactor: 0.15,
99 | child: SlidingContainer(
100 | offset: 200,
101 | child: Image.asset(
102 | 'assets/s_2_7.png',
103 | )),
104 | ),
105 | ),
106 | const Align(
107 | alignment: Alignment(0, 0.78),
108 | child: SlidingContainer(
109 | offset: 250,
110 | child: Text(
111 | 'e-Commerce',
112 | textAlign: TextAlign.center,
113 | style: TextStyle(
114 | fontSize: 30,
115 | color: Colors.white,
116 | ),
117 | ),
118 | ),
119 | ),
120 | ],
121 | ),
122 | );
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/example/lib/page/web_analytics_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
3 |
4 | class WebAnalyticsPage extends StatelessWidget {
5 | const WebAnalyticsPage(
6 | this.page,
7 | this.notifier, {
8 | super.key,
9 | });
10 |
11 | final int page;
12 | final ValueNotifier notifier;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return SlidingPage(
17 | page: page,
18 | notifier: notifier,
19 | child: Stack(
20 | clipBehavior: Clip.none,
21 | children: [
22 | Center(
23 | child: FractionallySizedBox(
24 | widthFactor: 0.5,
25 | heightFactor: 0.35,
26 | child: SlidingContainer(
27 | offset: 300,
28 | child: Image.asset(
29 | 'assets/s_0_1.png',
30 | )),
31 | ),
32 | ),
33 | Align(
34 | alignment: const Alignment(-0.7, 0.30),
35 | child: FractionallySizedBox(
36 | widthFactor: 0.3,
37 | heightFactor: 0.25,
38 | child: SlidingContainer(
39 | child: Image.asset(
40 | 'assets/s_0_3.png',
41 | )),
42 | ),
43 | ),
44 | Align(
45 | alignment: const Alignment(-0.7, -0.08),
46 | child: FractionallySizedBox(
47 | widthFactor: 0.20,
48 | heightFactor: 0.15,
49 | child: SlidingContainer(
50 | child: Image.asset(
51 | 'assets/s_0_4.png',
52 | )),
53 | ),
54 | ),
55 | Align(
56 | alignment: const Alignment(-0.92, -0.45),
57 | child: FractionallySizedBox(
58 | widthFactor: 0.06,
59 | heightFactor: 0.06,
60 | child: SlidingContainer(
61 | offset: 150,
62 | child: Image.asset(
63 | 'assets/s_0_6.png',
64 | )),
65 | ),
66 | ),
67 | Align(
68 | alignment: const Alignment(-0.72, -0.46),
69 | child: FractionallySizedBox(
70 | widthFactor: 0.09,
71 | heightFactor: 0.08,
72 | child: SlidingContainer(
73 | offset: 50,
74 | child: Image.asset(
75 | 'assets/s_0_7.png',
76 | )),
77 | ),
78 | ),
79 | Align(
80 | alignment: const Alignment(0, -0.50),
81 | child: FractionallySizedBox(
82 | widthFactor: 0.45,
83 | heightFactor: 0.15,
84 | child: SlidingContainer(
85 | offset: 140,
86 | child: Image.asset(
87 | 'assets/s_0_5.png',
88 | )),
89 | ),
90 | ),
91 | Align(
92 | alignment: const Alignment(0.7, -0.40),
93 | child: FractionallySizedBox(
94 | widthFactor: 0.12,
95 | heightFactor: 0.10,
96 | child: SlidingContainer(
97 | offset: 140,
98 | child: Image.asset(
99 | 'assets/s_0_2.png',
100 | )),
101 | ),
102 | ),
103 | Align(
104 | alignment: const Alignment(0.65, -0.2),
105 | child: FractionallySizedBox(
106 | widthFactor: 0.08,
107 | heightFactor: 0.06,
108 | child: SlidingContainer(
109 | offset: 140,
110 | child: Image.asset(
111 | 'assets/s_0_8.png',
112 | )),
113 | ),
114 | ),
115 | Align(
116 | alignment: const Alignment(0, 0.78),
117 | child: SlidingContainer(
118 | offset: 250,
119 | child: Text(
120 | 'Web \nAnalytics'.toUpperCase(),
121 | textAlign: TextAlign.center,
122 | style: const TextStyle(
123 | fontSize: 30,
124 | color: Colors.white,
125 | ),
126 | ),
127 | ),
128 | ),
129 | ],
130 | ),
131 | );
132 | }
133 | }
134 |
--------------------------------------------------------------------------------
/example/lib/page/web_developer_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
3 |
4 | class WebDevelopersPage extends StatelessWidget {
5 | const WebDevelopersPage(
6 | this.page,
7 | this.notifier, {
8 | super.key,
9 | });
10 |
11 | final int page;
12 | final ValueNotifier notifier;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return SlidingPage(
17 | page: page,
18 | notifier: notifier,
19 | child: Stack(
20 | clipBehavior: Clip.none,
21 | children: [
22 | Center(
23 | child: FractionallySizedBox(
24 | widthFactor: 0.45,
25 | heightFactor: 0.25,
26 | child: SlidingContainer(
27 | offset: 300,
28 | child: Image.asset(
29 | 'assets/s_1_1.png',
30 | )),
31 | ),
32 | ),
33 | Align(
34 | alignment: const Alignment(0, -0.5),
35 | child: FractionallySizedBox(
36 | widthFactor: 0.25,
37 | heightFactor: 0.10,
38 | child: SlidingContainer(
39 | offset: 170,
40 | child: Image.asset(
41 | 'assets/s_1_8.png',
42 | )),
43 | ),
44 | ),
45 | Align(
46 | alignment: const Alignment(0, -0.30),
47 | child: FractionallySizedBox(
48 | widthFactor: 0.15,
49 | heightFactor: 0.1,
50 | child: SlidingContainer(
51 | offset: 50,
52 | child: Image.asset(
53 | 'assets/s_1_5.png',
54 | )),
55 | ),
56 | ),
57 | Align(
58 | alignment: const Alignment(0.05, -0.45),
59 | child: FractionallySizedBox(
60 | widthFactor: 0.15,
61 | heightFactor: 0.8,
62 | child: SlidingContainer(
63 | offset: 150,
64 | child: Image.asset(
65 | 'assets/s_1_3.png',
66 | )),
67 | ),
68 | ),
69 | Align(
70 | alignment: const Alignment(0, 0.15),
71 | child: FractionallySizedBox(
72 | widthFactor: 0.13,
73 | heightFactor: 0.1,
74 | child: SlidingContainer(
75 | offset: 50,
76 | child: Image.asset(
77 | 'assets/s_1_4.png',
78 | )),
79 | ),
80 | ),
81 | Align(
82 | alignment: const Alignment(-0.5, 0),
83 | child: FractionallySizedBox(
84 | widthFactor: 0.20,
85 | heightFactor: 0.07,
86 | child: SlidingContainer(
87 | child: Image.asset(
88 | 'assets/s_1_6.png',
89 | )),
90 | ),
91 | ),
92 | Align(
93 | alignment: const Alignment(-0.5, -0.25),
94 | child: FractionallySizedBox(
95 | widthFactor: 0.17,
96 | heightFactor: 0.08,
97 | child: SlidingContainer(
98 | offset: 240,
99 | child: Image.asset(
100 | 'assets/s_1_7.png',
101 | )),
102 | ),
103 | ),
104 | Align(
105 | alignment: const Alignment(0.65, -0.35),
106 | child: FractionallySizedBox(
107 | widthFactor: 0.19,
108 | heightFactor: 0.06,
109 | child: SlidingContainer(
110 | offset: 850,
111 | child: Image.asset(
112 | 'assets/s_1_2.png',
113 | )),
114 | ),
115 | ),
116 | Align(
117 | alignment: const Alignment(0, 0.78),
118 | child: SlidingContainer(
119 | offset: 250,
120 | child: Text(
121 | 'Web \nDeveloper'.toUpperCase(),
122 | textAlign: TextAlign.center,
123 | style: const TextStyle(
124 | fontSize: 30,
125 | color: Colors.white,
126 | ),
127 | ),
128 | ),
129 | ),
130 | ],
131 | ),
132 | );
133 | }
134 | }
135 |
--------------------------------------------------------------------------------
/example/lib/sliding_tutorial.dart:
--------------------------------------------------------------------------------
1 | import 'package:example_flutter_sliding_tutorial/page/e_commerce_page.dart';
2 | import 'package:example_flutter_sliding_tutorial/page/web_analytics_page.dart';
3 | import 'package:example_flutter_sliding_tutorial/page/web_developer_page.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter/widgets.dart';
6 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
7 |
8 | class SlidingTutorial extends StatefulWidget {
9 | const SlidingTutorial({
10 | required this.controller,
11 | required this.notifier,
12 | required this.pageCount,
13 | super.key,
14 | });
15 |
16 | final ValueNotifier notifier;
17 | final int pageCount;
18 | final PageController controller;
19 |
20 | @override
21 | State createState() => _SlidingTutorial();
22 | }
23 |
24 | class _SlidingTutorial extends State {
25 | late PageController _pageController;
26 |
27 | @override
28 | void initState() {
29 | _pageController = widget.controller;
30 |
31 | /// Listen to [PageView] position updates.
32 | _pageController.addListener(_onScroll);
33 | super.initState();
34 | }
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return AnimatedBackgroundColor(
39 | pageController: _pageController,
40 | pageCount: widget.pageCount,
41 |
42 | /// You can use your own color list for page background
43 | //ignore: avoid_redundant_argument_values
44 | colors: const [
45 | Color(0xFFAAAAAA),
46 | Color(0xFF669900),
47 | Color(0xFFCC0000),
48 | Color(0xFF0099CC),
49 | Color(0xFFAA66CC),
50 | Color(0xFFFF8800),
51 | ],
52 | child: Stack(
53 | children: [
54 | PageView(
55 | controller: _pageController,
56 | children: List.generate(
57 | widget.pageCount,
58 | _getPageByIndex,
59 | ),
60 | ),
61 | ],
62 | ),
63 | );
64 | }
65 |
66 | /// Create different [SlidingPage] for indexes.
67 | Widget _getPageByIndex(int index) {
68 | switch (index % 3) {
69 | case 0:
70 | return WebAnalyticsPage(index, widget.notifier);
71 | case 1:
72 | return WebDevelopersPage(index, widget.notifier);
73 | case 2:
74 | return ECommercePage(index, widget.notifier);
75 | default:
76 | throw ArgumentError('Unknown position: $index');
77 | }
78 | }
79 |
80 | /// Notify [SlidingPage] about current page changes.
81 | void _onScroll() {
82 | widget.notifier.value = _pageController.page ?? 0;
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example_flutter_sliding_tutorial
2 | description: example flutter_sliding_tutorial.
3 |
4 | environment:
5 | sdk: ">=2.17.0 <3.0.0"
6 | flutter: ">=3.0.0 <4.0.0"
7 |
8 | dependencies:
9 | flutter:
10 | sdk: flutter
11 |
12 | cupertino_icons: ^1.0.4
13 | flutter_svg: ^1.0.3
14 | flutter_sliding_tutorial:
15 | path: ../
16 |
17 | dev_dependencies:
18 | flutter_test:
19 | sdk: flutter
20 |
21 | flutter:
22 |
23 | uses-material-design: true
24 |
25 | # To add assets to your application, add an assets section, like this:
26 | assets:
27 | - assets/
--------------------------------------------------------------------------------
/example/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/web/favicon.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/example/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/example/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | example
33 |
34 |
35 |
36 |
39 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/example/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "short_name": "example",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/images/article.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/images/article.png
--------------------------------------------------------------------------------
/images/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/images/demo.gif
--------------------------------------------------------------------------------
/images/header.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/images/header.jpg
--------------------------------------------------------------------------------
/images/logo-footer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cleveroad/flutter_sliding_tutorial/31bd2c7bbb9dfb675d25cea2d90cef70b9594fb8/images/logo-footer.png
--------------------------------------------------------------------------------
/lib/flutter_sliding_tutorial.dart:
--------------------------------------------------------------------------------
1 | library flutter_sliding_tutorial;
2 |
3 | export 'package:flutter_sliding_tutorial/src/animated_background_color.dart';
4 | export 'package:flutter_sliding_tutorial/src/sliding_container.dart';
5 | export 'package:flutter_sliding_tutorial/src/sliding_indicator.dart';
6 | export 'package:flutter_sliding_tutorial/src/sliding_page.dart';
7 |
--------------------------------------------------------------------------------
/lib/src/animated_background_color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
3 |
4 | /// [AnimatedBackgroundColor] background widget. Animates color
5 | /// change when scrolling to new [SlidingPage] in [PageView].
6 | ///
7 | /// [pageController] controller of [PageView]. Used for animated color transition.
8 | ///
9 | /// [pageCount] total count of [SlidingPage] in [PageView].
10 | ///
11 | /// [colors] array of colors for transition. [colors] length can be different from
12 | /// [pageCount], then color change will cycle through available colors.
13 | ///
14 | /// [child] widget displayed over [AnimatedBackgroundColor].
15 | class AnimatedBackgroundColor extends StatelessWidget {
16 | const AnimatedBackgroundColor({
17 | required this.child,
18 | required this.pageController,
19 | required this.pageCount,
20 | this.colors = const [
21 | Color(0xFFAAAAAA),
22 | Color(0xFF669900),
23 | Color(0xFFCC0000),
24 | Color(0xFF0099CC),
25 | Color(0xFFAA66CC),
26 | Color(0xFFFF8800),
27 | ],
28 | super.key,
29 | });
30 |
31 | final PageController pageController;
32 | final int pageCount;
33 | final List colors;
34 | final Widget child;
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | final background = TweenSequence(
39 | List>.generate(pageCount, (i) {
40 | return TweenSequenceItem(
41 | weight: 1,
42 | tween: ColorTween(
43 | begin: colors[i % colors.length],
44 | end: colors[(i + 1) % colors.length],
45 | ),
46 | );
47 | }));
48 |
49 | return AnimatedBuilder(
50 | animation: pageController,
51 | builder: (context, child) {
52 | final color =
53 | pageController.hasClients ? pageController.page! / pageCount : .0;
54 | return DecoratedBox(
55 | decoration: BoxDecoration(
56 | color: background.evaluate(AlwaysStoppedAnimation(color)),
57 | ),
58 | child: child,
59 | );
60 | },
61 | child: child,
62 | );
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/lib/src/sliding_container.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:flutter_sliding_tutorial/src/sliding_page.dart';
3 |
4 | /// [SlidingContainer] widget that moves [child] based on [offset] and [SlidingPage]
5 | /// scroll position and page.
6 | ///
7 | /// [child] widget to be move separately from [PageView] on swipe for parallax effect.
8 | ///
9 | /// [offset] value for tweaking parallax movement of [child].
10 | /// Different values can be used to find best solution.
11 | class SlidingContainer extends StatefulWidget {
12 | const SlidingContainer({
13 | required this.child,
14 | this.offset = 100,
15 | super.key,
16 | });
17 |
18 | final Widget child;
19 | final double offset;
20 |
21 | @override
22 | State createState() => _SlidingContainer();
23 | }
24 |
25 | class _SlidingContainer extends State {
26 | int? _page;
27 | late ValueNotifier _notifier;
28 |
29 | @override
30 | void didChangeDependencies() {
31 | _page = SlidingPage.of(context)?.page;
32 | _notifier = SlidingPage.of(context)!.notifier;
33 | super.didChangeDependencies();
34 | }
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return AnimatedBuilder(
39 | animation: _notifier,
40 | builder: (context, anim) {
41 | var offsetX =
42 | (_notifier.value - _notifier.value.toInt()) * widget.offset;
43 | offsetX *= -1;
44 | final isCurrentPage = _notifier.value.toInt() == _page;
45 | return Transform.translate(
46 | offset: Offset(
47 | (_page == 0)
48 | ? offsetX
49 | : (offsetX == 0)
50 | ? 0
51 | : isCurrentPage && _page != 0
52 | ? offsetX
53 | : offsetX + widget.offset,
54 | 0),
55 | child: widget.child);
56 | },
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/src/sliding_indicator.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math' as math;
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter/widgets.dart';
5 | import 'package:flutter_sliding_tutorial/flutter_sliding_tutorial.dart';
6 |
7 | /// [SlidingIndicator] - widget for indication of current page position in
8 | /// tutorial with rotation transition of [activeIndicator] between [inActiveIndicator].
9 | ///
10 | /// [notifier] [ValueNotifier] with double value for animated transition of [activeIndicator].
11 | ///
12 | /// [activeIndicator] widget that indicates current [SlidingPage] in [PageView].
13 | ///
14 | /// [inActiveIndicator] widget that shows all [SlidingPage] in [PageView].
15 | ///
16 | /// [indicatorCount] total count of [inActiveIndicator] widgets in [SlidingIndicator].
17 | ///
18 | /// [sizeIndicator] size of [activeIndicator] and [inActiveIndicator] widgets.
19 | ///
20 | /// [margin] space between [inActiveIndicator] widgets.
21 | class SlidingIndicator extends StatelessWidget {
22 | const SlidingIndicator({
23 | required this.notifier,
24 | required this.activeIndicator,
25 | required this.inActiveIndicator,
26 | required this.indicatorCount,
27 | this.activeIndicatorSize = 10,
28 | this.inactiveIndicatorSize = 10,
29 | this.margin = 8,
30 | super.key,
31 | });
32 |
33 | final ValueNotifier notifier;
34 | final Widget activeIndicator;
35 | final Widget inActiveIndicator;
36 | final double activeIndicatorSize;
37 | final double inactiveIndicatorSize;
38 | final int indicatorCount;
39 | final double margin;
40 |
41 | @override
42 | Widget build(BuildContext context) {
43 | return Row(
44 | mainAxisAlignment: MainAxisAlignment.center,
45 | children: [
46 | Stack(
47 | alignment: Alignment.centerLeft,
48 | children: [
49 | Row(
50 | mainAxisAlignment: MainAxisAlignment.center,
51 | children: List.generate(
52 | indicatorCount,
53 | (i) {
54 | return Container(
55 | margin: EdgeInsets.only(
56 | left: i == 0 ? 0 : margin,
57 | right: i == indicatorCount - 1 ? 0 : margin,
58 | ),
59 | child: Container(
60 | width: inactiveIndicatorSize,
61 | height: inactiveIndicatorSize,
62 | child: FittedBox(child: inActiveIndicator),
63 | ),
64 | );
65 | },
66 | ),
67 | ),
68 | Transform.translate(
69 | offset: Offset(
70 | inactiveIndicatorSize / 2 - activeIndicatorSize / 2,
71 | 0,
72 | ),
73 | child: AnimatedBuilder(
74 | animation: notifier,
75 | builder: (context, anim) {
76 | final correctScroll = notifier.value;
77 | return Transform.translate(
78 | offset: Offset(
79 | (margin * 2 + inactiveIndicatorSize) * correctScroll,
80 | 0,
81 | ),
82 | child: Transform.rotate(
83 | angle: 2 * math.pi * correctScroll,
84 | child: Container(
85 | width: activeIndicatorSize,
86 | height: activeIndicatorSize,
87 | child: FittedBox(child: activeIndicator),
88 | ),
89 | ),
90 | );
91 | },
92 | ),
93 | ),
94 | ],
95 | )
96 | ],
97 | );
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/lib/src/sliding_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 |
3 | /// [SlidingPage] widget for notifying it's child widget about
4 | /// about [page] change or [notifier] change.
5 | ///
6 | /// [page] index of this [SlidingPage] in [PageView].
7 | ///
8 | /// [notifier] value notifier from [ScrollController] of parent [PageView].
9 | class SlidingPage extends InheritedWidget {
10 | const SlidingPage({
11 | required super.child,
12 | required this.page,
13 | required this.notifier,
14 | super.key,
15 | });
16 |
17 | final int page;
18 | final ValueNotifier notifier;
19 |
20 | @override
21 | bool updateShouldNotify(SlidingPage oldWidget) =>
22 | oldWidget.page != page || oldWidget.notifier != notifier;
23 |
24 | static SlidingPage? of(BuildContext context) =>
25 | context.dependOnInheritedWidgetOfExactType();
26 | }
27 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_sliding_tutorial
2 | description: Applied parallax effects will make your product presentation look like Google apps tutorial.
3 | version: 2.0.0+1
4 | homepage: https://github.com/Cleveroad/flutter_sliding_tutorial
5 |
6 | environment:
7 | sdk: ">=2.17.0 <3.0.0"
8 | flutter: ">=3.0.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 |
14 | dev_dependencies:
15 | flutter_test:
16 | sdk: flutter
17 |
18 | flutter_lints: ^2.0.1
19 |
20 | flutter:
21 | uses-material-design: true
22 |
--------------------------------------------------------------------------------