Guilherme Delgado
12/13/2022, 10:54 PMTitleInsetWithoutIcon
? I could use:
* This TopAppBar has no pre-defined slots for content, allowing you to customize the layout of
* content inside.
@Composable
fun TopAppBar(
modifier: Modifier = Modifier,
backgroundColor: Color = MaterialTheme.colors.primarySurface,
contentColor: Color = contentColorFor(backgroundColor),
elevation: Dp = AppBarDefaults.TopAppBarElevation,
contentPadding: PaddingValues = AppBarDefaults.ContentPadding,
content: @Composable RowScope.() -> Unit
)
But then I’ll have to replicate mostly everything. Just want to get rid of that padding to center a text. Other option would be to add the same padding to the end
. But well, just asking 🙂