• Kulwinder Singh

    Kulwinder Singh

    1 year ago
    Hi, is anything similar in compose like Flutter Navigation ? for example opening different Scaffolds directly ?
    Kulwinder Singh
    John O'Reilly
    +2
    6 replies
    Copy to Clipboard
  • Adriano Celentano

    Adriano Celentano

    1 year ago
    im struggling a bit to understand subcomposeLayout, someone has a super simple explanation / example somewhere ?
    Adriano Celentano
    a
    +1
    4 replies
    Copy to Clipboard
  • Kevin Aude

    Kevin Aude

    1 year ago
    I’m a bit lost with navigation in compose, I based my code of the Owl example but seem to have miss something. Any help would be appreciated. Code in thread
    Kevin Aude
    Vivek Sharma
    +1
    9 replies
    Copy to Clipboard
  • Halil Ozercan

    Halil Ozercan

    1 year ago
    forgive my sarcasm but do I need a PhD to understand how to implement a custom gesture detector? It's nice that there is a selection of gesture detectors pre-defined under
    pointerInput
    but when I tried implementing my own, I got totally lost. My first try was a quick failure because predefined detectors consume the events so they cannot be used together. On my second attempt, I tried to write my own detector with lower level
    await
    calls and got confused so hard. Is there a documentation that would shine even a little light on this API?
    Halil Ozercan
    d
    +2
    17 replies
    Copy to Clipboard
  • zhuinden

    zhuinden

    1 year ago
    hey, i'm looking for help regarding custom animations using Compose.
    zhuinden
    Zach Klippenstein (he/him) [MOD]
    +3
    63 replies
    Copy to Clipboard
  • Piotr Prus

    Piotr Prus

    1 year ago
    Guys, I encountered really big issue with compose view on Huawei devices (with Google services). The compose library is working very slow or even not working in some cases at all. For quick reproduction, you can download the
    Crane
    app sample, provide your google map api and make only one small change, enable gestures on map. The map will not update on your gestures until you tap on button or any other interactive element on screen. Anyone encounter such behavior? I am building the mapApp and this behaviour occurs only on Huawei devices.
    Piotr Prus
    jim
    2 replies
    Copy to Clipboard
  • Zhelyazko Atanasov

    Zhelyazko Atanasov

    1 year ago
    Does anybody know what's the difference between having a
    Modifier
    passed in as an argument and then adding more modifiers on top of it, e.g.:
    fun Info(modifier: Modifier) {
        Text(modifier.size(16.dp)
    }
    Versus having the same case, but using
    then
    to merge the 2 modifiers:
    fun Info(modifier: Modifier) {
        Text(modifier then Modifier.size(16.dp)
    }
    Zhelyazko Atanasov
    Adam Powell
    +1
    4 replies
    Copy to Clipboard
  • d

    Daniel

    1 year ago
    I needed a [Material ExposedDropdownMenu](https://material.io/components/menus#exposed-dropdown-menu), so I built one by combining an OutlinedTextField and a DropdownMenu. What I've built works, but feels a little hacky. I ended up needing to use SubcomposeLayout and MutableInteractionSource for the first time. Does that sound reasonable? The code: https://gist.github.com/danielzfranklin/6af017eec110dee4980167bb833077ef I use SubcomposeLayout because DropdownMenu opens a popup outside the normal flow, so if I want it to be properly positioned and sized I need to know the size of the field. I use MutableInteractionSource to make the text field focused when the menu is expanded, and visa-versa.
    d
    a
    +1
    10 replies
    Copy to Clipboard
  • FunkyMuse

    FunkyMuse

    1 year ago
    java.lang.UnsupportedOperationException: Arrays don't support default values. Does anyone know why I can't pass StringArrayType in compose navigation?
    FunkyMuse
    i
    +1
    33 replies
    Copy to Clipboard
  • j

    Jan Skrasek

    1 year ago
    I'm trying to create a button with insets - i.e. a part with react to the click but it is outside and doesn't draw any ripple effect outside the button. How can I do that?
    j
    TheMrCodes
    +1
    3 replies
    Copy to Clipboard