Skip to content

Commit 67985a1

Browse files
committed
example: Fab don't use AnimatedVisibility
1 parent 940303e commit 67985a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

composeApp/src/commonMain/kotlin/UITest.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ fun UITest(
123123
}
124124
},
125125
floatingActionButton = {
126-
AnimatedVisibility(
127-
visible = showFloatingActionButton.value,
128-
enter = fadeIn() + expandHorizontally(),
129-
exit = fadeOut() + shrinkHorizontally()
130-
) {
126+
if (showFloatingActionButton.value) {
131127
FloatingActionButton(
132128
onClick = {
133129
uriHandler.openUri("https://github.com/miuix-kotlin-multiplatform/miuix")

0 commit comments

Comments
 (0)