Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ compose-material-icons-extended = "1.7.3"
compose-material3 = "1.9.0"
compose = "1.10.2"
glance = "1.2.0-rc01"
koin = "4.1.1"
koin = "4.2.0"
kotlin = "2.3.20"
kotlinx-coroutines = "1.10.2"
kotlinx-datetime = "0.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ package de.dbauer.expensetracker.shared.ui.theme
import androidx.compose.runtime.Composable
import de.dbauer.expensetracker.shared.di.previewModule
import de.dbauer.expensetracker.shared.ui.ThemeMode
import org.koin.compose.KoinApplication
import org.koin.compose.KoinApplicationPreview

@Composable
fun ExpenseTrackerThemePreview(
themeMode: ThemeMode = ThemeMode.FollowSystem,
dynamicColor: Boolean = true,
content: @Composable () -> Unit,
) {
KoinApplication(application = {
// your preview config here
KoinApplicationPreview(application = {
modules(previewModule)
}) {
ExpenseTrackerTheme(
Expand Down