We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0b247 commit faa6b24Copy full SHA for faa6b24
app/src/main/java/to/bitkit/ui/components/Button.kt
@@ -94,6 +94,7 @@ fun SecondaryButton(
94
isLoading: Boolean = false,
95
size: ButtonSize = ButtonSize.Large,
96
enabled: Boolean = true,
97
+ fullWidth: Boolean = true,
98
) {
99
OutlinedButton(
100
onClick = onClick,
@@ -102,7 +103,7 @@ fun SecondaryButton(
102
103
contentPadding = PaddingValues(horizontal = size.horizontalPadding),
104
border = BorderStroke(2.dp, if (enabled) Colors.White16 else Color.Transparent),
105
modifier = Modifier
- .fillMaxWidth()
106
+ .then(if (fullWidth) Modifier.fillMaxWidth() else Modifier)
107
.height(size.height)
108
.then(modifier)
109
0 commit comments