From f7273f6b25ea972449e899e57b34114cdc368d99 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Tue, 14 Nov 2023 09:30:19 +0100 Subject: [PATCH] Fixed alignment for large screens --- .../metropolis/app/screen2/profile/ProfileEditorScreen.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/movie/metropolis/app/screen2/profile/ProfileEditorScreen.kt b/app/src/main/java/movie/metropolis/app/screen2/profile/ProfileEditorScreen.kt index b6484aaa..cd3a816e 100644 --- a/app/src/main/java/movie/metropolis/app/screen2/profile/ProfileEditorScreen.kt +++ b/app/src/main/java/movie/metropolis/app/screen2/profile/ProfileEditorScreen.kt @@ -22,6 +22,7 @@ import movie.style.BackgroundImage import movie.style.CollapsingTopAppBar import movie.style.imagePlaceholder import movie.style.layout.PreviewLayout +import movie.style.layout.alignForLargeScreen import movie.style.modifier.glow import movie.style.rememberImageState import movie.style.theme.Theme @@ -42,6 +43,7 @@ fun ProfileEditorScreen( modifier = modifier, topBar = { CollapsingTopAppBar( + modifier = Modifier.alignForLargeScreen(), title = { Text("You") }, navigationIcon = { IconButton(onClick = onBackClick) { @@ -61,6 +63,7 @@ fun ProfileEditorScreen( BackgroundImage(state = background) Column( modifier = Modifier + .alignForLargeScreen() .nestedScroll(scrollBehavior.nestedScrollConnection) .verticalScroll(rememberScrollState()) .padding(padding)