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

Replaced TopAppBar with CenterAlignedTopAppBar, Fix issue #857 #930

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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