• pawegio

    pawegio

    1 year ago
    I’m used to extracting navigation logic from android layer (hiding the impl details behind the interface), but I decided to give compose navigation a try. That involves tight coupling of navigation with the ui, triggering navigation from callbacks inside composable functions. I’m wondering if effects such as
    onDispose()
    are safe to perform such action or it’s rather considered as an anti-pattern/might lead to unexpected state (is there a risk of recomposition causing not intended navigation?). See example code below (where
    isInProgress
    is a part of collected state
    false
    by default):
    if (isInProgress) {
        CircularProgressIndicator()
        onDispose {
            navigateToDone()
        }
    }
    pawegio
    jim
    6 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    We’re getting this non-sensical crash. Just a wild guess that this is compose-related. Any ideas what could be the cause? This doesn’t crash on my environment, but it does from another computer.
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.SomeScreen.SomeScreenKt$SectionTitle$1" on path: DexPathList[[zip
    a
    jim
    2 replies
    Copy to Clipboard
  • Ian Warwick

    Ian Warwick

    1 year ago
    Morning composers, I got a
    Box
    in a
    Box
    and I want to offset the inner box by
    x
    dps from the left, I tried left padding and offset though nothing seems to work
    Box(Modifier.background(Color.Red).width(128.dp).height(128.dp)) {
            Box(Modifier.background(Color.Green).width(32.dp).height(128.dp)) {
    
            }
        }
    I want the inner box to have some space on the left hand size that I can specify hope that makes sense
    Ian Warwick
    a
    21 replies
    Copy to Clipboard
  • vipulasri

    vipulasri

    1 year ago
    Is compose compatible with android wear?
    vipulasri
    Bryan Herbst
    2 replies
    Copy to Clipboard
  • Vivek Sharma

    Vivek Sharma

    1 year ago
    How can we make date picker in compose, Is there a way to do it?
    Vivek Sharma
    l
    +1
    3 replies
    Copy to Clipboard
  • l

    Logan Knight

    1 year ago
    From the docs over the
    Surface
    dec:
    Elevation: Surface elevates its children on the Z axis by elevation pixels, and draws the appropriate shadow.
    Does that mean that the
    Surface
    sets the
    Modifier.zIndex()
    value of all it's children?
    l
    Andrey Kulikov
    2 replies
    Copy to Clipboard
  • Jason Ankers

    Jason Ankers

    1 year ago
    Does State/SharedFlow work well in compose? Does anyone have any experience using these over LiveData in a compose app?
    Jason Ankers
    1 replies
    Copy to Clipboard
  • p

    Pablo Costa

    1 year ago
    Hi there! 👋 This maybe an x-y question but... If I have this:
    Modifier
        .fillMaxWidth()
        .padding(horizontal = 16.dp, vertical = 8.dp)
    And want to keep the 
    fillMaxWidth
     down the chain but remove the padding, is that possible? Thanks!!!
    p
    jim
    2 replies
    Copy to Clipboard
  • a

    alorma

    1 year ago
    Hi. Just a dummy question... is there any tutorial on how to convert a compose projecte to a compose-desktop one?
    a
    olonho
    +1
    10 replies
    Copy to Clipboard
  • z

    zoha131

    1 year ago
    Finally I have completed my Final Year Project using Jetpack Compose UI only.🥳 Thank you so much for helping me throughout the projects.
    z
    1 replies
    Copy to Clipboard