Skip to content

Commit

Permalink
fix: let FullscreenProvider have an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jan 10, 2025
1 parent e334a9e commit 2e4b810
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package dev.silenium.multimedia.compose.util

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.runtime.*
import androidx.compose.ui.window.WindowPlacement
import androidx.compose.ui.window.WindowState

Expand All @@ -25,4 +22,5 @@ class DesktopFullscreenProvider : FullscreenProvider {
}
}

val LocalFullscreenProvider = staticCompositionLocalOf { DesktopFullscreenProvider() }
val LocalFullscreenProvider: ProvidableCompositionLocal<FullscreenProvider> =
staticCompositionLocalOf { DesktopFullscreenProvider() }

0 comments on commit 2e4b810

Please sign in to comment.