Peter Mandeljc
07/28/2023, 7:24 AMPeter Mandeljc
07/28/2023, 7:31 AM@Preview
@Composable
fun Preview() {
Column {
Box(
modifier = Modifier
.background(Color.Blue)
.fillMaxWidth()
.height(10.dp)
)
androidx.compose.material3.Button(
modifier = Modifier
.fillMaxWidth(),
// .height(30.dp)
// .defaultMinSize(minHeight = 1.dp),
contentPadding = PaddingValues(all = 0.dp)
) {
Text(text = "Log in",)
}
Box(
modifier = Modifier
.background(Color.Blue)
.fillMaxWidth()
.height(10.dp)
)
}
}
Csaba Szugyiczki
07/28/2023, 7:42 AMCsaba Szugyiczki
07/28/2023, 7:42 AMPeter Mandeljc
07/28/2023, 7:42 AMheightIn
?
/**
* The default min height applied for all buttons. Note that you can override it by applying
* Modifier.heightIn directly on the button composable.
*/
val MinHeight = 40.dp
Peter Mandeljc
07/28/2023, 7:43 AMheight(30.dp)
, it still has that paddingCsaba Szugyiczki
07/28/2023, 7:44 AMPeter Mandeljc
07/28/2023, 7:46 AMCsaba Szugyiczki
07/28/2023, 7:49 AMCsaba Szugyiczki
07/28/2023, 7:50 AMPeter Mandeljc
07/28/2023, 7:52 AMCsaba Szugyiczki
07/28/2023, 7:53 AMPeter Mandeljc
07/28/2023, 7:53 AMCsaba Szugyiczki
07/28/2023, 7:55 AMPeter Mandeljc
07/28/2023, 7:56 AMPeter Mandeljc
07/28/2023, 7:57 AM(48-30)/2
etcCsaba Szugyiczki
07/28/2023, 7:59 AMPeter Mandeljc
07/28/2023, 8:00 AMMichael Paus
07/28/2023, 8:45 AMPeter Mandeljc
07/28/2023, 8:46 AMColton Idle
07/28/2023, 1:29 PMColton Idle
07/28/2023, 1:29 PMMichael Paus
07/28/2023, 1:34 PM