diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index a8bfed23c..272b44afd 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -72,7 +72,7 @@ class MenuDrawer extends StatelessWidget { children: [ Text( company.displayName, - style: Theme.of(context).textTheme.headline5, + style: Theme.of(context).textTheme.headline6, overflow: TextOverflow.ellipsis, ), Text(viewModel.user.email, @@ -112,10 +112,24 @@ class MenuDrawer extends StatelessWidget { value: (viewModel.companies.indexOf(company)).toString(), child: _companyListItem(company), )) - .toList(), + .toList()..add(DropdownMenuItem( + value: null, + child: Row( + children: [ + SizedBox(width: 2), + Icon(Icons.add_circle, size: 32), + SizedBox(width: 28), + Text(localization.addCompany), + ], + ), + )), onChanged: (value) { - viewModel.onCompanyChanged( - context, value, viewModel.companies[int.parse(value)]); + if (value == null) { + print('## ADD COMPANY.. ##'); + } else { + viewModel.onCompanyChanged( + context, value, viewModel.companies[int.parse(value)]); + } }, )); diff --git a/lib/utils/i18n.dart b/lib/utils/i18n.dart index e89a1cda0..823a87c05 100644 --- a/lib/utils/i18n.dart +++ b/lib/utils/i18n.dart @@ -14,6 +14,7 @@ abstract class LocaleCodeAware { mixin LocalizationsProvider on LocaleCodeAware { static final Map> _localizedValues = { 'en': { + 'add_company': 'Add Company', 'to_learn_about_gogle_fonts': 'to learn about Google Fonts', 'unpaid_invoice': 'Unpaid Invoice', 'paid_invoice': 'Paid Invoice', @@ -14137,7 +14138,8 @@ mixin LocalizationsProvider on LocaleCodeAware { String get clickHere => _localizedValues[localeCode]['click_here']; - String get clickHereCapital => _localizedValues[localeCode]['click_here_capital']; + String get clickHereCapital => + _localizedValues[localeCode]['click_here_capital']; String get toRateIt => _localizedValues[localeCode]['to_rate_it']; @@ -15971,6 +15973,7 @@ mixin LocalizationsProvider on LocaleCodeAware { String get toLearnAboutGoogleFonts => _localizedValues[localeCode]['to_learn_about_gogle_fonts']; + String get addCompany => _localizedValues[localeCode]['add_company']; String lookup(String key) { final lookupKey = toSnakeCase(key);