修正ActionButton
This commit is contained in:
@@ -65,12 +65,13 @@ fun ActionButton(
|
||||
modifier = modifier
|
||||
.clip(RoundedCornerShape(24.dp))
|
||||
.background(animatedBackgroundColor)
|
||||
.padding(contentPadding)
|
||||
.noRippleClickable {
|
||||
if (enabled && !isLoading) {
|
||||
click()
|
||||
}
|
||||
},
|
||||
}
|
||||
.padding(contentPadding),
|
||||
|
||||
contentAlignment = Alignment.CenterStart
|
||||
) {
|
||||
if (!isLoading) {
|
||||
@@ -85,16 +86,23 @@ fun ActionButton(
|
||||
}
|
||||
},
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
contentAlignment = Alignment.CenterStart
|
||||
) {
|
||||
Box(modifier = Modifier.align(Alignment.CenterStart)){
|
||||
leading?.invoke()
|
||||
}
|
||||
}
|
||||
|
||||
Text(
|
||||
text,
|
||||
fontSize = 17.sp,
|
||||
color = color,
|
||||
fontWeight = FontWeight.W900,
|
||||
textAlign = if (expandText) TextAlign.Center else TextAlign.Start
|
||||
|
||||
)
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user