Adding animation support to parallax (#835)

* Adding animation support to parallax

* Solving workaround

* Fixing image composition add assert

* adding docs, linting and a better example

* lint

* Apply suggestions from code review

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

* Update examples/lib/stories/parallax/sandbox_layer.dart

* Update doc/components.md

* Update examples/lib/stories/parallax/sandbox_layer.dart

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* Update examples/lib/stories/parallax/animation.dart

* formating

* Update .min_coverage

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
This commit is contained in:
Erick
2021-06-07 13:31:19 -03:00
committed by GitHub
parent 31f0437a40
commit 55aea41788
20 changed files with 472 additions and 84 deletions

View File

@ -15,7 +15,7 @@ class AdvancedParallaxGame extends BaseGame {
Future<void> onLoad() async {
final layers = _layersMeta.entries.map(
(e) => loadParallaxLayer(
e.key,
ParallaxImageData(e.key),
velocityMultiplier: Vector2(e.value, 1.0),
),
);