Updated on 2026-08-14
This commit is contained in:
parent
d2d9669097
commit
b4e99d2459
6 changed files with 82 additions and 32 deletions
|
|
@ -96,7 +96,10 @@ private fun Button(
|
|||
.clip(shape)
|
||||
.background(color = backgroundColor),
|
||||
) {
|
||||
Content(config = config)
|
||||
Content(
|
||||
config = config,
|
||||
modifier = Modifier.align(alignment = Alignment.Center),
|
||||
)
|
||||
|
||||
if (config.isInProgress) {
|
||||
Loading(
|
||||
|
|
@ -111,11 +114,11 @@ private fun Button(
|
|||
|
||||
@OptIn(ExperimentalFoundationApi::class)
|
||||
@Composable
|
||||
private fun Content(config: ActionButtonConfig) {
|
||||
private fun Content(config: ActionButtonConfig, modifier: Modifier = Modifier) {
|
||||
val context = LocalContext.current
|
||||
|
||||
Row(
|
||||
modifier = Modifier
|
||||
modifier = modifier
|
||||
.combinedClickable(
|
||||
enabled = config.enabled,
|
||||
onClick = config.onClick,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue