From c51fc34c3922bdcd9ecef66d61792e8c9cb0f08b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 29 Jan 2021 08:53:40 +0200 Subject: [PATCH] Try to show full invoice number --- lib/ui/app/presenters/entity_presenter.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ui/app/presenters/entity_presenter.dart b/lib/ui/app/presenters/entity_presenter.dart index fe8c2cfdf..02742480a 100644 --- a/lib/ui/app/presenters/entity_presenter.dart +++ b/lib/ui/app/presenters/entity_presenter.dart @@ -22,6 +22,11 @@ class EntityPresenter { final type = localization.lookup('${entity.entityType}'); final name = entity.listDisplayName; + // TODO replace with this: https://github.com/flutter/flutter/issues/45336 + if (name.length > 10) { + return name; + } + return isMobile(context) ? '$type: $name' : '$type › $name'; }