Show count of client/vendor contacts

This commit is contained in:
Hillel Coren 2022-09-15 08:36:06 +03:00
parent 59c4a83eb5
commit b68351a5cc
2 changed files with 8 additions and 2 deletions

View File

@ -280,7 +280,10 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
controller: _scrollController3,
children: [
Text(
localization.contacts,
localization.contacts +
(client.contacts.length > 1
? ' (${client.contacts.length})'
: ''),
style: Theme.of(context).textTheme.headline6,
),
SizedBox(height: 8),

View File

@ -207,7 +207,10 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
controller: _scrollController3,
children: [
Text(
localization.contacts,
localization.contacts +
(vendor.contacts.length > 1
? ' (${vendor.contacts.length})'
: ''),
style: Theme.of(context).textTheme.headline6,
),
SizedBox(height: 8),