I'm trying this tutorial from https://developer.android.com. image for code But I can't import HeightSpacer. Is HeightSpacer deprecated? I can't find any new alternatives for that? Thank you.
In Jetpack Compose, a Spacer is a blank element that is used to create a Space between two UI elements.
Scaffold provides a slot for a floating action button. You can use the floatingActionButton slot and a FloatingActionButton : Scaffold( floatingActionButton = { FloatingActionButton(onClick = { /* ...
Jetpack Compose is a modern declarative UI Toolkit for Android. Compose makes it easier to write and maintain your app UI by providing a declarative API that allows you to render your app UI without imperatively mutating frontend views.
You can use a Spacer
with a height
modifier—or any other modifier(s) that you like. For example:
Spacer(modifier = Modifier.height(16.dp))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With