# Show BottomBar conditionally in Compose

DevFeed: [Show BottomBar conditionally in Compose](<https://devfeed.tech/articles/show-bottombar-conditionally-in-compose-22663.md>)

Original publisher: [Read original article](<https://www.valueof.io/blog/should-show-bottombar-conditionally-in-jetpack-compose>)

Author: James Shvarts

Published: 2022-11-08T21:38:12Z

Content type: tutorial

Language: en

Sources: [Android Blog - Mobile Dev Notes](<https://devfeed.tech/sources/android-blog-mobile-dev-notes.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [bottom-navigation](<https://devfeed.tech/topics/bottom-navigation.md>), [jetpack-navigation](<https://devfeed.tech/topics/jetpack-navigation.md>)

Tags: [bottom-navigation](<https://devfeed.tech/tags/bottom-navigation.md>), [compose](<https://devfeed.tech/tags/compose.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [route](<https://devfeed.tech/tags/route.md>)

## AI overview

The Jetpack Compose example hides the bottom bar on selected routes by checking the current route against an enum, with a custom AppState handling navigation and visibility. It uses a separate navigation graph for each tab and demonstrates navigating from a Home list to an item detail screen, whose route omits the bar. The sample leaves out Google's animated bottom bar and focuses on the navigation and conditional display setup. The excerpt mentions message handling and a failure-triggered case, but omits the implementation details.

## Source excerpt

Conditionally show BottomBar with bottom navigation in Jetpack Compose