mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 11:47:04 +05:30
all: override LocalUriHandler
with UrlLauncher
This commit is contained in:
parent
26a96d9116
commit
9d538b4600
2 changed files with 10 additions and 2 deletions
|
@ -9,6 +9,7 @@ import androidx.compose.runtime.remember
|
|||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalUriHandler
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.WindowPlacement
|
||||
import androidx.compose.ui.window.WindowPosition
|
||||
|
@ -58,7 +59,10 @@ fun main() = application {
|
|||
undecorated = true,
|
||||
onCloseRequest = ::exitApplication,
|
||||
) {
|
||||
LobstersTheme(darkTheme = false) {
|
||||
LobstersTheme(
|
||||
darkTheme = false,
|
||||
providedValues = arrayOf(LocalUriHandler provides urlLauncher),
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue