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 PMJoost Klitsie
12/17/2020, 5:39 PMJoost Klitsie
12/17/2020, 5:40 PMJoost Klitsie
12/17/2020, 5:40 PMJoost Klitsie
12/17/2020, 5:41 PMJohn O'Reilly
12/17/2020, 5:42 PMMaterialTheme was being usedJohn O'Reilly
12/17/2020, 5:43 PMJoost Klitsie
12/17/2020, 5:43 PMKirill Grouchnikov
12/17/2020, 6:23 PMKirill Grouchnikov
12/17/2020, 6:24 PMKirill Grouchnikov
12/17/2020, 6:24 PMJohn O'Reilly
12/17/2020, 6:27 PMJohn O'Reilly
12/17/2020, 6:28 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 PMKirill 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