Skip to content

Commit

Permalink
Update company display
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Dec 11, 2024
1 parent d016a66 commit 52a1eed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/widget/company/company_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
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<Widget> appBarActions(BuildContext context) {
Expand Down

0 comments on commit 52a1eed

Please sign in to comment.