Skip to content

Commit

Permalink
fix: Export ScalingParticle (#2928)
Browse files Browse the repository at this point in the history
The `ScalingParticle` wasn't exported, this exports it and corrects the
dartdocs.
  • Loading branch information
spydon committed Dec 17, 2023
1 parent b526aa1 commit 3730cb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/flame/lib/particles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export 'src/particles/paint_particle.dart';
export 'src/particles/particle.dart';
export 'src/particles/rotating_particle.dart';
export 'src/particles/scaled_particle.dart';
export 'src/particles/scaling_particle.dart';
export 'src/particles/sprite_animation_particle.dart';
export 'src/particles/sprite_particle.dart';
export 'src/particles/translated_particle.dart';
5 changes: 4 additions & 1 deletion packages/flame/lib/src/particles/scaled_particle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ 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';

/// A particle which scales its child over the lifespan to the set scale.
/// 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 {
@override
Particle child;
Expand Down

0 comments on commit 3730cb1

Please sign in to comment.