Giter Site home page Giter Site logo

gigamole / composescrollbars Goto Github PK

View Code? Open in Web Editor NEW
100.0 1.0 4.0 18.05 MB

ComposeScrollbars: Polish your Android Compose UI with advanced scrollbars

Home Page: https://www.linkedin.com/in/gigamole/

License: MIT License

Kotlin 100.00%
android android-compose android-library android-ui compose design-tools jetpack-compose kotlin kotlin-android sample-app scroll scrollbar scrollbars

composescrollbars's Issues

Can't drag

Why this scrollbar can't be dragged? Is it only used to display scroll progress?

Publish for compose multiplatform

It looks like at the moment this library is only published as an android library, not for compose multiplatform, right? I took a brief look at the imports and did not see any native android imports, so it would be nice to make this library available on other platforms as well.

One benefit I would like to highlight even for android only users is that this would enable publishing the sample as a compose web app, so you can try it right in your browser

How to use with `LazyList`?

The documentation just states "Just place it on top of your scrollable content.". But if I use it like this:

@Composable
private fun FeedList() {
    val listState = rememberLazyListState()
    
    Row {
        Scrollbars(…)
        LazyColumn(state = listState, modifier = Modifier.weight(1f).fillMaxSize()) { … }
    }
}

The LazyColumn is not displayed: it has a width of 0. If I remove the Row, then the scrollbar isn't displayed.

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.