Compose: Calculator: show card background

This commit is contained in:
MM20 2021-09-24 21:56:04 +02:00
parent ab538badd9
commit df18722135
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -4,10 +4,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.material.ContentAlpha import androidx.compose.material.*
import androidx.compose.material.LocalContentAlpha
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
@ -26,9 +23,12 @@ fun calculatorItem(): LazyListScope.() -> Unit {
return { return {
calculator?.let { calculator?.let {
item { item {
Card(
elevation = 0.dp
) {
Column( Column(
modifier = Modifier modifier = Modifier
.padding(8.dp) .padding(16.dp)
.fillMaxWidth() .fillMaxWidth()
) { ) {
@ -61,6 +61,7 @@ fun calculatorItem(): LazyListScope.() -> Unit {
} }
} }
} }
}
SectionDivider() SectionDivider()
} }
} }