feat: add modifier parameter to AppButton
This commit is contained in:
parent
35a5e7a016
commit
a2672f7a6b
|
|
@ -21,13 +21,14 @@ import com.syaroful.agrilinkvocpro.presentation.theme.MainGreen
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun AppButton(
|
fun AppButton(
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
label: String,
|
label: String,
|
||||||
isEnable: Boolean = true,
|
isEnable: Boolean = true,
|
||||||
onClick: () -> Unit,
|
onClick: () -> Unit,
|
||||||
) {
|
) {
|
||||||
Button(
|
Button(
|
||||||
onClick = onClick,
|
onClick = onClick,
|
||||||
modifier = Modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(16.dp),
|
.padding(16.dp),
|
||||||
shape = RoundedCornerShape(8.dp),
|
shape = RoundedCornerShape(8.dp),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user