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
|
||||
fun AppButton(
|
||||
modifier: Modifier = Modifier,
|
||||
label: String,
|
||||
isEnable: Boolean = true,
|
||||
onClick: () -> Unit,
|
||||
) {
|
||||
Button(
|
||||
onClick = onClick,
|
||||
modifier = Modifier
|
||||
modifier = modifier
|
||||
.fillMaxWidth()
|
||||
.padding(16.dp),
|
||||
shape = RoundedCornerShape(8.dp),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user