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:
@@ -12,4 +12,5 @@ data class GetFoodsResponse(
|
||||
data class GetFoodResponse(
|
||||
@SerialName("name") val name: String,
|
||||
@SerialName("id") val id: String,
|
||||
@SerialName("pluralName") val pluralName: String? = null
|
||||
)
|
||||
|
||||
@@ -11,5 +11,6 @@ data class GetUnitsResponse(
|
||||
@Serializable
|
||||
data class GetUnitResponse(
|
||||
@SerialName("name") val name: String,
|
||||
@SerialName("pluralName") val pluralName: String? = null,
|
||||
@SerialName("id") val id: String
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user