fix: Material 组件更新导致的显示传参不一致

This commit is contained in:
Super12138 2025-04-26 20:49:45 +08:00
parent 0ef17616d1
commit 64c2cc13c8
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ android {
applicationId = "cn.super12138.todo"
minSdk = 24
targetSdk = 36
versionCode = 634
versionCode = 647
versionName = "2.1.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

View file

@ -150,7 +150,7 @@ fun TodoEditorPage(
)
},
modifier = Modifier.sharedElement(
state = rememberSharedContentState(key = Constants.KEY_TODO_FAB_TRANSITION),
sharedContentState = rememberSharedContentState(key = Constants.KEY_TODO_FAB_TRANSITION),
animatedVisibilityScope = animatedVisibilityScope
)
)

View file

@ -116,7 +116,7 @@ fun MainPage(
toTodoEditPage()
},
modifier = Modifier.sharedElement(
state = rememberSharedContentState(key = Constants.KEY_TODO_FAB_TRANSITION),
sharedContentState = rememberSharedContentState(key = Constants.KEY_TODO_FAB_TRANSITION),
animatedVisibilityScope = animatedVisibilityScope
)
)