chore: Remove 1.8.0 deprecations (#2538)

Removes all the deprecated methods before 1.8.0 release.
This commit is contained in:
Lukas Klingsbo
2023-05-22 19:01:55 +02:00
committed by GitHub
parent 6e1d5466aa
commit 2d45d2be39
139 changed files with 1224 additions and 1084 deletions

View File

@ -16,6 +16,8 @@ class ParticlesInteractiveExample extends FlameGame with PanDetector {
final Tween<double> noise = Tween(begin: -1, end: 1);
final ColorTween colorTween;
final double zoom;
final world = World();
late final CameraComponent cameraComponent;
ParticlesInteractiveExample({
required Color from,
@ -25,9 +27,13 @@ class ParticlesInteractiveExample extends FlameGame with PanDetector {
@override
Future<void> onLoad() async {
camera.followVector2(Vector2.zero());
camera.zoom = zoom;
cameraComponent = CameraComponent.withFixedResolution(
world: world,
width: 400,
height: 600,
);
addAll([cameraComponent, world]);
cameraComponent.viewfinder.zoom = zoom;
}
@override