Package-level declarations
Types
Link copied to clipboard
object ColorUtils
Link copied to clipboard
data class CornerSmoothness(@FloatRange(from = 0.0, to = 1.0 ) val circleFraction: Float, @FloatRange(from = 0.0 ) val extendedFraction: Float)
Link copied to clipboard
open class G2RoundedCornerShape(topStart: CornerSize, topEnd: CornerSize, bottomEnd: CornerSize, bottomStart: CornerSize, val cornerSmoothness: CornerSmoothness = CornerSmoothness.Default) : CornerBasedShape
Link copied to clipboard
Miuix default Indication that draws a rectangular overlay when pressed.
Link copied to clipboard
class MiuixPopupUtils
A util class for show popup and dialog.
Link copied to clipboard
OverScrollState is used to control the overscroll effect.
Link copied to clipboard
The type of visual feedback to apply when the component is pressed.
Link copied to clipboard
data class SinkFeedback(val sinkAmount: Float = 0.94f, val animationSpec: AnimationSpec<Float> = spring(0.8f, 600f)) : IndicationNodeFactory
Link copied to clipboard
data class TiltFeedback(val tiltAmount: Float = 8.0f, val animationSpec: AnimationSpec<Float> = spring(0.6f, 400f)) : IndicationNodeFactory
Link copied to clipboard
Window size data class.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
LocalOverScrollState is used to provide the OverScrollState instance to the composition.
Functions
Link copied to clipboard
Handles the back event.
Link copied to clipboard
fun CapsuleShape(cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
Link copied to clipboard
fun G2RoundedCornerShape(corner: CornerSize, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(size: Dp, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(@FloatRange(from = 0.0 ) size: Float, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(@IntRange(from = 0, to = 100 ) percent: Int, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(topStart: Dp = 0.dp, topEnd: Dp = 0.dp, bottomEnd: Dp = 0.dp, bottomStart: Dp = 0.dp, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(@FloatRange(from = 0.0 ) topStart: Float = 0.0f, @FloatRange(from = 0.0 ) topEnd: Float = 0.0f, @FloatRange(from = 0.0 ) bottomEnd: Float = 0.0f, @FloatRange(from = 0.0 ) bottomStart: Float = 0.0f, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
fun G2RoundedCornerShape(@IntRange(from = 0, to = 100 ) topStartPercent: Int = 0, @IntRange(from = 0, to = 100 ) topEndPercent: Int = 0, @IntRange(from = 0, to = 100 ) bottomEndPercent: Int = 0, @IntRange(from = 0, to = 100 ) bottomStartPercent: Int = 0, cornerSmoothness: CornerSmoothness = CornerSmoothness.Default): G2RoundedCornerShape
Link copied to clipboard
Link copied to clipboard
Returns the rounded corner of the current device.
Link copied to clipboard
Returns the current window size.
Link copied to clipboard
fun Modifier.overScrollHorizontal(nestedScrollToParent: Boolean = true, scrollEasing: (currentOffset: Float, newOffset: Float) -> Float? = null, springStiff: Float = OutBoundSpringStiff, springDamp: Float = OutBoundSpringDamp, isEnabled: () -> Boolean = { platform() == Platform.Android || platform() == Platform.IOS }): Modifier
Link copied to clipboard
fun Modifier.overScrollOutOfBound(isVertical: Boolean = true, nestedScrollToParent: Boolean = true, scrollEasing: (currentOffset: Float, newOffset: Float) -> Float?, springStiff: Float = OutBoundSpringStiff, springDamp: Float = OutBoundSpringDamp, isEnabled: () -> Boolean = { platform() == Platform.Android || platform() == Platform.IOS }): Modifier
OverScroll effect for scrollable Composable.
Link copied to clipboard
fun Modifier.overScrollVertical(nestedScrollToParent: Boolean = true, scrollEasing: (currentOffset: Float, newOffset: Float) -> Float? = null, springStiff: Float = OutBoundSpringStiff, springDamp: Float = OutBoundSpringDamp, isEnabled: () -> Boolean = { platform() == Platform.Android || platform() == Platform.IOS }): Modifier
Link copied to clipboard
Link copied to clipboard
fun Modifier.pressable(enabled: Boolean = true, role: Role? = null, delay: Long? = TapIndicationDelay): Modifier
fun Modifier.pressable(interactionSource: MutableInteractionSource?, indication: Indication? = null, enabled: Boolean = true, role: Role? = null, delay: Long? = TapIndicationDelay): Modifier
Configure component to receive press via accessibility "press" event.
Link copied to clipboard
fun Modifier.scrollEndHaptic(hapticFeedbackType: HapticFeedbackType = HapticFeedbackType.TextHandleMove): Modifier
Applies a haptic feedback effect when a scrollable container is flung to its boundaries.