You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* When [isMarqueeAutoLayout] is enabled, the origin width is extended based on the provided [length] and [gravity], while maintaining the same offset. This ensures that
57
60
* when fading edges [length] paddings are applied to the marquee text, the text remains positioned at its origin location. It is important to leave sufficient free space
58
61
* around the marquee to ensure the effect is drawn correctly. On the other hand, when [isMarqueeAutoLayout] is disabled, the fading edges length paddings are applied to
59
-
* the marquee text, and the origin position is offset by the [length]. In this case, you need to manually handle this padding offset.
62
+
* the marquee text, and the origin position is offset by the [length]. In this case, you need to manually handle this padding offset. In the [isMarqueeAutoLayout] the
63
+
* [isMarqueeAutoPadding] is automatically true.
64
+
*
65
+
* When the text content is unfit, the marquee and [horizontalFadingEdges] will not be applied.
60
66
*
61
67
* @param gravity The [FadingEdgesGravity].
62
68
* @param length The fading edges length.
63
69
* @param fillType The [FadingEdgesFillType].
64
70
* @param isMarqueeAutoLayout Determines whether the [horizontalFadingEdges] and text marquee should be automatically aligned during the layout process to accommodate
65
71
* additional text paddings required for proper fading edges drawing.
72
+
* @param isMarqueeAutoPadding Determines if padding values according to the [gravity] and [length] should be applied.
66
73
* @param marqueeProvider The custom or default [basicMarquee] provider.
67
74
* @return The [Modifier] with extended width in case of [isMarqueeAutoLayout] is enabled, [horizontalFadingEdges], provided marquee with [marqueeProvider], and
68
75
* additional horizontal paddings.
@@ -73,21 +80,39 @@ fun Modifier.marqueeHorizontalFadingEdges(
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,7 @@ This `Modifier` comes with common [fading edges params](#fading-edges-modifiers)
121
121
|Param|Description|
122
122
|-|-|
123
123
|`isMarqueeAutoLayout`|Determines whether the `horizontalFadingEdges(...)` and text marquee should be automatically aligned during the layout process to accommodate additional text paddings required for proper fading edges drawing.|
124
+
|`isMarqueeAutoPadding`|Determines if padding values according to the `gravity` and `length` should be applied.|
124
125
|`marqueeProvider`|The custom or default `basicMarquee` provider.|
0 commit comments