Skip to content

Commit

Permalink
fix: Product name/brands exception (#4705)
Browse files Browse the repository at this point in the history
  • Loading branch information
WildOrangutan committed Oct 8, 2023
1 parent 25068e5 commit 34f3364
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/smooth_app/lib/pages/product/edit_ocr_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,9 @@ class _EditOcrPageState extends State<EditOcrPage> 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(
Expand Down

0 comments on commit 34f3364

Please sign in to comment.