PLASMA-7414: Motion API was added in TextSkeleton and RectSkeleton#820
PLASMA-7414: Motion API was added in TextSkeleton and RectSkeleton#820SerraMorec wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
5f6b4ee to
bc78447
Compare
|
📘Артефакты документации опубликованы: |
📦 Собранные Debug APK
📲 Как установить APK на Android-устройство:
💻 Установка через USB (ADB):
|
| brush: StatefulValue<Brush> = style.gradient, | ||
| shape: StatefulValue<Shape> = style.shapes, | ||
| motion: Motion<RectSkeletonMotionStyle> = rememberRectSkeletonMotion(), | ||
| transition: InfiniteTransition = rememberInfiniteTransition(), |
There was a problem hiding this comment.
А зачем новая перегрузка, можно добавить motion в существующие перегрузки? Они будут конфликтовать, так как ни одна не требует явно указать какой-то из параметров.
| } else { | ||
| Modifier.blink( | ||
| color = brushValue.value, | ||
| color = (brushValue as SolidColor).value, |
There was a problem hiding this comment.
можно сделать перегрузки для Modifier.blink и Modifier.brush с лямбдой для brush и color. С обратно совместимостью, конечно.
| brush: StatefulValue<Brush> = style.gradient, | ||
| shape: StatefulValue<Shape> = style.shapes, | ||
| transition: InfiniteTransition = rememberInfiniteTransition(), | ||
| motion: Motion<TextSkeletonMotionStyle> = rememberTextSkeletonMotion(), |
There was a problem hiding this comment.
конфликт перегрузок. Можно добавить motion в существующую функцию.
bc78447 to
afb1cbb
Compare
sdds-uikit-compose
TextSkeleton
RectSkeleton
What/why changed
Для компонента TextSkeleton и RectSkeleton добавлены Motion и MotionStyle, с помощью которых можно настроить анимацию изменения параметров цвета и типографики. Стили переведен на StatefulValue.