Code refactor
This commit is contained in:
parent
078345d4a6
commit
e084a1a31b
|
|
@ -76,9 +76,11 @@ const String kDocsEmailVariablesUrl =
|
||||||
'$kDocsUrl/email-customization/#payment-email-customization';
|
'$kDocsUrl/email-customization/#payment-email-customization';
|
||||||
const String kDocsStripeConnectUrl = '$kDocsUrl/hosted-stripe';
|
const String kDocsStripeConnectUrl = '$kDocsUrl/hosted-stripe';
|
||||||
|
|
||||||
|
const String kPHPDateFormatsUrl =
|
||||||
|
'https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters';
|
||||||
const String kForumUrl = 'https://forum.invoiceninja.com';
|
const String kForumUrl = 'https://forum.invoiceninja.com';
|
||||||
const String kApiDocsURL = 'https://api-docs.invoicing.co';
|
const String kApiDocsUrl = 'https://api-docs.invoicing.co';
|
||||||
const String kZapierURL = 'https://zapier.com/apps/invoice-ninja';
|
const String kZapierUrl = 'https://zapier.com/apps/invoice-ninja';
|
||||||
const String kGatewayFeeHelpURL =
|
const String kGatewayFeeHelpURL =
|
||||||
'https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers';
|
'https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -561,7 +561,7 @@ class _AccountOverview extends StatelessWidget {
|
||||||
child: AppButton(
|
child: AppButton(
|
||||||
label: localization.apiDocs.toUpperCase(),
|
label: localization.apiDocs.toUpperCase(),
|
||||||
iconData: isMobile(context) ? null : MdiIcons.bookshelf,
|
iconData: isMobile(context) ? null : MdiIcons.bookshelf,
|
||||||
onPressed: () => launchUrl(Uri.parse(kApiDocsURL)),
|
onPressed: () => launchUrl(Uri.parse(kApiDocsUrl)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: kGutterWidth),
|
SizedBox(width: kGutterWidth),
|
||||||
|
|
@ -569,7 +569,7 @@ class _AccountOverview extends StatelessWidget {
|
||||||
child: AppButton(
|
child: AppButton(
|
||||||
label: 'Zapier',
|
label: 'Zapier',
|
||||||
iconData: isMobile(context) ? null : MdiIcons.cloud,
|
iconData: isMobile(context) ? null : MdiIcons.cloud,
|
||||||
onPressed: () => launchUrl(Uri.parse(kZapierURL)),
|
onPressed: () => launchUrl(Uri.parse(kZapierUrl)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
])),
|
])),
|
||||||
|
|
|
||||||
|
|
@ -561,8 +561,7 @@ class _EntityNumberSettingsState extends State<EntityNumberSettings> {
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
child: Text(localization.viewDateFormats.toUpperCase()),
|
child: Text(localization.viewDateFormats.toUpperCase()),
|
||||||
),
|
),
|
||||||
onPressed: () => launchUrl(Uri.parse(
|
onPressed: () => launchUrl(Uri.parse(kPHPDateFormatsUrl)),
|
||||||
'https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters')),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
HelpPanel(
|
HelpPanel(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue