CurvedTextDefaults

object CurvedTextDefaults


Summary

Constants

const Float

The default maximum sweep angle in degrees used by curvedText.

const Float

The recommended maximum sweep angle in degrees used by curvedText for screens without scrollable content.

Public functions

Color

The recommended background color to use when displaying curved text so it is visible on top of other content.

Constants

ScrollableContentMaxSweepAngle

Added in 1.0.0-alpha29
const val ScrollableContentMaxSweepAngle = 70.0f: Float

The default maximum sweep angle in degrees used by curvedText. This threshold is for the curvedText displayed on screens with scrollable content, such as lists..

This is calculated by keeping the length of the corresponding chord on the circle to be approximately 57% of the screen width.

StaticContentMaxSweepAngle

Added in 1.0.0-alpha29
const val StaticContentMaxSweepAngle = 120.0f: Float

The recommended maximum sweep angle in degrees used by curvedText for screens without scrollable content.

Public functions

backgroundColor

Added in 1.0.0-alpha29
@Composable
fun backgroundColor(): Color

The recommended background color to use when displaying curved text so it is visible on top of other content.