Disables top bar reappearance to avoid the feed moving when coming back from page to page.
This commit is contained in:
@@ -34,8 +34,6 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
|||||||
import com.vitorpamplona.amethyst.ui.theme.DividerThickness
|
import com.vitorpamplona.amethyst.ui.theme.DividerThickness
|
||||||
import com.vitorpamplona.myapplication.DisappearingBottomBar
|
import com.vitorpamplona.myapplication.DisappearingBottomBar
|
||||||
import com.vitorpamplona.myapplication.DisappearingFloatingButton
|
import com.vitorpamplona.myapplication.DisappearingFloatingButton
|
||||||
import com.vitorpamplona.myapplication.DisappearingTopBar
|
|
||||||
import com.vitorpamplona.myapplication.enterAlwaysScrollBehavior
|
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ fun DisappearingTopBar(
|
|||||||
scrollBehavior: CustomEnterAlwaysScrollBehavior,
|
scrollBehavior: CustomEnterAlwaysScrollBehavior,
|
||||||
content: @Composable (ColumnScope.() -> Unit),
|
content: @Composable (ColumnScope.() -> Unit),
|
||||||
) {
|
) {
|
||||||
ResetDisappearingOnResume(scrollBehavior)
|
// ResetDisappearingOnResume(scrollBehavior)
|
||||||
|
|
||||||
// Set up support for resizing the top app bar when vertically dragging the bar itself.
|
// Set up support for resizing the top app bar when vertically dragging the bar itself.
|
||||||
val appBarDragModifier =
|
val appBarDragModifier =
|
||||||
|
|||||||
Reference in New Issue
Block a user