Ruckus
10/04/2019, 8:28 PMPadding(16.dp) { Text(text = "Hello, world!") }
alexsullivan114
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)Text(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")
}
alexsullivan114
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 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 PMalexsullivan114
10/04/2019, 8:47 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 > 1
alexsullivan114
10/04/2019, 8:50 PMAdam Powell
10/04/2019, 8:51 PMRuckus
10/04/2019, 9:01 PMromainguy
10/04/2019, 9:03 PMalexsullivan114
10/05/2019, 12:22 PMkioba
10/06/2019, 10:50 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 PMmemo
and state
and turn them into composable functions themselvesalexsullivan114
10/09/2019, 7:26 PMLeland Richardson [G]
10/09/2019, 7:50 PM