TopAppBar
Material Design small top app bar.
Top app bars display information and actions at the top of a screen.
This small TopAppBar has slots for a title, navigation icon, and actions.
A simple top app bar looks like:
Parameters
the title to be displayed in the top app bar
the Modifier to be applied to this top app bar
the navigation icon displayed at the start of the top app bar. This should typically be an IconButton or IconToggleButton.
the actions displayed at the end of the top app bar. This should typically be IconButtons. The default layout here is a Row, so icons inside will be placed horizontally.
this app bar's height. When a specified scrollBehavior causes the app bar to collapse or expand, this value will represent the maximum height that the bar will be allowed to expand. This value must be specified and finite, otherwise it will be ignored and replaced with TopAppBarDefaults.TopAppBarExpandedHeight.
a window insets that app bar will respect.
TopAppBarColors that will be used to resolve the colors used for this top app bar in different states. See TopAppBarDefaults.topAppBarColors.
a TopAppBarScrollBehavior which holds various offset values that will be applied by this top app bar to set up its height and colors. A scroll behavior is designed to work in conjunction with a scrolled content to change the top app bar appearance as the content scrolls. See TopAppBarScrollBehavior.nestedScrollConnection.