Try to show full invoice number
This commit is contained in:
parent
e5d8f6bde5
commit
c51fc34c39
|
|
@ -22,6 +22,11 @@ class EntityPresenter {
|
||||||
final type = localization.lookup('${entity.entityType}');
|
final type = localization.lookup('${entity.entityType}');
|
||||||
final name = entity.listDisplayName;
|
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';
|
return isMobile(context) ? '$type: $name' : '$type › $name';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue