https://kotlinlang.org logo
#compose
Title
# compose
v

Vinay Gaba

04/08/2020, 4:25 PM
I was trying to upgrade to dev08 and noticed some unexpected behavior when a Text composable is placed above a Card composable inside a Column. The text isn’t visible at all. My guess is that its something related to elevation/shadow.
please see this thread where it was discussed
v

Vinay Gaba

04/08/2020, 4:29 PM
thank you 🙏🏼 I thought I had seen something but I was clearly using the wrong keywords!
v

Val Salamakha

04/10/2020, 5:25 AM
Text will be visible if you do as following:
Copy code
// Column is a composable that places its children in a vertical sequence.
Column {
    // Title Component is a custom composable that we created which is capable of
    // rendering text on the screen in a certain font style & text size.
    Box{
        TitleComponent("Simple constraint layout example")
    }

    Box {
        SimpleConstraintLayoutComponent()
    }
2 Views