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

Vivek Sharma

02/20/2021, 5:34 PM
I am having two `Text()`composable in a
column
, can I control the vertical spacing between them, is there a way
or is there some default padding to
Text
, I think not
I am getting more spacing between them, I am not using
Spacer
tho
z

Zach Klippenstein (he/him) [MOD]

02/20/2021, 5:40 PM
You can pass a
verticalArrangement
v

Vivek Sharma

02/20/2021, 5:58 PM
@Zach Klippenstein (he/him) [MOD] I used
Copy code
Arrangement.spacedBy((-10).dp)
, this is reducing the space, but is it normal thing to pass -10 dp value 😅
z

Zach Klippenstein (he/him) [MOD]

02/20/2021, 6:10 PM
Oh, you’re trying to get rid of the padding, I see. If you don’t want to use the material text control, you can use BasicText which doesn’t have any extra decorations or padding
v

Vivek Sharma

02/20/2021, 6:13 PM
yeah thanks, it works fine now