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

Update HomeScreen.kt #978

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
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 @@ -169,12 +169,12 @@ private fun HomeTopAppBar(
CenterAlignedTopAppBar(
title = {
Row(
Modifier.fillMaxWidth(),
Modifier,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can delete this line since the default is Modifier. In fact, you can probably just remove the entire row since an Arrangement.Center doesn't do anything if it's only matching the child's size. Can you try deleting the row and just having the text be the title to verify that looks right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can delete this line since the default is Modifier. In fact, you can probably just remove the entire row since an Arrangement.Center doesn't do anything if it's only matching the child's size. Can you try deleting the row and just having the text be the title to verify that looks right?

yes sir you are right it still working same.

horizontalArrangement = Arrangement.Center,
) {
Text(
text = stringResource(id = R.string.app_name),
style = MaterialTheme.typography.displaySmall
style = MaterialTheme.typography.headlineSmall
)
}
},
Expand Down
Loading