Git Product home page Git Product logo

speeddialfloatingactionbutton's Introduction

Moin folks 👋, I'm Alex

Employeed as senior developer mobile at Dataport AöR and also working as freelancer android developer

Ch4rl3x's GitHub stats

Projects

Name    Stars    Description              MavenCentral             
Kotlin Multiplatform
settings-multiplatform GitHub Repo stars A Kotlin Multiplatform AndroidX DataStore Maven Central
Jetpack Compose
SpeedDialFloatingActionButton GitHub Repo stars SpeedDial / MultiSelection - FloatingActionButton Maven Central
RevealSwipe GitHub Repo stars Compose RevealSwipe Maven Central
BottomDrawerScaffold GitHub Repo stars Compose BottomDrawerScaffold Maven Central
HtmlText GitHub Repo stars Compose HtmlText Maven Central
settings-compose GitHub Repo stars Settings Compose Maven Central
compose-cache GitHub Repo stars Compose Cache Maven Central
textfield-unit GitHub Repo stars TextField with unit Maven Central
Android
settings GitHub Repo stars A simplified use of SharedPreferences Maven Central
billing-suspend GitHub Repo stars Suspendable Helper for access BillingClient. It also includes a client-side token validation, if there is not server available Maven Central

speeddialfloatingactionbutton's People

Contributors

ch4rl3x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kalinjul xing1p

speeddialfloatingactionbutton's Issues

Problem with snackbar location

Thanks for a very good component!

I tried the M3 version, and unfortunately there is a problem with snackbars. The are shown above all the (invisible) sub FABs (in the middle of the screen, vertically) instead of above the navigation bar as it should.

Any idea how to fix this?

Here is some code to reproduce the problem:

val snackbarHostState = remember { SnackbarHostState() }
val snackbarCoroutineScope = rememberCoroutineScope()
val fabState = rememberSpeedDialFloatingActionButtonState()
Scaffold(
    bottomBar = {
        BottomAppBar(
            actions = {},
            floatingActionButton = {
                BottomAppBarSpeedDialFloatingActionButton(
                    state = fabState
                ) {
                    Icon(Icons.Default.Add, contentDescription = null)
                }
            }
        )
    },
    floatingActionButton = {
        SubSpeedDialFloatingActionButtons(
            state = fabState,
            items = listOf(
                FloatingActionButtonItem(
                    icon = Icons.Default.Person,
                    label = "Person"
                ) {},
                FloatingActionButtonItem(
                    icon = Icons.Default.Home,
                    label = "Home"
                ) {}
            )
        )
    },
    snackbarHost = { SnackbarHost(snackbarHostState) },
) {
        Button(onClick = { snackbarCoroutineScope.launch {  snackbarHostState.showSnackbar("Snackbar") } }) {
            Text("Show snackbar")
        }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.