fix: rename to SpriteAnimationWidget

pull/228/head
arturplaczek 3 years ago
parent 2d4225998c
commit 8e9fd39568

@ -3,4 +3,4 @@ library pinball_flame;
export 'src/blueprint.dart';
export 'src/component_controller.dart';
export 'src/keyboard_input_controller.dart';
export 'src/pinball_sprite_animation.dart';
export 'src/sprite_animation.dart';

@ -11,9 +11,9 @@ import 'package:flutter/material.dart' hide Animation;
/// {@endtemplate}
// TODO(arturplaczek): Remove when this PR will be merged.
// https://github.com/flame-engine/flame/pull/1552
class PinballSpriteAnimationWidget extends StatelessWidget {
class SpriteAnimationWidget extends StatelessWidget {
/// {@macro flame.widgets.sprite_animation_widget}
const PinballSpriteAnimationWidget({
const SpriteAnimationWidget({
required this.controller,
this.anchor = Anchor.topLeft,
Key? key,

@ -34,7 +34,7 @@ void main() {
testWidgets('renders correctly', (tester) async {
await tester.pumpWidget(
PinballSpriteAnimationWidget(
SpriteAnimationWidget(
controller: controller,
),
);
@ -42,7 +42,7 @@ void main() {
await tester.pumpAndSettle();
await tester.pumpAndSettle();
expect(find.byType(PinballSpriteAnimationWidget), findsOneWidget);
expect(find.byType(SpriteAnimationWidget), findsOneWidget);
});
test('SpriteAnimationController is updating animations', () {
Loading…
Cancel
Save