• Florian

    Florian

    1 year ago
    This is how I send a result from an edit screen back to the parent screen on the backstack. But I would like to receive this event only once (like it is the case for the old fragment result API). Is there a way to do that?
    composable(TodoScreen.TodoList.name) { navBackStackEntry ->
                TodoListScreen(
                    [...]
                    addEditResult = navBackStackEntry.savedStateHandle.get<Int>(KEY_ADD_EDIT_RESULT)
                )
            }
    As far as I see, I will always receive this result on every recomposition (like when the screen is rotated) causing to show feedback snackbars again.
    Florian
    i
    21 replies
    Copy to Clipboard
  • Florian

    Florian

    1 year ago
    Does
    LazyColumn
    not yet keep scroll position after config changes or is my setup just wrong?
    Florian
    Alexander Black
    +2
    6 replies
    Copy to Clipboard
  • Alexander Black

    Alexander Black

    1 year ago
    is there any way to remove the default padding from OutlinedTextField? Or do I need to make a custom text field to do that?
    Alexander Black
    Colton Idle
    2 replies
    Copy to Clipboard
  • j

    Jason Inbody

    1 year ago
    public void onBraintreeSubmit(View v) {
      DropInRequest dropInRequest = new DropInRequest()
        .tokenizationKey("sandbox_************");
      startActivityForResult(dropInRequest.getIntent(this), REQUEST_CODE);
    }
    j
    Albert Chang
    11 replies
    Copy to Clipboard
  • j

    Jason Inbody

    1 year ago
    How do I read data from an
    rememberLauncherForActivityResult
    ?
    j
    3 replies
    Copy to Clipboard
  • p

    PHondogo

    1 year ago
    Does MutableState.value supposed to be assigned only in UI thread?
    p
    1 replies
    Copy to Clipboard
  • c

    CLOVIS

    1 year ago
    React doesn't allow to use hooks conditionally (differently each render):
    val Component = fc<RProps> {
    if (…)
    useRef() // big no no
    }
    Is that an issue Compose shares? Or is this safe?
    @Composable
    fun Component() {
    if (…)
    val a by remember { … }
    }
    c
    Andrey Kulikov
    +1
    5 replies
    Copy to Clipboard
  • myanmarking

    myanmarking

    1 year ago
    what is this error 😛 The compose compiler plugin you are using (version 1.0.1) expects a minimum runtime version of 1.0.1
    myanmarking
    1 replies
    Copy to Clipboard
  • c

    curtjrees

    1 year ago
    How would be the best/ideal way to use the width of a Composable while inside a LazyList? Use case is to get the width of a Image so it can be used to provide a width for the image url to be the correct size But anything with SubcomposeLayout won’t work in a LazyList, right?
    c
    1 replies
    Copy to Clipboard
  • Florian

    Florian

    1 year ago
    Is there an easy way to animate the Checkbox checked-state in Compose so it doesn't look so abrupt?
    Florian
    t
    +3
    14 replies
    Copy to Clipboard