From 2926fdc427fc6030821039835c0ce35a0cfcdad0 Mon Sep 17 00:00:00 2001 From: guqicun Date: Sat, 6 Apr 2024 19:15:41 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: guqicun --- doc/bridge_packages/flame_forge2d/joints.md | 2 +- doc/development/documentation.md | 2 +- doc/flame/rendering/text_rendering.md | 2 +- .../bridge_libraries/flame_isolate/simple_isolate_example.dart | 2 +- packages/flame/lib/src/camera/camera_component.dart | 2 +- .../lib/src/components/sprite_animation_group_component.dart | 2 +- packages/flame/lib/src/components/sprite_group_component.dart | 2 +- packages/flame/lib/src/extensions/image.dart | 2 +- packages/flame/lib/src/parallax.dart | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/bridge_packages/flame_forge2d/joints.md b/doc/bridge_packages/flame_forge2d/joints.md index 71bf4a892cf..a2a94b90f22 100644 --- a/doc/bridge_packages/flame_forge2d/joints.md +++ b/doc/bridge_packages/flame_forge2d/joints.md @@ -482,7 +482,7 @@ joint.getCurrentLengthB() ```{warning} `PulleyJoint` can get a bit troublesome by itself. They often work better when -combined with prismatic joints. You should also cover the the anchor points +combined with prismatic joints. You should also cover the anchor points with static shapes to prevent one side from going to zero length. ``` diff --git a/doc/development/documentation.md b/doc/development/documentation.md index 08efe28ed2e..16880800ed1 100644 --- a/doc/development/documentation.md +++ b/doc/development/documentation.md @@ -194,7 +194,7 @@ rebuild the documents that have changed since the previous run, so usually, a re second or two. If you want to automatically recompile the docs every time there is a change to one of the files -you can use the the built-in Melos target below, which will also serve and open your default +you can use the built-in Melos target below, which will also serve and open your default browser with the docs. ```shell diff --git a/doc/flame/rendering/text_rendering.md b/doc/flame/rendering/text_rendering.md index a42b52ba0c1..ebfd81b1fc6 100644 --- a/doc/flame/rendering/text_rendering.md +++ b/doc/flame/rendering/text_rendering.md @@ -81,7 +81,7 @@ You can decide if the box should grow as the text is written or if it should be `growingBox` variable in the `TextBoxConfig`. A static box could either have a fixed size (setting the `size` property of the `TextBoxComponent`), or to automatically shrink to fit the text content. -In addition, the `align` property allows you to control the the horizontal and vertical alignment of +In addition, the `align` property allows you to control the horizontal and vertical alignment of the text content. For example, setting `align` to `Anchor.center` will center the text within its bounding box both vertically and horizontally. diff --git a/examples/lib/stories/bridge_libraries/flame_isolate/simple_isolate_example.dart b/examples/lib/stories/bridge_libraries/flame_isolate/simple_isolate_example.dart index c034f0922fa..44fab01a772 100644 --- a/examples/lib/stories/bridge_libraries/flame_isolate/simple_isolate_example.dart +++ b/examples/lib/stories/bridge_libraries/flame_isolate/simple_isolate_example.dart @@ -13,7 +13,7 @@ class SimpleIsolateExample extends FlameGame { This example showcases a simple FlameIsolate example, making it easy to continually run heavy load without stutter. - Tap the brown square to swap between running heavy load in in an isolate or + Tap the brown square to swap between running heavy load in an isolate or synchronous. The selected backpressure strategy used for this example is diff --git a/packages/flame/lib/src/camera/camera_component.dart b/packages/flame/lib/src/camera/camera_component.dart index a75dbaf9d23..6bc63472e29 100644 --- a/packages/flame/lib/src/camera/camera_component.dart +++ b/packages/flame/lib/src/camera/camera_component.dart @@ -393,7 +393,7 @@ class CameraComponent extends Component { /// the world to which the given [component] belongs (if any). This means, in /// such cases, any component overlapping the [visibleWorldRect] will be /// reported as visible, even if it is not part of the [world] this camera is - /// currently looking at. This can be changed by passing the the component's + /// currently looking at. This can be changed by passing the component's /// world as [componentWorld]. bool canSee(PositionComponent component, {World? componentWorld}) { if (!(world?.isMounted ?? false) || diff --git a/packages/flame/lib/src/components/sprite_animation_group_component.dart b/packages/flame/lib/src/components/sprite_animation_group_component.dart index 78a44fab840..74dd3dd0812 100644 --- a/packages/flame/lib/src/components/sprite_animation_group_component.dart +++ b/packages/flame/lib/src/components/sprite_animation_group_component.dart @@ -134,7 +134,7 @@ class SpriteAnimationGroupComponent extends PositionComponent /// Returns the current group state. T? get current => _current; - /// The the group state to given state. + /// The group state to given state. /// /// Will update [size] if [autoResize] is true. set current(T? value) { diff --git a/packages/flame/lib/src/components/sprite_group_component.dart b/packages/flame/lib/src/components/sprite_group_component.dart index 7d27da784c9..9e9a268fb5e 100644 --- a/packages/flame/lib/src/components/sprite_group_component.dart +++ b/packages/flame/lib/src/components/sprite_group_component.dart @@ -64,7 +64,7 @@ class SpriteGroupComponent extends PositionComponent /// Returns the current group state. T? get current => _current; - /// The the group state to given state. + /// The group state to given state. /// /// Will update [size] if [autoResize] is true. set current(T? value) { diff --git a/packages/flame/lib/src/extensions/image.dart b/packages/flame/lib/src/extensions/image.dart index 907025c8728..3c3055f342c 100644 --- a/packages/flame/lib/src/extensions/image.dart +++ b/packages/flame/lib/src/extensions/image.dart @@ -96,7 +96,7 @@ extension ImageExtension on Image { /// Resizes this image to the given [newSize]. /// /// Keep in mind that is considered an expensive operation and should be - /// avoided in the the game loop methods. Prefer using it + /// avoided in the game loop methods. Prefer using it /// in the loading phase of the game or components. Future resize(Vector2 newSize) async { final recorder = PictureRecorder(); diff --git a/packages/flame/lib/src/parallax.dart b/packages/flame/lib/src/parallax.dart index a1583d7ae62..d1928cb52c2 100644 --- a/packages/flame/lib/src/parallax.dart +++ b/packages/flame/lib/src/parallax.dart @@ -189,7 +189,7 @@ class ParallaxAnimation extends ParallaxRenderer { /// /// _IMPORTANT_: This method pre render all the frames of the animation into /// image instances so it can be used inside the parallax. Just keep that in - /// mind when using animations in in parallax, the over use of it, or the use + /// mind when using animations in parallax, the over use of it, or the use /// of big animations (be it in number of frames or the size of the images) /// can lead to high use of memory. static Future load(