From 52a1eedc7ef868c80b600d7a051411fa14e87a02 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 11 Dec 2024 16:28:43 +1100 Subject: [PATCH] Update company display --- lib/widget/company/company_detail.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/widget/company/company_detail.dart b/lib/widget/company/company_detail.dart index 65f65d10..c0ab4814 100644 --- a/lib/widget/company/company_detail.dart +++ b/lib/widget/company/company_detail.dart @@ -48,7 +48,15 @@ class _CompanyDetailState extends RefreshableState { int attachmentCount = 0; @override - String getAppBarTitle() => L10().company; + String getAppBarTitle() { + String title = L10().company; + + if (widget.company.name.isNotEmpty) { + title += " - ${widget.company.name}"; + } + + return title; + } @override List appBarActions(BuildContext context) {