• tylerwilson

    tylerwilson

    1 year ago
    So, I have built a UI in Compose for Android. It is a collection of vertical scrolling composables in a horizontal scrolling lazyrow. Think a schedule component. Two items:1. The horizontal scroll performance is very bad. I will also try a non-Lazy column. But I am curious if people have pointers on how to profile this? 2. I would like to scroll all vertical components together. Anybody have an example of how to scroll columns together?
    tylerwilson
    Ali Kabiri
    +1
    3 replies
    Copy to Clipboard
  • Sergey Y.

    Sergey Y.

    1 year ago
    Working with custom widgets in Compose, I caught myself with constant
    dp->px
    and
    px->dp
    transformations. Because the Layout system works with
    Dp
    and the Canvas system accepts
    Px
    . Are there any recommendations or best practices on how to reduce the conversion of these units? Reduce repeatability of the code. The more they used in the code, the more it adds noise. 🧵
    Sergey Y.
    Anastasia Rozovskaya
    +1
    5 replies
    Copy to Clipboard
  • v

    VitalNik

    1 year ago
    Hi all! What would be the best approach for deep linking to the content that requires authentication? For example: deep linking to a user's profile page. For now I can manually handle that kind of links, not using
    deepLinks
    list from
    Composable
    at all and it does not seem right. Thanks!
    v
    Colton Idle
    3 replies
    Copy to Clipboard
  • a

    Andrew Leung

    1 year ago
    Hello, is it possible to do function param injection on a Composable using Hilt?
    a
    Ravi
    +2
    19 replies
    Copy to Clipboard
  • Orhan Tozan

    Orhan Tozan

    1 year ago
    Where can we see Compose's supported Kotlin version?
    Orhan Tozan
    Chachako
    4 replies
    Copy to Clipboard
  • Chachako

    Chachako

    1 year ago
    A little curious about the compatibility of compiler plugin, why can’t Kotlin provide a stable compiler plugin interface so that compose doesn’t have to worry about compatibility often
    Chachako
    1 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    I'm trying to recreate this airbnb carousel using Accompanist Pager. My code works/looks pretty much perfectly BUT the pager doesn't have padding on the left side (like the image shows)
    Colton Idle
    cb
    13 replies
    Copy to Clipboard
  • Vsevolod Kaganovych

    Vsevolod Kaganovych

    1 year ago
    Hi. I have a
    TextField
    with label. I want to change the
    fontSize
    of label but leave the behaviour that it becomes smaller when it floats to the top. If I change font size, the animation of decreasing size is gone and label has the same size in focused and unfocused mode. But if I don't set manually
    fontSize
    , everything works as expected. Any suggestions? Code in thread.
    Vsevolod Kaganovych
    2 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    I have an app that has a Home screen, but kicks you to the SignIn screen if userManager.isLoggedIn == false. This works fine, but my bottom nav also works based off of whether or not I'm on the Home screen. Problem: The bottomNav flashes on the screen on a cold start In my test, I made my Home screen a Box(filledMaxSize with background Red), and it does NOT show/flicker when I launch the app. The only thing that flickers onto the screen is the bottomNav. It is very minor but I was wondering if there's something I can do to improve this?
    @Composable
    fun MyBottomNav(navController: NavController, items: List<Screen>, userManager: UserManager
    ) {
        val navBackStackEntry by navController.currentBackStackEntryAsState()
        val currentDestination = navBackStackEntry?.destination
    
        if(currentDestination?.hierarchy?.any { it.route == Screen.Home.route } == true) {
            BottomNavigation(...
    Colton Idle
    Nick
    7 replies
    Copy to Clipboard
  • Florian

    Florian

    1 year ago
    how could I draw only the parts of the text that are on top of the darker, filled background in white and the rest in black?
    Florian
    Colton Idle
    +2
    14 replies
    Copy to Clipboard