From 34f33640f70e0b263e457db886c3922bd8af4404 Mon Sep 17 00:00:00 2001 From: WildOrangutan Date: Sun, 8 Oct 2023 07:42:55 +0200 Subject: [PATCH] fix: Product name/brands exception (#4705) --- .../smooth_app/lib/pages/product/edit_ocr_page.dart | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/edit_ocr_page.dart b/packages/smooth_app/lib/pages/product/edit_ocr_page.dart index 597e44b718c..229e429d7e5 100644 --- a/packages/smooth_app/lib/pages/product/edit_ocr_page.dart +++ b/packages/smooth_app/lib/pages/product/edit_ocr_page.dart @@ -147,14 +147,9 @@ class _EditOcrPageState extends State with UpToDateMixin { _helper.getTitle(appLocalizations), style: appbarTextStyle, ), - subTitle: upToDateProduct.productName != null - ? Text( - '${upToDateProduct.productName!.trim()}, ${upToDateProduct.brands!.trim()}', - maxLines: 1, - overflow: TextOverflow.ellipsis, - style: appbarTextStyle, - ) - : null, + subTitle: DefaultTextStyle( + style: appbarTextStyle, + child: buildProductTitle(upToDateProduct, appLocalizations)), backgroundColor: Colors.transparent, flexibleSpace: ClipRect( child: BackdropFilter(