Karthick
02/18/2021, 9:21 AMAppBar(centerTitle: true, title: Text("Title"))
Albert Chang
02/18/2021, 9:31 AMTopAppBar(
title = {
Text(
text = "Title",
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Center
)
}
)
Karthick
02/18/2021, 10:33 AMAlbert Chang
02/18/2021, 11:51 AMfor custom use cases such as horizontally centering the title, use the other TopAppBar overload for a generic TopAppBar with no restriction on content.