wasyl
10/22/2019, 8:50 PMModifier
type is a LayoutModifier
, which, if I understand correctly, is read and applied in the LayoutNode
in appropriate place.
I know there’s been a discussion about the scope of modifiers, but in the end there’ll be just some number of modifier types handled by the core library in appropriate places, right?
Could you share what other possible types of modifiers were you thinking about in general, not necessarily ones that are likely to be part of Compose?wasyl
10/22/2019, 8:52 PMAdam Powell
10/22/2019, 9:06 PMAdam Powell
10/22/2019, 9:07 PMAdam Powell
10/22/2019, 9:08 PMwasyl
10/22/2019, 9:14 PMTextField
, will get it, right? I just wrapped it in a Container
to have one in a Row
wasyl
10/22/2019, 9:16 PMAdam Powell
10/22/2019, 9:24 PMwasyl
10/22/2019, 9:27 PMRyan Mentley
10/22/2019, 9:37 PMAdam Powell
10/22/2019, 9:39 PMwasyl
10/22/2019, 9:50 PMwasyl
10/22/2019, 9:52 PMmodifier = Padding(..) wraps BackgroundColor()
wasyl
10/22/2019, 9:53 PMAdam Powell
10/22/2019, 10:11 PMDraw {
might be able to become something like Canvas {
that could emit a layout node with attached drawing modifiers.Adam Powell
10/22/2019, 10:11 PMthemishkun
10/23/2019, 8:37 AM(::Padding wraps ::Row) {
::Padding wraps ::Button
}
Fudge
10/23/2019, 8:43 AMFudge
10/23/2019, 8:43 AMthemishkun
10/23/2019, 8:45 AMFudge
10/23/2019, 8:48 AMthemishkun
10/23/2019, 8:56 AM::Padding.partial(16)
looks kinda weird to people unfamiliar with partial application pattern