Javier
01/21/2022, 6:10 PMshadow
has a different source of light in desktop (left top) respect to Android (center top). I think the common Modifier
should have the same behavior in both platform and if a design system like Material needs to change the position, should create an additional modifier, but not sure if shadow
should be renamed to basicShadow
similar to BasicText
and Button
Chris Sinco [G]
01/22/2022, 6:36 AMIgor Demin
01/22/2022, 9:47 AMJavier
01/22/2022, 12:52 PMJavier
01/22/2022, 2:32 PMJavier
01/24/2022, 11:08 AMJavier
01/24/2022, 11:08 AMfun main() = application {
Window(onCloseRequest = ::exitApplication) {
MaterialTheme {
Box(modifier = Modifier.padding(32.dp)) {
Card {
Column(modifier = Modifier.padding(16.dp)) {
Button(
modifier = Modifier.fillMaxWidth(),
onClick = {},
) { Text("Button") }
}
}
}
}
}
}
Javier
01/24/2022, 11:08 AMButton
has the modifier fillMaxWidth
. In Android it is not happening, only on desktopJavier
01/24/2022, 11:08 AMJavier
01/24/2022, 11:09 AMJavier
01/24/2022, 11:10 AMButton
width to an specific value, for example, 200.dp
, it is not happening anymoreJavier
01/24/2022, 11:10 AMgildor
01/24/2022, 3:10 PMJavier
01/24/2022, 3:15 PMgildor
01/24/2022, 4:23 PMJavier
01/24/2022, 5:09 PMtad
01/25/2022, 3:53 AM