From b932bbb8709c5a6ed2eb11320d6e0b2dc9fcc5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Wed, 25 Dec 2024 21:43:42 +0800 Subject: [PATCH] perf: add AnimatedVisibility --- app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt b/app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt index cf4d8959f..9830d1556 100644 --- a/app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt +++ b/app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt @@ -1,5 +1,6 @@ package li.songe.gkd.ui.home +import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column @@ -218,7 +219,7 @@ fun useSettingsPage(): ScaffoldExt { ) }) - if (store.toastWhenClick) { + AnimatedVisibility(visible = store.toastWhenClick) { TextSwitch( title = "系统提示", subtitle = "系统样式触发提示",