mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 07:57:03 +05:30
all: update to Compose alpha08 and Kotlin 1.4.20
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
6597f0058d
commit
f8b8ce0b5b
7 changed files with 16 additions and 16 deletions
|
@ -12,13 +12,13 @@ import androidx.compose.foundation.lazy.LazyColumnFor
|
|||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.material.Text
|
||||
import androidx.compose.material.ripple.RippleIndication
|
||||
import androidx.compose.material.ripple.rememberRippleIndication
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.ui.tooling.preview.Preview
|
||||
import coil.transform.CircleCropTransformation
|
||||
import dev.chrisbanes.accompanist.coil.CoilImage
|
||||
import dev.msfjarvis.lobsters.R
|
||||
|
@ -113,7 +113,7 @@ fun LobstersItem(
|
|||
modifier = Modifier.padding(8.dp)
|
||||
.clickable(
|
||||
onClick = onSaveButtonClick,
|
||||
indication = RippleIndication(),
|
||||
indication = rememberRippleIndication(),
|
||||
)
|
||||
.constrainAs(saveButton) {
|
||||
end.linkTo(parent.end)
|
||||
|
|
|
@ -31,8 +31,8 @@ fun IconResource(
|
|||
tint: Color = AmbientContentColor.current
|
||||
) {
|
||||
val deferredResource = loadVectorResource(resourceId)
|
||||
deferredResource.onLoadRun { asset ->
|
||||
Icon(asset = asset, modifier = modifier, tint = tint)
|
||||
deferredResource.onLoadRun { vector ->
|
||||
Icon(imageVector = vector, modifier = modifier, tint = tint)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue