diff --git a/packages/smooth_app/lib/l10n/app_en.arb b/packages/smooth_app/lib/l10n/app_en.arb index b82d0f477bc..07ad0113811 100644 --- a/packages/smooth_app/lib/l10n/app_en.arb +++ b/packages/smooth_app/lib/l10n/app_en.arb @@ -431,7 +431,7 @@ "score_add_missing_nutrition_facts": "Add missing nutrition facts", "score_add_missing_product_category": "Add missing product category", "score_update_nutrition_facts": "Update nutrition facts", - "nutrition_page_title": "Product Nutrition Facts", + "nutrition_page_title": "Nutrition Facts", "nutrition_page_unspecified": "Nutrition facts are not specified on the product", "nutrition_page_per_100g": "per 100g", "nutrition_page_per_serving": "per serving", diff --git a/packages/smooth_app/lib/pages/product/edit_product_page.dart b/packages/smooth_app/lib/pages/product/edit_product_page.dart index cbb9e549088..61ec586c309 100644 --- a/packages/smooth_app/lib/pages/product/edit_product_page.dart +++ b/packages/smooth_app/lib/pages/product/edit_product_page.dart @@ -1,3 +1,4 @@ +import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:openfoodfacts/model/Product.dart'; @@ -22,8 +23,9 @@ class _EditProductPageState extends State { final AppLocalizations appLocalizations = AppLocalizations.of(context)!; return Scaffold( appBar: AppBar( - title: Text( + title: AutoSizeText( widget.product.productName ?? appLocalizations.unknownProductName, + maxLines: 2, ), ), body: WillPopScope( diff --git a/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart b/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart index 69b50ef86a1..6abe692cf14 100644 --- a/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart +++ b/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart @@ -89,7 +89,10 @@ class _NutritionPageLoadedState extends State { return WillPopScope( child: Scaffold( appBar: AppBar( - title: Text(localizations.nutrition_page_title), + title: AutoSizeText( + localizations.nutrition_page_title, + maxLines: 2, + ), actions: [ IconButton( onPressed: () => _validateAndSave(localizations, localDatabase),