From e63903c98df966d515b0d3d42eb4e29ac3a167b6 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 4 May 2022 22:31:07 +0100 Subject: [PATCH] docs: fixed typos --- .../pinball_flame/lib/src/canvas/canvas_component.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/pinball_flame/lib/src/canvas/canvas_component.dart b/packages/pinball_flame/lib/src/canvas/canvas_component.dart index 54eca8bf..581c4281 100644 --- a/packages/pinball_flame/lib/src/canvas/canvas_component.dart +++ b/packages/pinball_flame/lib/src/canvas/canvas_component.dart @@ -6,14 +6,15 @@ import 'package:pinball_flame/src/canvas/canvas_wrapper.dart'; /// Called right before [Canvas.drawImageRect] is called. /// /// This is useful since [Sprite.render] uses [Canvas.drawImageRect] to draw -/// the sprite. +/// the [Sprite]. typedef PaintFunction = void Function(Paint)?; /// {@template canvas} /// Allows listening before the rendering of [Sprite]s. /// -/// The existance of this is class is to hack around the fact that Flame doesn't -/// privide a way to modify the default [Paint] before drawing a [Sprite]. +/// The existance of this class is to hack around the fact that Flame doesn't +/// provide a global way to modify the default [Paint] before rendering a +/// [Sprite]. /// {@endtemplate} class CanvasComponent extends Component { /// {@macro canvas}