type |
Choose type of animation from:[CIRCLE, WHEEL, ZOOM_IN_OUT_CIRCLE, CLOCK, SPIRAL, CUSTOM] |
None |
width |
Width to be applied to the button. |
None |
height |
Height to be applied to the button. |
None |
onClick |
Will be called when the user clicks the button. |
None |
assetColor |
Color to be applied to icon and text inside button. |
None |
buttonState |
Represent the state of button from IDLE, LOADING, SUCCESS, FAILIURE from SSButtonState. |
None |
buttonBorderWidth |
Border width to draw around the button. |
0.dp |
buttonBorderColor |
Border color to be applied around the button. |
0.dp |
animatedButtonBorderColor |
Border color to be applied around the button when button is in LOADING state. |
0.dp |
isBlinkingIcon |
Icon will be blink with size and color. |
false |
blinkingIconColor |
Color which will be used with Icon tintColor when isBlinkingIcon is enabled. |
null |
cornerRadius |
Corner radius to be applied to the button. |
20 |
speedMillis |
Speed of the animation while changing the state. |
1000 |
enabled |
Controls the enabled state of the button. |
true |
elevation |
It is used to resolve the elevation for this button in different. |
ButtonDefaults.elevatedButtonElevation() |
colors |
Colors that will be used to resolve the background and content color for this button in different states |
ButtonDefaults.buttonColors() |
padding |
The spacing values to apply internally between the container and the content. |
PaddingValues(0.dp) |
alphaValue |
The alpha of the drawn area. |
1f |
leftImagePainter |
Painter to draw inside this left Icon. |
null |
leftImageTintColor |
Color to be applied to left image. |
null |
rightImagePainter |
Painter to draw inside this right Icon. |
null |
rightImageTintColor |
Color to be applied to right image. |
null |
successIconPainter |
Painter to draw inside this success state Icon. |
null |
successIconTintColor |
Color to be applied to success icon. |
null |
failureIconPainter |
Painter to draw inside this failure state Icon. |
null |
failureIconTintColor |
Color to be applied to failure icon. |
null |
text |
The text to be displayed. |
null |
textModifier |
To apply to this text layout node. |
Modifier |
fontSize |
The size of glyphs to use when painting the text. |
TextUnit.Unspecified |
fontStyle |
The typeface variant to use when drawing the letters (e.g., italic). |
null |
fontFamily |
The font family to be used when rendering the text. |
null |
fontWeight |
The typeface thickness to use when painting the text (e.g., [FontWeight.Bold]). |
null |
hourHandColor |
Color will be apply to hour hand in clock type animation only. |
Color.Black |
customLoadingIconPainter |
painter [Painter] to draw your custom loading icon. |
painterResource(id = R.drawable.simform_logo) |
customLoadingEffect |
Custom loading animation type like roation, zoom in out etc. |
SSCustomLoadingEffect( rotation = false, zoomInOut = false, colorChanger = false) |
customLoadingPadding |
Spacing between button border and loading icon. |
0.dp |
shouldAutoMoveToIdleState |
In case of success/failure state after defined time it move back to idle state. |
true |
swipeAbleButtonPadding |
Spacing for swipeAble button icon. |
true |
swipeAbleButtonThreshold |
Threshold for swipe button, once this threshold will reach it will consider button as loading state based on shouldAutomateSwipeToAnimate. |
0.5f |
shouldAutomateSwipeToAnimate |
Based on this it will determine if button should move to loading state once swipeAbleButtonThreshold has been reached or should wait for user to stop swipe. |
false |
onSwipeAbleButtonDragPercentageUpdate |
This will give callback of the progress update when the swipe is in progress. |
None |
onSwiped |
This will give callback once swipe is reached at threshold and button moves to loading state. |
None |
评论