docs: changed template name

pull/334/head
alestiago 3 years ago
parent e63903c98d
commit 8fd5aeb282

@ -9,7 +9,7 @@ import 'package:pinball_flame/src/canvas/canvas_wrapper.dart';
/// the [Sprite]. /// the [Sprite].
typedef PaintFunction = void Function(Paint)?; typedef PaintFunction = void Function(Paint)?;
/// {@template canvas} /// {@template canvas_component}
/// Allows listening before the rendering of [Sprite]s. /// Allows listening before the rendering of [Sprite]s.
/// ///
/// The existance of this class is to hack around the fact that Flame doesn't /// The existance of this class is to hack around the fact that Flame doesn't
@ -17,7 +17,7 @@ typedef PaintFunction = void Function(Paint)?;
/// [Sprite]. /// [Sprite].
/// {@endtemplate} /// {@endtemplate}
class CanvasComponent extends Component { class CanvasComponent extends Component {
/// {@macro canvas} /// {@macro canvas_component}
CanvasComponent({ CanvasComponent({
PaintFunction? onSpritePainted, PaintFunction? onSpritePainted,
Iterable<Component>? children, Iterable<Component>? children,

Loading…
Cancel
Save