fixes and words

pull/399/head
Tom Arra 3 years ago
parent 1c75d323a2
commit 2f93e289b6

@ -18,6 +18,7 @@
"goldens", "goldens",
"leaderboard", "leaderboard",
"loadables", "loadables",
"mixins",
"mocktail", "mocktail",
"multiball", "multiball",
"multiballs", "multiballs",
@ -27,8 +28,10 @@
"rects", "rects",
"rrect", "rrect",
"serializable", "serializable",
"sparky's",
"theming", "theming",
"unawaited", "unawaited",
"unfocus",
"unlayered", "unlayered",
"vsync" "vsync"
], ],

@ -77,7 +77,7 @@ class InitialsInputDisplay extends Component with HasGameRef {
); );
} }
/// Returns the current inputed initials /// Returns the current entered initials
String get initials => children String get initials => children
.whereType<InitialsLetterPrompt>() .whereType<InitialsLetterPrompt>()
.map((prompt) => prompt.char) .map((prompt) => prompt.char)

@ -12,7 +12,7 @@ class BumpingBehavior extends ContactBehavior {
/// Determines how strong the bump is. /// Determines how strong the bump is.
final double _strength; final double _strength;
/// This is used to recoginze the current state of a contact manifold in world /// This is used to recognize the current state of a contact manifold in world
/// coordinates. /// coordinates.
@visibleForTesting @visibleForTesting
final WorldManifold worldManifold = WorldManifold(); final WorldManifold worldManifold = WorldManifold();

@ -40,7 +40,7 @@ class _FlipperAnchor extends JointAnchor {
} }
/// {@template flipper_anchor_revolute_joint_def} /// {@template flipper_anchor_revolute_joint_def}
/// Hinges one end of [Flipper] to a [_FlipperAnchor] to achieve a potivoting /// Hinges one end of [Flipper] to a [_FlipperAnchor] to achieve a pivoting
/// motion. /// motion.
/// {@endtemplate} /// {@endtemplate}
class _FlipperAnchorRevoluteJointDef extends RevoluteJointDef { class _FlipperAnchorRevoluteJointDef extends RevoluteJointDef {

@ -32,7 +32,7 @@ void main() {
}); });
flameTester.testGameWidget( flameTester.testGameWidget(
'the bump is greater when the strengh is greater', 'the bump is greater when the strength is greater',
setUp: (game, tester) async { setUp: (game, tester) async {
final component1 = _TestBodyComponent(); final component1 = _TestBodyComponent();
final behavior1 = BumpingBehavior(strength: 1) final behavior1 = BumpingBehavior(strength: 1)

@ -67,7 +67,7 @@ void main() {
}, },
); );
flameTester.test('adds a FlapperSpiningBehavior to FlapperEntrance', flameTester.test('adds a FlapperSpinningBehavior to FlapperEntrance',
(game) async { (game) async {
final flapper = Flapper(); final flapper = Flapper();
await game.ensureAdd(flapper); await game.ensureAdd(flapper);

@ -329,7 +329,7 @@ void main() {
); );
flameTester.test( flameTester.test(
'connected body collison enabled', 'connected body collision enabled',
(game) async { (game) async {
await game.ensureAdd(plunger); await game.ensureAdd(plunger);
await game.ensureAdd(anchor); await game.ensureAdd(anchor);

@ -12,7 +12,7 @@ typedef PaintFunction = void Function(Paint);
/// {@template canvas_component} /// {@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 existence 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 /// provide a global way to modify the default [Paint] before rendering a
/// [Sprite]. /// [Sprite].
/// {@endtemplate} /// {@endtemplate}

@ -50,7 +50,7 @@ void main() {
); );
flameTester.testGameWidget( flameTester.testGameWidget(
'calls onSpritePainted when paiting a sprite', 'calls onSpritePainted when painting a sprite',
setUp: (game, tester) async { setUp: (game, tester) async {
final spriteComponent = _TestSpriteComponent(); final spriteComponent = _TestSpriteComponent();

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:pinball_ui/pinball_ui.dart'; import 'package:pinball_ui/pinball_ui.dart';
/// {@template crt_background} /// {@template crt_background}
/// [BoxDecoration] that provides a CRT-like background efffect. /// [BoxDecoration] that provides a CRT-like background effect.
/// {@endtemplate} /// {@endtemplate}
class CrtBackground extends BoxDecoration { class CrtBackground extends BoxDecoration {
/// {@macro crt_background} /// {@macro crt_background}

Loading…
Cancel
Save