Note: The screen is a verticle arrangement. All three card views that you can see are placed within a horizontal arrangement & its height & width set to automatic.
Actually CardView’s left, right margin is more than top, bottom margin.
So you have to set Label inside it to square
And set CardView’s Height and Width to automatic.
I don’t understand what this logic has to do with Screen height ? The blocks only gets the screen width na ? Like if the screen width is 360 then the height and width of this card view is set to 0.16×screen.width.
But according to this logic the value given to both height and width (of the card view) is the same. If the screen width is 360 then the value 57.6 should be set to both height and width.
Then it wont be responsive. What I’m doing is the very same approach but in a different way. This method worked for all other pages (arrangements) expect this one. My question is straight & simple: “What’s wrong with this logic & why it’s not working ?”
It would be great if anyone could answers this. That way I can learn from my mistake & find a solution on my own.
That makes sense, because the result of that operation will throw some decimals in it, and those will show in the math blocks. But the screen doesn’t have partial pixels, so it’s logical that there will be a rounding to the nearest integer when you get the value from the card.width block.