John O'Reilly
12/17/2020, 5:24 PMpadding()
then default system padding values are used (using Modifier.padding()
). In Compose it looks like 0dp
is used if no parameters are passed. Would be nice I think to use SwiftUI's approach here..
VStack {
....
}
.padding()
Bryan Herbst
12/17/2020, 5:30 PMfun Modifier.defaultPadding() = Modifier.padding(8.dp)
Joost Klitsie
12/17/2020, 5:31 PMJohn O'Reilly
12/17/2020, 5:32 PMJoost Klitsie
12/17/2020, 5:32 PMJohn O'Reilly
12/17/2020, 5:33 PMJoost Klitsie
12/17/2020, 5:33 PMJohn O'Reilly
12/17/2020, 5:42 PMMaterialTheme
was being usedJoost Klitsie
12/17/2020, 5:43 PMKirill Grouchnikov
12/17/2020, 6:23 PMJohn O'Reilly
12/17/2020, 6:27 PMButtonDefaults
is only applied when using MaterialTheme
derived theme?Bryan Herbst
12/17/2020, 6:33 PMButtonDefaults
is part of MaterialTheme
. In fact, all of Button
is! There is no design system-agnostic button implementation in Compose.Kirill Grouchnikov
12/17/2020, 7:32 PMJohn O'Reilly
12/17/2020, 7:38 PMMaterialTheme
as is being done for Button as mentioned aboveKirill Grouchnikov
12/17/2020, 7:41 PM