sunflower
sunflower copied to clipboard
A gardening app illustrating Android development best practices with migrating a View-based app to Jetpack Compose.
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:  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:
Fixes #66
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
### Description Add support for the Romanian language as it was requested in https://github.com/googlesamples/android-sunflower/issues/462