ResponsiveTransformationSpecDefaults

object ResponsiveTransformationSpecDefaults


Contains the default values used by ResponsiveTransformationSpec

Summary

Public functions

ResponsiveTransformationSpec
largeScreenSpec(
    screenSizeDp: Int,
    minElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    maxElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    minTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    maxTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    easing: Easing,
    containerAlpha: TransformationVariableSpec,
    contentAlpha: TransformationVariableSpec,
    scale: TransformationVariableSpec
)

Default TransformationSpec for large watch screen size LargeScreenSizeDp.

ResponsiveTransformationSpec
smallScreenSpec(
    screenSizeDp: Int,
    minElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    maxElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    minTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    maxTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float,
    easing: Easing,
    containerAlpha: TransformationVariableSpec,
    contentAlpha: TransformationVariableSpec,
    scale: TransformationVariableSpec
)

Default TransformationSpec for small watch screen size SmallScreenSizeDp.

Public properties

Int

The default spec configuration point for the large screen size.

Int

The default spec configuration point for the small screen size.

Public functions

largeScreenSpec

Added in 1.0.0-alpha33
fun largeScreenSpec(
    screenSizeDp: Int = LargeScreenSizeDp,
    minElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.15f,
    maxElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.45f,
    minTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.4f,
    maxTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.6f,
    easing: Easing = CubicBezierEasing(0.3f, 0f, 0.7f, 1f),
    containerAlpha: TransformationVariableSpec = TransformationVariableSpec(0.5f),
    contentAlpha: TransformationVariableSpec = TransformationVariableSpec(0.5f),
    scale: TransformationVariableSpec = TransformationVariableSpec(0.6f)
): ResponsiveTransformationSpec

Default TransformationSpec for large watch screen size LargeScreenSizeDp.

This spec should be used in rememberResponsiveTransformationSpec together with the specs for another screen sizes to support different watch sizes.

smallScreenSpec

Added in 1.0.0-alpha33
fun smallScreenSpec(
    screenSizeDp: Int = SmallScreenSizeDp,
    minElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.2f,
    maxElementHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.6f,
    minTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.35f,
    maxTransitionAreaHeightFraction: @FloatRange(from = 0.0, to = 1.0) Float = 0.55f,
    easing: Easing = CubicBezierEasing(0.3f, 0f, 0.7f, 1f),
    containerAlpha: TransformationVariableSpec = TransformationVariableSpec(0.5f),
    contentAlpha: TransformationVariableSpec = TransformationVariableSpec(0.5f),
    scale: TransformationVariableSpec = TransformationVariableSpec(0.7f)
): ResponsiveTransformationSpec

Default TransformationSpec for small watch screen size SmallScreenSizeDp.

This spec should be used in rememberResponsiveTransformationSpec together with the specs for another screen sizes to support different watch sizes.

Public properties

LargeScreenSizeDp

Added in 1.0.0-alpha33
val LargeScreenSizeDpInt

The default spec configuration point for the large screen size.

SmallScreenSizeDp

Added in 1.0.0-alpha33
val SmallScreenSizeDpInt

The default spec configuration point for the small screen size.