Skip to content

Commit ed6c81b

Browse files
manabu-nakamuraleticiarossi
authored andcommitted
[Docs][Motion] Fixed typo for "spatial"
Resolves #4526 GIT_ORIGIN_REV_ID=0d8cce7f3ce8599ef0b3ffa3c56da4c40bd64b6d PiperOrigin-RevId: 712571901
1 parent 37a85c3 commit ed6c81b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/theming/Motion.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Attribute | Default value | Description
6868
**?attr/motionSpringDefaultEffects** | `damping: 1, stiffness: 1600` | Spring for animation effects that partially cover the screen.
6969

7070
When building spring animations, a speed should be chosen based on the
71-
animation's size or distance covered. Then, a spacial or effects type should be
71+
animation's size or distance covered. Then, a spatial or effects type should be
7272
chosen depending on the property being animated. For example, if animating a
7373
button's shape and color when pressed, use two springs: a
7474
`motionSpringFastSpatial` spring to animate the button's shape/size and a
@@ -93,12 +93,12 @@ use the resolved object to configure your SpringAnimation's SpringForce.
9393
```kt
9494
val defaultSpatialSpring = MotionUtils.resolveThemeSpringForce(
9595
/* context= */ this,
96-
/* attrResId= */ com.google.android.material.R.attr.motionSpringDefaultSpacial
96+
/* attrResId= */ com.google.android.material.R.attr.motionSpringDefaultSpatial
9797
)
9898
SpringAnimation(box, DynamicAnimation.TRANSLATION_Y, 400f).apply {
9999
spring.apply {
100-
dampingRatio = defaultSpacialSpring.dampingRatio
101-
stiffness = defaultSpacialSpring.stiffness
100+
dampingRatio = defaultSpatialSpring.dampingRatio
101+
stiffness = defaultSpatialSpring.stiffness
102102
}
103103
start()
104104
}
@@ -222,7 +222,7 @@ val duration = MotionUtils.resolveThemeDuration(
222222
## Transitions
223223
224224
Material provides a set of transition patterns that help users understand and
225-
navigate an app. For more information on the patterns and how to choose between
225+
navigate an app. For more information on the patterns and how to choose between
226226
them, check out the
227227
[Material motion transition patterns](https://m3.material.io/styles/motion/transitions/transition-patterns).
228228

0 commit comments

Comments
 (0)