Skip to content

Commit

Permalink
feat: 3507 - added mandatory icons and optional hints to packagings (#…
Browse files Browse the repository at this point in the history
…3514)

New files:
* `counter-dark.svg`
* `counter-light.svg`
* `material.svg`
* `quantity.svg`
* `recycling.svg`
* `shape.svg`
* `weight.svg`

Impacted files:
* `app_en.arb`: added hint labels for material and weight
* `edit_new_packagings.dart`: added mandatory icons and optional hints
* `explanation_widget.dart`: unrelated refactoring
* `pubspec.yaml`: added a dedicated asset folder for packagings
* `simple_input_widget.dart`: unrelated refactoring
  • Loading branch information
monsieurtanuki authored Jan 4, 2023
1 parent f528b31 commit 3cf4534
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 27 deletions.
11 changes: 11 additions & 0 deletions packages/smooth_app/assets/packagings/counter-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions packages/smooth_app/assets/packagings/counter-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/smooth_app/assets/packagings/material.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/smooth_app/assets/packagings/quantity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/smooth_app/assets/packagings/recycling.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/smooth_app/assets/packagings/shape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/smooth_app/assets/packagings/weight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,10 @@
"@edit_packagings_element_field_material": {
"description": "Field label"
},
"edit_packagings_element_hint_material": "Sometimes, the materials like ♵ are hidden below the pack, in 3D, on the plastic.",
"@edit_packagings_element_hint_material": {
"description": "Field verbose hint, more like an info than a text field hint"
},
"edit_packagings_element_field_recycling": "Recycling instruction",
"@edit_packagings_element_field_recycling": {
"description": "Field label"
Expand All @@ -1815,5 +1819,9 @@
"@edit_packagings_element_field_weight": {
"description": "Field label"
},
"edit_packagings_element_hint_weight": "For accurate packaging weight measurements, please clean any food residue and then dry any water.",
"@edit_packagings_element_hint_weight": {
"description": "Field verbose hint, more like an info than a text field hint"
},
"feed_back": "Feedback"
}
Loading

0 comments on commit 3cf4534

Please sign in to comment.