Various addtions to ShoppingList page (#325)

* Improve design of ShoppingListItems

* Improve scrolling behaviour of ShoppingListItemEditor

* Add search functionality to food and unit fields in ShoppingListItemEditor

* Add functionality to display plurals of units in shopping lists

* Fix tests

* Ensure editor displays correctly when switching to food mode.

- Fixed a bug causing the editor to display incorrectly when switching to food mode while at the bottom of the screen

* Fix regressions caused in 5dff173

- Fixed a regression introducing incorrect scrolling behaviour when editing items at the bottom of the page
- Fixed a regression causing the add button to not be hidden

* Prefill fields in ShoppingListItemEditorFoodRow if possible

* Remove unnecessary trigger for bringIntoView function

- Remove unnecessary trigger for bringIntoView function of ShoppingListItemEditor

* Display showAddButton dynamically

* Add support for food plurals

* Extract plural functionality to function

* Remember filtering options

* Use ExposedDropdownMenu instead of DropdownMenu

- Updated selection of foods and units to use ExposedDropdownMenu
- Updated composeBom to 2024.09.02
- Updated composeBom to 2024.09.02 to increment androidx.compose.material3 to 1.3.0 needed for androidx.compose.material3.MenuAnchorType

* Only allow one edit menu to be open at a time
This commit is contained in:
Erik
2024-09-29 08:22:50 +02:00
committed by GitHub
parent 7c825970ea
commit b68cf9a1ae
5 changed files with 144 additions and 47 deletions

View File

@@ -66,7 +66,7 @@ androidXTestRunner = "1.6.2"
androidXTestOrchestrator = "1.5.0"
junitKtx = "1.2.1"
# https://mvnrepository.com/artifact/androidx.compose/compose-bom
composeBom = "2024.06.00"
composeBom = "2024.09.02"
# https://google.github.io/accompanist/
accompanistVersion = "0.34.0"
# https://developer.android.com/jetpack/androidx/releases/compose-material