[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7154":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":22,"defaultBranch":23,"hasWiki":21,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},7154,"sunflower","android\u002Fsunflower","android","A gardening app illustrating Android development best practices with migrating a View-based app to Jetpack Compose.","https:\u002F\u002Fd.android.com\u002Fjetpack",null,"Kotlin",17775,4771,34,70,0,1,7,45,"Apache License 2.0",true,false,"main",[],"2026-06-12 02:01:35","# Android Sunflower with Compose\n\nWarning: The Sunflower repository is no longer under maintenance, We are prioritizing https:\u002F\u002Fgithub.com\u002Fandroid\u002Fcompose-samples as the up-to-date source of truth for Compose best practises. Please use that repository and sample set to continue learning about Jetpack Compose. If you'd like to continue using Sunflower, we encourage you to maintain your own fork of the sample. \n\nA gardening app illustrating Android development best practices with migrating a View-based app to\nJetpack Compose. To learn about how Sunflower was migrated to Compose, see the \n[migration journey](https:\u002F\u002Fgithub.com\u002Fandroid\u002Fsunflower\u002Fblob\u002Fmain\u002Fdocs\u002FMigrationJourney.md) document.\n\n> [!Note]\n> To see the original View implementation of Sunflower, checkout the [`views`](https:\u002F\u002Fgithub.com\u002Fandroid\u002Fsunflower\u002Ftree\u002Fviews) branch.\n\n## Screenshots\n\n\u003Cimg src=\"screenshots\u002FSunflowerM3Screenshots.png\"\u002F>\n\n## Features\n\nThis sample showcases how to migrate an existing View-based app (Material 2) to Compose (Material 3). \nSee the linked migration journey doc above to learn more.\n\n> [!Note]\n> As Compose cannot render HTML code in `Text` yet. The \n> `AndroidViewBinding` API is used to embed a `TextView` in Compose. See the \n> `PlantDescription` composable in the\n> [PlantDetailView file](app\u002Fsrc\u002Fmain\u002Fjava\u002Fcom\u002Fgoogle\u002Fsamples\u002Fapps\u002Fsunflower\u002Fcompose\u002Fplantdetail\u002FPlantDetailView.kt).\n\n## Requirements\n\n### Unsplash API key\n\nSunflower uses the [Unsplash API](https:\u002F\u002Funsplash.com\u002Fdevelopers) to load pictures on the gallery\nscreen. To use the API, you will need to obtain a free developer API key. See the\n[Unsplash API Documentation](https:\u002F\u002Funsplash.com\u002Fdocumentation) for instructions.\n\nOnce you have the key, add this line to the `gradle.properties` file, either in your user home\ndirectory (usually `~\u002F.gradle\u002Fgradle.properties` on Linux and Mac) or in the project's root folder:\n\n```\nunsplash_access_key=\u003Cyour Unsplash access key>\n```\n\nThe app is still usable without an API key, though you won't be able to navigate to the gallery screen.\n\nAndroid Studio IDE setup\n------------------------\nFor development, the latest version of Android Studio is required. The latest version can be\ndownloaded from [here](https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002F).\n\nSunflower uses [ktlint](https:\u002F\u002Fktlint.github.io\u002F) to enforce Kotlin coding styles.\nHere's how to configure it for use with Android Studio (instructions adapted\nfrom the ktlint [README](https:\u002F\u002Fgithub.com\u002Fshyiko\u002Fktlint\u002Fblob\u002Fmaster\u002FREADME.md)):\n\n- Close Android Studio if it's open\n\n- Download ktlint using these [installation instructions](https:\u002F\u002Fgithub.com\u002Fpinterest\u002Fktlint\u002Fblob\u002Fmaster\u002FREADME.md#installation)\n\n- Apply ktlint settings to Android Studio using these [instructions](https:\u002F\u002Fgithub.com\u002Fpinterest\u002Fktlint\u002Fblob\u002Fmaster\u002FREADME.md#-with-intellij-idea)\n\n- Start Android Studio\n\nAdditional resources\n--------------------\nCheck out these Wiki pages to learn more about Android Sunflower:\n\n- [Notable Community Contributions](https:\u002F\u002Fgithub.com\u002Fandroid\u002Fsunflower\u002Fwiki\u002FNotable-Community-Contributions)\n\n- [Publications](https:\u002F\u002Fgithub.com\u002Fandroid\u002Fsunflower\u002Fwiki\u002FSunflower-Publications)\n\nNon-Goals\n---------\nPreviously, this sample app was focused on demonstrating best practices for\nmultiple Jetpack libraries. However, this is no longer the case and development\nwill instead be focused on how to adopt Compose in an existing View-based app.\nSo, there are no plans to implement features outside of this scope. Keep this\nin mind when making contributions to this library.\n\nSupport\n-------\n\n- Stack Overflow:\n  - https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Fandroid-jetpack-compose\n\nIf you've found an error in this sample, please file an issue:\nhttps:\u002F\u002Fgithub.com\u002Fandroid\u002Fsunflower\u002Fissues\n\nPatches are encouraged, and may be submitted by forking this project and submitting a pull request\nthrough GitHub.\n\nThird Party Content\n-------------------\nSelect text used for describing the plants (in `plants.json`) are used from Wikipedia via CC BY-SA 3.0 US (license in `ASSETS_LICENSE`).\n\n\"[seed](https:\u002F\u002Fthenounproject.com\u002Fsearch\u002F?q=seed&i=1585971)\" by [Aisyah](https:\u002F\u002Fthenounproject.com\u002Faisyahalmasyira\u002F) is licensed under [CC BY 3.0](https:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby\u002F3.0\u002Fus\u002Flegalcode)\n","Android Sunflower 是一个园艺应用，展示了如何将基于 View 的 Android 应用迁移到 Jetpack Compose。该项目通过迁移过程中的最佳实践，帮助开发者理解从 Material 2 到 Material 3 的转换，并且使用了 `AndroidViewBinding` API 来处理在 Compose 中渲染 HTML 代码的问题。尽管官方已停止维护此仓库，但其仍然是学习 Jetpack Compose 迁移技巧的有效资源，尤其适合那些希望深入了解 Compose 实践和迁移挑战的 Android 开发者。此外，项目还集成了 Unsplash API 用于加载图片，增强了用户体验。",2,"2026-06-11 03:10:50","top_language"]