• Kareem Waleed

    Kareem Waleed

    1 year ago
    I have a method with the signature :
    fun map(name: String): @Composable ()->Unit
    . I need to generate this function using
    KotlinPoet
    but I can’t add
    @Composable
    to the return type, any clues how to do it ?
    Kareem Waleed
    j
    8 replies
    Copy to Clipboard
  • Artur Schwarz

    Artur Schwarz

    1 year ago
    Does retaining a scroll position of a LazyRow via LazyListState work without compose navigation?
    Artur Schwarz
    Andrey Kulikov
    13 replies
    Copy to Clipboard
  • izyaboi

    izyaboi

    1 year ago
    why its not possible to preview a AlertDialog? is there a way to do it? i use for preview the beta09 in android studio bumblebee canary 3? or is there a bug?
    izyaboi
    1 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    Do these live templates work for anyone? Just tried the
    paddp
    and
    weight
    with no luck. Curious if there's something I have to enable or something? Using latest bumblebee
    Colton Idle
    1 replies
    Copy to Clipboard
  • Daniel Candeias

    Daniel Candeias

    1 year ago
    Hello! Using
    detectTapGestures
    how can i disallow user to pan/translate the content out of its bounding box? I have scale working with translations as well but the user is able to translate the image out of the screen. How can I set some limits for translation?
    Daniel Candeias
    Ravi
    +1
    5 replies
    Copy to Clipboard
  • Artur Schwarz

    Artur Schwarz

    1 year ago
    Is this a bug? Watch the scrollState.value go from 864 to 0 when the Row gets composed twice (for no obvious reason). This leads to the scroll position not being retained.
    Artur Schwarz
    Andrey Kulikov
    12 replies
    Copy to Clipboard
  • Chris Fillmore

    Chris Fillmore

    1 year ago
    Hi everyone, happy Monday. Is there a best practice on using Custom Tabs with Compose Navigation? I currently have something like the following:
    composable(...) {
      val context = LocalContext.current
      SideEffect {
        CustomTabsIntent.Builder().build().launchUrl(context, myUrl)
      }
    }
    I’ll be expanding on this a bit to warm up the browser, etc, but is this basically what I need to do? Call
    launchUrl()
    from inside the Composable?
    Chris Fillmore
    i
    +1
    17 replies
    Copy to Clipboard
  • s

    smallshen

    1 year ago
    The state is changing, but the recomposer doesn't update the TextNode, any solutions?
    s
    Adam Powell
    4 replies
    Copy to Clipboard
  • n

    nglauber

    1 year ago
    Having in mind a form with 10 fields (for instance) of different types (text, radio button, checkbox, combobox, … ). What do you folks think is the best approach?1️⃣ Expose one Flow/LiveData for each field in ViewModel and collect/observe them individually in the screen.2️⃣ Expose one
    State
    for each field in ViewModel and simply access them from the screen.3️⃣ Encapsulate these 10 fields in a data class, expose one single Flow/LiveData and each “setter” create a
    copy
    of this data class instance to update the state.4️⃣ Encapsulate these 10 fields in a data class, each field is a state, ViewModel has an instance of this class and you simply access it from the screen.5️⃣ Other (please explain)
    n
    Colton Idle
    +2
    5 replies
    Copy to Clipboard
  • a

    Abhishek Dewan

    1 year ago
    I am trying to add a centered loading indicator inside of LazyColumn like shown in the text snippets however, my loading view is never centered. I am guessing it has to do something with how the children of the lazy column are measured. Is there a way to have the loading view take up the rest of the screen so that I can center the circular progress indicator?
    a
    Colton Idle
    4 replies
    Copy to Clipboard