sunflower icon indicating copy to clipboard operation
sunflower copied to clipboard

A gardening app illustrating Android development best practices with migrating a View-based app to Jetpack Compose.

Results 105 sunflower issues
Sort by recently updated
recently updated
newest added

Hello I've been trying to add new functionalities to the app I'm trying to add two-way data binding to a view but I can't update the value of the view...

I get the following error when running `clickAddPlant_OpensPlantList` on the API 29 emulator: ``` 06-04 14:14:09.144 10145 15538 15571 E TestRunner: failed: clickAddPlant_OpensPlantList(com.google.samples.apps.sunflower.GardenActivityTest) 06-04 14:14:09.146 10145 15538 15571 E TestRunner:...

I was trying to run [PlantDetailViewModelTest](https://github.com/android/sunflower/blob/main/app/src/androidTest/java/com/google/samples/apps/sunflower/viewmodels/PlantDetailViewModelTest.kt) but I found there is something going wrong. In the test, you try to initialize [appDatabase](https://github.com/android/sunflower/blob/main/app/src/androidTest/java/com/google/samples/apps/sunflower/viewmodels/PlantDetailViewModelTest.kt#L44) in the test while it should be injected....

I want to make a deeplink with a back stack like this: ![New Project](https://user-images.githubusercontent.com/2652297/147234494-2d9cd2b8-82af-4eb1-b2a3-4ca01dce3944.jpg) Back stack from the picture above requires arguments for two screens: `PlantDetailFragment` and `GalleryFragment`. There is...

Hello, I am learning the `@Preview` api, and was hoping to see something in `GalleryScreen`. However, it is just blank:

The PR is for the enhancement on the unit-tests of `PlantDetailViewModel` since we added the `coroutines` feature there. TEST update: shouldAddPlantToGarden(): Happy-Path to add one plant. shouldCancelAddingPlantToGarden(): Cancel adding of...

### Use ArchTaskExecutor instead of InstantTaskExecutorRule ```kotlin @get:Rule var instantTaskExecutorRule = InstantTaskExecutorRule() ``` The issue is that this one does not provide a real thread for main thread and accepts...

Add support for the Arabic language as it was requested in #331

translations
rtl

### Description Add support for the Romanian language as it was requested in https://github.com/googlesamples/android-sunflower/issues/462

translations