Mark Murphy
04/21/2020, 9:16 PMLouis Pullen-Freilich [G]
04/21/2020, 9:22 PMText
, horizontally aligned inside a Card
for example - it's valid to express this, but it's just not always the accurate intention.
gravity
, like all modifiers, affects the element it is placed on, not children / the inside of that elementMark Murphy
04/21/2020, 9:27 PMthere isn't really anything wrong with the exampleFor this example, yes. But I get the sense that it's not universal: all modifiers will not make sense for all composables. For example, does the
aspectRatio
modifier work on Text
?
I am just having flashbacks to having to answer an endless series of support questions like "why isn't android:orientation
working on my RelativeLayout
?". 🤪Leland Richardson [G]
04/22/2020, 12:10 AMParentDataModifiers
currently (not sure if that’s a public type or notAdam Powell
04/22/2020, 5:36 AMthis
is pretty minimal in practice