Ruckus
10/04/2019, 8:28 PMPadding(16.dp) { Text(text = "Hello, world!") }alexsullivan114
10/04/2019, 8:29 PMalexsullivan114
10/04/2019, 8:29 PMAdam Powell
10/04/2019, 8:30 PMPadding(16.dp) { Stuff(...) } is confusing as wellromainguy
10/04/2019, 8:30 PMval border = lineBackground(black) wraps padding(16.dp) (assuming modifiers can draw)romainguy
10/04/2019, 8:31 PMText(modifier = myTheme.border) for instancealexsullivan114
10/04/2019, 8:31 PMwraps and + have interesting different semantics. The word wraps is kind of intriguing though - especially in the context of padding, which is literally wrapping around things.Ruckus
10/04/2019, 8:32 PMAdam Powell
10/04/2019, 8:32 PMPadding(16.dp) {
Text(text = "Hello")
Text(text = "World")
}Adam Powell
10/04/2019, 8:33 PMalexsullivan114
10/04/2019, 8:34 PMRuckus
10/04/2019, 8:34 PMAdam Powell
10/04/2019, 8:36 PMalexsullivan114
10/04/2019, 8:37 PMAdam Powell
10/04/2019, 8:38 PMalexsullivan114
10/04/2019, 8:38 PMAdam Powell
10/04/2019, 8:40 PMalexsullivan114
10/04/2019, 8:42 PMPadding example feels like an easier one to grok (i.e. padding wrapping two text objects) than a specialized container widget that semantically should wrap one widget wrapping multiple ones. Like, something to this tune:
BlackOutline {
Text("Howdy")
Text("Ho")
}
Now BlackOutline needs to know how to layout its children. Does BlackOutline have any way of stating that it does not know how to layout children and accepts only one child to outline?Adam Powell
10/04/2019, 8:43 PMAdam Powell
10/04/2019, 8:44 PMalexsullivan114
10/04/2019, 8:44 PMAdam Powell
10/04/2019, 8:44 PMRuckus
10/04/2019, 8:44 PMany parameter that accepts a composable function object by definition has to be ready to accept practically anything@Adam Powell Are there any plans/ideas on how to work around that, or is it now a defined limitation of Compose?
alexsullivan114
10/04/2019, 8:44 PMAdam Powell
10/04/2019, 8:46 PMAdam Powell
10/04/2019, 8:47 PMalexsullivan114
10/04/2019, 8:47 PMalexsullivan114
10/04/2019, 8:48 PMAdam Powell
10/04/2019, 8:49 PMLayout that measures/positions the first measurable it receives and drops the rest on the floor. A humane implementation of such a thing might throw if measurables.size > 1Adam Powell
10/04/2019, 8:49 PMalexsullivan114
10/04/2019, 8:50 PMalexsullivan114
10/04/2019, 8:51 PMAdam Powell
10/04/2019, 8:51 PMAdam Powell
10/04/2019, 9:00 PMRuckus
10/04/2019, 9:01 PMromainguy
10/04/2019, 9:03 PMalexsullivan114
10/05/2019, 12:22 PMkioba
10/06/2019, 10:50 AMkioba
10/06/2019, 10:53 AMAdam Powell
10/09/2019, 12:50 PMLuca Nicoletti
10/09/2019, 12:51 PMAdam Powell
10/09/2019, 12:53 PMLuca Nicoletti
10/09/2019, 1:01 PMAdam Powell
10/09/2019, 1:06 PMLeland Richardson [G]
10/09/2019, 6:48 PMLeland Richardson [G]
10/09/2019, 6:49 PMLeland Richardson [G]
10/09/2019, 6:50 PMLeland Richardson [G]
10/09/2019, 6:51 PMLeland Richardson [G]
10/09/2019, 6:51 PMLeland Richardson [G]
10/09/2019, 6:52 PMLeland Richardson [G]
10/09/2019, 6:52 PMLeland Richardson [G]
10/09/2019, 6:53 PMLeland Richardson [G]
10/09/2019, 6:53 PMmemo and state and turn them into composable functions themselvesLeland Richardson [G]
10/09/2019, 6:54 PMLeland Richardson [G]
10/09/2019, 6:55 PMalexsullivan114
10/09/2019, 7:26 PMLeland Richardson [G]
10/09/2019, 7:50 PMLeland Richardson [G]
10/09/2019, 7:50 PM