Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Replaced TopAppBar with CenterAlignedTopAppBar, Fix issue #857 App ti…
Browse files Browse the repository at this point in the history
…tle moves (#930)
  • Loading branch information
sahilsk3333 authored Nov 16, 2023
1 parent 78cad7b commit 35d0b39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
Expand All @@ -38,7 +39,6 @@ import androidx.compose.material3.Scaffold
import androidx.compose.material3.Tab
import androidx.compose.material3.TabRow
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.TopAppBarScrollBehavior
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -169,7 +169,7 @@ private fun HomeTopAppBar(
scrollBehavior: TopAppBarScrollBehavior,
modifier: Modifier = Modifier
) {
TopAppBar(
CenterAlignedTopAppBar(
title = {
Row(
Modifier.fillMaxWidth(),
Expand Down

0 comments on commit 35d0b39

Please sign in to comment.