5 Commits

Author SHA1 Message Date
e3bc40fdf3 chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8

* New GA

* Fix dartdoc
2025-06-23 18:14:17 +02:00
18505ddc0e fix: 5371 - less ambiguous currency symbol (#5376) 2024-06-15 12:27:43 +02:00
4db1d6c25c feat: currency symbols (#5311)
New file:
* `currency_extension.dart`: Currency symbols.

Impacted files:
* `country_selector.dart`: fixed a typo that prevented the filter from working with uppercase.
* `currency_selector.dart`: displayed the new currency full name
* `currency_selector_helper.dart`: displayed the new currency full name; fixed a typo that prevented the filter from working with uppercase.
* `price_currency_selector.dart`: displayed the new currency full name
* `smooth_text.dart`: managed the case where we search for special chars like $
2024-05-30 19:30:53 +02:00
db223b5db5 feat: 5195 - new "add one product price" page with background task (#5292)
* feat: 5195 - new "add one product price" page with background task

New files:
* `background_task_add_price.dart`: Background task about adding a product price.
* `currency_selector_helper.dart`: Helper for currency selection.
* `price_amount_card.dart`: Card that displays the amounts (discounted or not) for price adding.
* `price_amount_field.dart`: Text field that displays a single amount for price adding.
* `price_currency_card.dart`: Card that displays the currency for price adding.
* `price_currency_selector.dart`: Button that displays the currency for price adding.
* `price_date_card.dart`: Card that displays the date for price adding.
* `price_location_card.dart`: Card that displays the location for price adding.
* `price_model.dart`: Price Model (checks and background task call) for price adding.
* `price_proof_card.dart`: Card that displays the proof for price adding.
* `product_price_add_page.dart`: Single page that displays all the elements of price adding.

Impacted files:
* `app_en.arb`: added labels related to price adding
* `app_fr.arb`: added labels related to price adding
* `background_task_crop.dart`: minor refactoring
* `background_task_image.dart`: minor refactoring
* `background_task_upload.dart`: minor refactoring
* `currency_selector.dart`: refactored with new class `CurrencySelectorHelper`
* `dao_osm_location.dart`: minor refactoring
* `image_crop_page.dart`: minor refactoring
* `location_list_supplier.dart`: minor refactoring
* `location_map_page.dart`: added action buttons for location description and location confirmation
* `operation_type.dart`: added data for new class `BackgroundTaskAddPrice`
* `prices_card.dart`: now opening new page `ProductPriceAddPage`
* `product_price_item.dart`: minor improvement
* `product_prices_page.dart`: minor improvement
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded `openfoodfacts` to `3.10.0`
* `search_location_preloaded_item.dart`: now enabling the map page to confirm a location

* fine-tuning

Impacted files:
* `app_en.arb`: added labels related to prices
* `app_fr.arb`: added labels related to prices
* `edit_product_page.dart`: added a link to "Add product price" page
* `prices_card.dart`: refactoring
* `product_price_add_page.dart`: fixed the FAB label; refactored the access using a static method
* `product_price_item.dart`: now displaying the not discounted price; refactored
* `product_prices_list.dart`: localized
* `product_prices_page.dart`: added a FAB to "Add product price" page
2024-05-25 19:38:00 +02:00
e3f01ce061 feat: 5200 - currency selector (#5236)
New files:
* `currency_selector.dart`: A selector for selecting user's currency.
* `user_preferences_currency_selector.dart`: Currency selector within user preferences.

Impacted files:
* `app_en.arb`: added 2 labels for the currency selector
* `country_selector.dart`: fixed discrepancies between selector display
* `user_preferences.dart`: new "user currency code" getter/setter
* `user_preferences_settings.dart`: added currency selector
* `welcome_page.dart`: fixed discrepancies between selector display
2024-05-10 10:34:24 +02:00