Skip to content

Commit

Permalink
fix: Replace CurvedParticle inheritance with Particle in ScaledPartic…
Browse files Browse the repository at this point in the history
…le (#3221)

# feat: Replace CurvedParticle inheritance with Paricle in
ScaledParticle

This PR removed the CurvedParticle inheritance from the ScaledParticle,
as the scale did not change over time which also ensures backwardwards
compatibility as the Curve essentially did nothing.

## Checklist
- [x] I have followed the [Contributor Guide] when preparing my PR.
- [x] I have updated/added tests for ALL new/updated/fixed
functionality.
- [x] I have updated/added relevant documentation in `docs` and added
dartdoc comments with `///`.
- [x] I have updated/added relevant examples in `examples` or `docs`.

## Breaking Change?
- [ ] Yes, this PR is a breaking change.
- [x] No, this PR is not a breaking change.
  • Loading branch information
duck-dev-go committed Jul 11, 2024
1 parent 0fbc73c commit 8cd054d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/flame/lib/src/particles/scaled_particle.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import 'dart:ui';

import 'package:flame/src/components/mixins/single_child_particle.dart';
import 'package:flame/src/particles/curved_particle.dart';
import 'package:flame/src/particles/particle.dart';
import 'package:flame/src/particles/scaling_particle.dart';

/// Statically scales the given child [Particle] by given [scale].
///
/// If you're looking to scale the child over time, consider [ScalingParticle].
class ScaledParticle extends CurvedParticle with SingleChildParticle {
class ScaledParticle extends Particle with SingleChildParticle {
@override
Particle child;

Expand Down

0 comments on commit 8cd054d

Please sign in to comment.