Skip to content

Commit

Permalink
perf: add AnimatedVisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 25, 2024
1 parent db0565c commit b932bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/ui/home/SettingsPage.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -218,7 +219,7 @@ fun useSettingsPage(): ScaffoldExt {
)
})

if (store.toastWhenClick) {
AnimatedVisibility(visible = store.toastWhenClick) {
TextSwitch(
title = "系统提示",
subtitle = "系统样式触发提示",
Expand Down

0 comments on commit b932bbb

Please sign in to comment.