Skip to content

Read and update data using Room #176

@Novoy

Description

@Novoy

name: Read and update data using Room issue template.
about: Issue template for Read and update data using Room
title: Read and update data using Room
labels: ''
assignees: ''


URL of codelab:

http://xn--developer-pd4hpq.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%3Fhl%3Dja&hl=ja#5

Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found?

file
ItemDetailsScreen.kt

Describe the problem

On colling function ItemDetailsBody, the text in above URL indicates

ItemDetailsBody(
itemUiState = uiState.value, // <---
onSellItem = { },
onDelete = { },
modifier = modifier.padding(innerPadding)
)

However, "itemUiState" argument is perhaps invalid.
The code indicated below is the sucess case

ItemDetailsBody(
//itemUiState = uiState.value,
itemDetailsUiState = uiState.value, // <---
onSellItem = { },
onDelete = { },
modifier = Modifier
:
)

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
Android Studio version: Ladybug Feature Drop 2024.2.2
API version of the emulator: 35

Additional information
Include screenshots if they would be useful in clarifying the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions