{"repo":"radusalagean/info-bar-compose","free":true,"listed":false,"github":"https://github.com/radusalagean/info-bar-compose","clone":"git clone https://github.com/radusalagean/info-bar-compose.git","description":"An Android Jetpack Compose library for displaying on-screen messages. (simplified Snackbar alternative)","language":"Kotlin","stars":130,"topics":["android","kotlin","material-design","android-ui","android-library","jetpack-compose","snackbar"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"InfoBar Compose An Android Jetpack Compose library for displaying on-screen messages . Unlike the built-in Snackbar from the Compose Material library, the InfoBar can be properly displayed without additional requirements , like Scaffold , SnackbarHost / SnackbarHostState , or manually starting new coroutines to show the on-screen message. Although the InfoBar composable is inspired by the Snackbar, it does not aim to entirely copy its design or behavior. Test drive this library, demo app available on Google Play! Usage Include the library in your module-level build.gradle file: The simplest configuration of an InfoBar is showcased below: A complete working example : InfoBar types The InfoBar composable has 2 signatures: - One for a standard version, which already has a layout defined, inspired by the Material design Snackbar . This composable has multiple parameters exposed, allowing for increased customizability of the predefined standard layout. - One for a generic version, allowing to pass a composable layout defined in the client app. Configuration parameters InfoBar composable: S G --- --- Available in the Standard InfoBar Available in the Generic InfoBar Parameter Description Type S G --- --- --- --- --- modifier Modifier to be applied to the InfoBar surface Modifier ✔️ ✔️ offeredMessage InfoBarMessage or BaseInfoBarMessage subclass instance, describing the message that should be displayed InfoBarMessage? ✔️ ✔️ elevation Elevation to be applied to the InfoBar surface Dp","default_branch":null,"files":null,"tree":[],"storefront":"/r/radusalagean","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/radusalagean/info-bar-compose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}