Integrations
This commit is contained in:
parent
69a10840eb
commit
37a4ef6da5
|
|
@ -11,6 +11,7 @@ import 'package:invoiceninja_flutter/ui/app/forms/app_form.dart';
|
|||
import 'package:invoiceninja_flutter/ui/app/forms/bool_dropdown_button.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/color_picker.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/help_link.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/learn_more.dart';
|
||||
import 'package:invoiceninja_flutter/ui/settings/invoice_design_vm.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/edit_scaffold.dart';
|
||||
import 'package:invoiceninja_flutter/utils/fonts.dart';
|
||||
|
|
@ -140,15 +141,18 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
FormCard(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
EntityDropdown(
|
||||
key: ValueKey('__primary_font_${settings.primaryFont}__'),
|
||||
entityType: EntityType.font,
|
||||
labelText: localization.primaryFont,
|
||||
entityId: settings.primaryFont,
|
||||
entityMap: memoizedFontMap(kGoogleFonts),
|
||||
onSelected: (font) => viewModel.onSettingsChanged(
|
||||
settings.rebuild((b) => b..primaryFont = font?.id)),
|
||||
allowClearing: state.settingsUIState.isFiltered,
|
||||
LearnMore(
|
||||
url: 'https://fonts.google.com',
|
||||
child: EntityDropdown(
|
||||
key: ValueKey('__primary_font_${settings.primaryFont}__'),
|
||||
entityType: EntityType.font,
|
||||
labelText: localization.primaryFont,
|
||||
entityId: settings.primaryFont,
|
||||
entityMap: memoizedFontMap(kGoogleFonts),
|
||||
onSelected: (font) => viewModel.onSettingsChanged(
|
||||
settings.rebuild((b) => b..primaryFont = font?.id)),
|
||||
allowClearing: state.settingsUIState.isFiltered,
|
||||
),
|
||||
),
|
||||
EntityDropdown(
|
||||
key: ValueKey('__secondary_font_${settings.secondaryFont}__'),
|
||||
|
|
@ -160,10 +164,6 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
settings.rebuild((b) => b..secondaryFont = font?.id)),
|
||||
allowClearing: state.settingsUIState.isFiltered,
|
||||
),
|
||||
HelpLink(
|
||||
url: 'https://fonts.google.com',
|
||||
message: localization.toLearnAboutGoogleFonts,
|
||||
),
|
||||
FormColorPicker(
|
||||
labelText: localization.primaryColor,
|
||||
onSelected: (value) => viewModel.onSettingsChanged(
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
'reports': 'Reports',
|
||||
'report': 'Report',
|
||||
'add_company': 'Add Company',
|
||||
'to_learn_about_gogle_fonts': 'to learn about Google Fonts',
|
||||
'unpaid_invoice': 'Unpaid Invoice',
|
||||
'paid_invoice': 'Paid Invoice',
|
||||
'unapproved_quote': 'Unapproved Quote',
|
||||
|
|
@ -32531,9 +32530,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
String get unapprovedQuote =>
|
||||
_localizedValues[localeCode]['unapproved_quote'];
|
||||
|
||||
String get toLearnAboutGoogleFonts =>
|
||||
_localizedValues[localeCode]['to_learn_about_gogle_fonts'];
|
||||
|
||||
String get addCompany => _localizedValues[localeCode]['add_company'];
|
||||
|
||||
String get reports => _localizedValues[localeCode]['reports'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue