• a

    Arpit Shukla

    10 months ago
    How bad is it to send a
    Flow
    from one composable to another? (The flow is created and its value is modified outside composition)
    a
    1 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    10 months ago
    I'm having a hard time aligning bottom navigation items. The icons stick to the top, no matter how I modify items or icons. More in thread.
    Mehdi Haghgoo
    a
    9 replies
    Copy to Clipboard
  • iamthevoid

    iamthevoid

    10 months ago
    I want to show 
    ModalBottomSheetLayout
     on user action. I have a component in app, that called 
    ActionSheet
     and wrap 
    ModalBottomSheetLayout
    . It pass 
    ModalBottomSheetState
     from outside by composable function params, other params for 
    ModalBottomSheetLayout
     assigns under the hood [thread]. Also there is 
    MutableStateFlow
     [somewhere in app, doesnt matter], that typed with 
    ActionSheetCommand
     type. When user do the action then concrete implementation of 
    ActionSheetCommand
     emits through the MutableStateFlow[thread]. 
    ActionSheetWrapper
     [thread] - another wrapper around 
    ActionSheet
    , collect these emits and show ActionSheet(
    ModalBottomSheetLayout
    ) using state, that initialized in 
    ActionSheetWrapper
    . Somewhy 
    ModalBottomSheetLayout
     opens only on first emit. All next emits even not printed inside
    emit
    function of collector. Why can it be? Looks like
    emit
    function in collector somehow deadlock queue and next emits just not pass through
    MutableStateFlow
    .
    iamthevoid
    9 replies
    Copy to Clipboard
  • tylerwilson

    tylerwilson

    10 months ago
    I am constructing a UI with Compose, using .dp as units. And I am also using detectTapGestures / onTap to get an offset, but it appears to be in pixels, not dp. Is there a Compose way to get the dp value from the offset value? Thank you!
    tylerwilson
    Csaba Kozák
    +1
    5 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    10 months ago
    I have created a state holder containing some states of my app, e.g. RECORDING, PLAYING, etc. But, changes I make to the state do not invoke recomposition. Continued...
    Mehdi Haghgoo
    2 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    10 months ago
    Why isn't the source code for Compose runtime 1.1.0-beta02 (like remember()) available in Android Studio? I tried downloading using the Download Sources button, but failed.
    Mehdi Haghgoo
    1 replies
    Copy to Clipboard
  • a

    Arjun Achatz

    10 months ago
    Question : I'm using compose and listening to the interactionSource in my button to change colors on the on pressed. However if I tap gently I get a ripple, and if I press a little harder I get the on pressed state change ... What's with this lag ? Is this a known bug or just how compose works ?
    a
    l
    15 replies
    Copy to Clipboard
  • a

    alorma

    10 months ago
    Some days ago our team was playing around with tests and I found a potential problem on using
    testTag
    as identifiers for composables, as those use String. And as we have it harcoded all around the composables (like
    Modifier.testTag("RowItem")
    ) and then use
    "RowItem"
    on tests... with possible issue when renaming one or other... I've played a bit with it and came up for possible solution on not duplicating the strings... Would these make sense on compose?
    a
    maciejciemiega
    5 replies
    Copy to Clipboard
  • r

    Roberto Leinardi

    10 months ago
    So, how bad would it be to persist the same instance of
    ScaffoldState
    across the entire application (e.g. via singleton in Hilt)? I have the feeling that would be really bad but I can't think of another way to solve this issue: https://stackoverflow.com/questions/69902988/how-to-show-snackbars-from-composables-or-viewmodels-on-a-multi-module-single-a
    r
    t
    16 replies
    Copy to Clipboard
  • Steffen Funke

    Steffen Funke

    10 months ago
    I have a plain old
    BottomSheetDialogFragment
    (can’t change that to Compose unfortunately), which contains a
    LazyColumn
    . I am kind of stuck figuring out, why the scrolling does not work as expected, e.g. why the
    BottomSheetDialogFragment
    intercepts the
    LazyColumn
    scrolling. Is there any flag / setting / modifier for
    LazyColumn
    regarding nested scrolling, that I am missing? Expected behaviour would be that I can drag the Sheet down as soon as I have scrolled up completely, but not before. Cannot convert it to a
    Column
    though, since the items need to be lazy loaded. 👉 Video attached in 🧵. Any ideas welcomed. Thank you!
    Steffen Funke
    Will Shelor
    17 replies
    Copy to Clipboard