You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a StackOverflow question about this issue?
I have searched StackOverflow
What happened?
In the source code we see a clear intention that the TopAppBar is not displayed in those destinations that do not belong to TopLevelDestination:
// Show the top app bar on top level destinations.
val destination = appState.currentTopLevelDestination
var shouldShowTopAppBar = false
if (destination != null) {
shouldShowTopAppBar = true
NiaTopAppBar(
titleRes = destination.titleTextId,
navigationIcon = NiaIcons.Search,
navigationIconContentDescription = stringResource(
id = settingsR.string.feature_settings_top_app_bar_navigation_icon_description,
),
What is the reason for this being mandatory and how can I change it?
In my case, I want to display content from the main menu of the application, and I need that content to have the TopAppBar.
I show two screenshots.
In this second screenshot, when I scroll up, the text blends in with the device bar showing the time:
Code:
@ExperimentalFoundationApi
@Composable
fun FileScreen(
onFileClick: (String) -> Unit,
modifier: Modifier = Modifier,
fileName: String?,
viewModel: FileViewModel = hiltViewModel(),
) {
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
FileScreen(modifier = modifier, uiState = uiState)
}
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
In the source code we see a clear intention that the TopAppBar is not displayed in those destinations that do not belong to
TopLevelDestination
:What is the reason for this being mandatory and how can I change it?
In my case, I want to display content from the main menu of the application, and I need that content to have the TopAppBar.
I show two screenshots.
In this second screenshot, when I scroll up, the text blends in with the device bar showing the time:
Code:
Relevant logcat output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: