{"id":15110452,"url":"https://github.com/canerkaseler/jetpack-compose-parameter-management-with-preview-parameter","last_synced_at":"2026-01-17T03:46:59.187Z","repository":{"id":255031978,"uuid":"844176396","full_name":"canerkaseler/jetpack-compose-parameter-management-with-preview-parameter","owner":"canerkaseler","description":"This repository has a Medium Article which targets to show how to handle parameters and use @PreviewParameter in Jetpack Compose UI.","archived":false,"fork":false,"pushed_at":"2024-08-30T22:33:59.000Z","size":163,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:55:20.497Z","etag":null,"topics":["android","android-application","android-development","android-ui","jetpack-compose","jetpackcompose","kotlin","kotlin-android","previewparameter"],"latest_commit_sha":null,"homepage":"https://medium.com/kotlin-academy/slot-api-pattern-previewparameter-in-jetpack-compose-6308e46155e8","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canerkaseler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-18T16:01:29.000Z","updated_at":"2024-08-30T22:34:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f95b8053-b6e6-4a8e-8fd2-f5033e8b6312","html_url":"https://github.com/canerkaseler/jetpack-compose-parameter-management-with-preview-parameter","commit_stats":null,"previous_names":["canerkaseler/jetpack-compose-slot-api-pattern-with-preview-parameter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canerkaseler","download_url":"https://codeload.github.com/canerkaseler/jetpack-compose-parameter-management-with-preview-parameter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369965,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-application","android-development","android-ui","jetpack-compose","jetpackcompose","kotlin","kotlin-android","previewparameter"],"created_at":"2024-09-25T23:44:57.513Z","updated_at":"2026-01-17T03:46:59.142Z","avatar_url":"https://github.com/canerkaseler.png","language":"Kotlin","funding_links":["https://buymeacoffee.com/canerkaseler"],"categories":[],"sub_categories":[],"readme":"# How to handle parameters and use @PreviewParameter in Jetpack Compose\n\nThis repository has a [Medium Article](https://medium.com/kotlin-academy/slot-api-pattern-previewparameter-in-jetpack-compose-6308e46155e8) which targets to show how to handle parameters and use @PreviewParameter in Jetpack Compose UI.\n\n\u003cimg width=\"600\" alt=\"Screenshot 2024-08-19 at 22 56 22\" src=\"https://github.com/user-attachments/assets/81c45cc8-fd2b-4b69-9012-ca75471cfdf5\"\u003e\n\n\n\u003e If you would like to support my work, coffee is my best friend for writing code and articles: https://buymeacoffee.com/canerkaseler ☕️\n\u003e\n\u003e You can reach me on social media and other platforms, stay tuned: https://linktr.ee/canerkaseler 🤝\n\n## Introduction of the article\n\nI create a basic Android application with only Jetpack Compose in this article. This app includes a basic card design which includes text, image and button. It does not contain any network request, complex UI or business logic.\n\nTable of contents:\n1. Compose Design with Traditional Way (_If you know compose, you can skip this part._)\n2. Management of parameters of compose functions in Jetpack Compose\n3. @PreviewParameter Approach in Compose Preview\n4. References\n\n\u003e Note: _Table of contents may not show bonus parts_ 🎁\n\n## Example images of the results\n\nScreenshot of the component preview from android studio.\n\n\u003cimg width=\"600\" alt=\"Screenshot 2024-08-19 at 22 56 22\" src=\"https://github.com/user-attachments/assets/4cc26d56-db4b-464a-9a0b-1bfe58007100\"\u003e\n\nScreenshot of Home Screen preview from android studio.\n\n\u003cimg width=\"600\" alt=\"Screenshot 2024-08-19 at 23 01 17\" src=\"https://github.com/user-attachments/assets/39e69091-0aaa-498c-8c98-5eb9e8f76f5d\"\u003e\n\n## More details\n\nIf you would like to continue reading and learn some details about above parts, please check out the [Medium Article](https://medium.com/kotlin-academy/slot-api-pattern-previewparameter-in-jetpack-compose-6308e46155e8). I hope, this repository and its Medium article will be useful and beneficial for your project! 🙌\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanerkaseler%2Fjetpack-compose-parameter-management-with-preview-parameter/lists"}