Flashbar

Flashbar is a custom snackbar library for Android Jetpack Compose, ? designed to make displaying stylish and customizable snackbars a breeze while supporting the Material 3 design system. ?

Download ?

License

Gradle ?

Add the dependency below to your module’s build.gradle or build.gradle.kts file:

dependencies {
    implementation "com.github.airalpha:flashbar:1.0.1"
}

Add a repository in your settings.gradle file:

dependencyResolutionManagement {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Usage Example

// In your Compose UI code
Scaffold(
    snackbarHost = { FlashbarHost() }
) {
    // Your Compose content here
}

// Displaying a success message
Flash.success("Welcome to flashbar")
// Displaying a error message
Flash.error(Exception("The user is not connected"))

Like what you see? ?

⭐ Give a star to this repository.

License

Designed and developed by 2023 airalpha (Idrice A.)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

GitHub

View Github