From 1c75d323a2c21b85d2cc3c92cd0538b6b3fdeb25 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Sat, 7 May 2022 17:11:03 -0500 Subject: [PATCH] word fixes --- lib/game/behaviors/scoring_behavior.dart | 2 +- lib/game/pinball_game.dart | 2 +- packages/pinball_components/lib/src/components/ball/ball.dart | 2 +- packages/pinball_components/lib/src/components/plunger.dart | 2 +- packages/pinball_flame/lib/src/pinball_forge2d_game.dart | 2 +- packages/pinball_ui/lib/src/widgets/animated_ellipsis_text.dart | 2 +- packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart | 2 +- packages/platform_helper/test/src/platform_helper_test.dart | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/game/behaviors/scoring_behavior.dart b/lib/game/behaviors/scoring_behavior.dart index 8b403d1e..4d6d8b42 100644 --- a/lib/game/behaviors/scoring_behavior.dart +++ b/lib/game/behaviors/scoring_behavior.dart @@ -15,7 +15,7 @@ import 'package:pinball_flame/pinball_flame.dart'; /// {@endtemplate} class ScoringBehavior extends Component with HasGameRef, FlameBlocReader { - /// {@macto scoring_behavior} + /// {@macro scoring_behavior} ScoringBehavior({ required Points points, required Vector2 position, diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 026471c7..f1d1b09e 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -143,7 +143,7 @@ class PinballGame extends PinballForge2DGame final rocket = descendants().whereType().first; final bounds = rocket.topLeftPosition & rocket.size; - // NOTE(wolfen): As long as Flame does not have https://github.com/flame-engine/flame/issues/1586 we need to check it at the highest level manually. + // NOTE: As long as Flame does not have https://github.com/flame-engine/flame/issues/1586 we need to check it at the highest level manually. if (bounds.contains(info.eventPosition.game.toOffset())) { descendants().whereType().single.pullFor(2); } else { diff --git a/packages/pinball_components/lib/src/components/ball/ball.dart b/packages/pinball_components/lib/src/components/ball/ball.dart index af7a0361..806e1905 100644 --- a/packages/pinball_components/lib/src/components/ball/ball.dart +++ b/packages/pinball_components/lib/src/components/ball/ball.dart @@ -68,7 +68,7 @@ class Ball extends BodyComponent with Layered, InitialPosition, ZIndex { return world.createBody(bodyDef)..createFixtureFromShape(shape, 1); } - /// Immediatly and completly [stop]s the ball. + /// Immediately and completely [stop]s the ball. /// /// The [Ball] will no longer be affected by any forces, including it's /// weight and those emitted from collisions. diff --git a/packages/pinball_components/lib/src/components/plunger.dart b/packages/pinball_components/lib/src/components/plunger.dart index 44a91b0b..6f38eb37 100644 --- a/packages/pinball_components/lib/src/components/plunger.dart +++ b/packages/pinball_components/lib/src/components/plunger.dart @@ -6,7 +6,7 @@ import 'package:pinball_flame/pinball_flame.dart'; /// {@template plunger} /// [Plunger] serves as a spring, that shoots the ball on the right side of the -/// playfield. +/// play field. /// /// [Plunger] ignores gravity so the player controls its downward [pull]. /// {@endtemplate} diff --git a/packages/pinball_flame/lib/src/pinball_forge2d_game.dart b/packages/pinball_flame/lib/src/pinball_forge2d_game.dart index 0013dd26..b98e78ae 100644 --- a/packages/pinball_flame/lib/src/pinball_forge2d_game.dart +++ b/packages/pinball_flame/lib/src/pinball_forge2d_game.dart @@ -4,7 +4,7 @@ import 'package:flame/game.dart'; import 'package:flame_forge2d/flame_forge2d.dart'; import 'package:flame_forge2d/world_contact_listener.dart'; -// NOTE(wolfen): This should be removed when https://github.com/flame-engine/flame/pull/1597 is solved. +// NOTE: This should be removed when https://github.com/flame-engine/flame/pull/1597 is solved. /// {@template pinball_forge2d_game} /// A [Game] that uses the Forge2D physics engine. /// {@endtemplate} diff --git a/packages/pinball_ui/lib/src/widgets/animated_ellipsis_text.dart b/packages/pinball_ui/lib/src/widgets/animated_ellipsis_text.dart index 9b52d604..1c94cad7 100644 --- a/packages/pinball_ui/lib/src/widgets/animated_ellipsis_text.dart +++ b/packages/pinball_ui/lib/src/widgets/animated_ellipsis_text.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; -/// {@tempalte animated_ellipsis_text} +/// {@template animated_ellipsis_text} /// Every 500 milliseconds, it will add a new `.` at the end of the given /// [text]. Once 3 `.` have been added (e.g. `Loading...`), it will reset to /// zero ellipsis and start over again. diff --git a/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart b/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart index 6d929f53..a0c3e653 100644 --- a/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart +++ b/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:pinball_ui/gen/gen.dart'; import 'package:pinball_ui/pinball_ui.dart'; -/// Enum with all possibile directions of a [PinballDpadButton]. +/// Enum with all possible directions of a [PinballDpadButton]. enum PinballDpadDirection { /// Up up, diff --git a/packages/platform_helper/test/src/platform_helper_test.dart b/packages/platform_helper/test/src/platform_helper_test.dart index 69bec3a8..935bf082 100644 --- a/packages/platform_helper/test/src/platform_helper_test.dart +++ b/packages/platform_helper/test/src/platform_helper_test.dart @@ -27,7 +27,7 @@ void main() { }); test( - 'returns false when defaultTargetPlatform is niether iOS nor android', + 'returns false when defaultTargetPlatform is neither iOS nor android', () async { debugDefaultTargetPlatformOverride = TargetPlatform.macOS; expect(PlatformHelper().isMobile, isFalse);