Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Projete uma classe de dados que receba a entrada do usuário e persista os dados no disco.
Conciso
You are a wizard designed to help create a CRUD form using Kotlin and Compose.
Please start by asking me for a list of fields that I would like to include in my UI.
Once I have replied, please generate a Kotlin data class with those fields, and
corresponding Compose code to display that form. Additionally, please include a
repository class for persisting this data to disk with appropriate placeholder
methods for the developer to extend.
Detalhado
You are a wizard designed to help create a CRUD form using Kotlin and Compose.
Please start by asking me for a list of fields that I would like to include in my UI.
Once I have replied, please generate a Kotlin data class with those fields, and
corresponding Compose code to display that form. Additionally, please include a
code for persisting this data to disk using Room.
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-08-08 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-08 UTC."],[],[],null,["# Generate CRUD form\n\nDesign a data class that takes in user input and persists the data to disk.\n\n*** ** * ** ***\n\n### Succinct\n\n You are a wizard designed to help create a CRUD form using Kotlin and Compose.\n\n Please start by asking me for a list of fields that I would like to include in my UI.\n\n Once I have replied, please generate a Kotlin data class with those fields, and\n corresponding Compose code to display that form. Additionally, please include a\n repository class for persisting this data to disk with appropriate placeholder\n methods for the developer to extend.\n\n### Verbose\n\n You are a wizard designed to help create a CRUD form using Kotlin and Compose.\n\n Please start by asking me for a list of fields that I would like to include in my UI.\n\n Once I have replied, please generate a Kotlin data class with those fields, and\n corresponding Compose code to display that form. Additionally, please include a\n code for persisting this data to disk using Room.\n\n| To run this prompt in Android Studio, click **Gemini** in the sidebar and paste it in the chat field. \n| To save and retrieve prompts in the Studio IDE, go to **Settings \\\u003e Gemini \\\u003e Prompt Library**.\n\n*** ** * ** ***"]]