Updates constant names and lint rule
This commit is contained in:
@@ -11,4 +11,3 @@ linter:
|
||||
prefer_const_literals_to_create_immutables: true
|
||||
unnecessary_const: true
|
||||
lines_longer_than_80_chars: false
|
||||
constant_identifier_names: false
|
||||
|
||||
@@ -3,14 +3,14 @@ import 'package:rate_my_app/rate_my_app.dart';
|
||||
class Constants {
|
||||
static const String appDevPhase = 'Beta';
|
||||
|
||||
static const String INSTAGRAM_LINK = 'https://instagram.felixkirchner.de';
|
||||
static const String GITHUB_LINK = 'https://github.felixkirchner.de';
|
||||
static const String GITHUB_ISSUES_LINK =
|
||||
static const String kInstagramLink = 'https://instagram.felixkirchner.de';
|
||||
static const String kGithubLink = 'https://github.felixkirchner.de';
|
||||
static const String kGithubIssuesLink =
|
||||
'https://cabocounter-issues.felixkirchner.de';
|
||||
static const String GITHUB_WIKI_LINK =
|
||||
static const String kGithubWikiLink =
|
||||
'https://cabocounter-wiki.felixkirchner.de';
|
||||
static const String EMAIL = 'cabocounter@felixkirchner.de';
|
||||
static const String PRIVACY_POLICY_LINK =
|
||||
static const String kEmail = 'cabocounter@felixkirchner.de';
|
||||
static const String kPrivacyPolicyLink =
|
||||
'https://www.privacypolicies.com/live/1b3759d4-b2f1-4511-8e3b-21bb1626be68';
|
||||
|
||||
static RateMyApp rateMyApp = RateMyApp(
|
||||
|
||||
@@ -60,15 +60,15 @@ class AboutView extends StatelessWidget {
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(Constants.INSTAGRAM_LINK)),
|
||||
launchUrl(Uri.parse(Constants.kInstagramLink)),
|
||||
icon: const Icon(FontAwesomeIcons.instagram)),
|
||||
IconButton(
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse('mailto:${Constants.EMAIL}')),
|
||||
launchUrl(Uri.parse('mailto:${Constants.kEmail}')),
|
||||
icon: const Icon(CupertinoIcons.envelope)),
|
||||
IconButton(
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(Constants.GITHUB_LINK)),
|
||||
launchUrl(Uri.parse(Constants.kGithubLink)),
|
||||
icon: const Icon(FontAwesomeIcons.github)),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -227,7 +227,7 @@ class _MainMenuViewState extends State<MainMenuView> {
|
||||
|
||||
final Uri emailUri = Uri(
|
||||
scheme: 'mailto',
|
||||
path: Constants.EMAIL,
|
||||
path: Constants.kEmail,
|
||||
query: 'subject=$emailSubject'
|
||||
'&body=$emailBody',
|
||||
);
|
||||
|
||||
@@ -149,21 +149,21 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
prefixText: AppLocalizations.of(context).wiki,
|
||||
prefixIcon: CupertinoIcons.book,
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(Constants.GITHUB_WIKI_LINK)),
|
||||
launchUrl(Uri.parse(Constants.kGithubWikiLink)),
|
||||
suffixWidget: const CupertinoListTileChevron(),
|
||||
),
|
||||
CustomFormRow(
|
||||
prefixText: AppLocalizations.of(context).privacy_policy,
|
||||
prefixIcon: CupertinoIcons.doc_append,
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(Constants.PRIVACY_POLICY_LINK)),
|
||||
launchUrl(Uri.parse(Constants.kPrivacyPolicyLink)),
|
||||
suffixWidget: const CupertinoListTileChevron(),
|
||||
),
|
||||
CustomFormRow(
|
||||
prefixText: AppLocalizations.of(context).error_found,
|
||||
prefixIcon: FontAwesomeIcons.github,
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(Constants.GITHUB_ISSUES_LINK)),
|
||||
launchUrl(Uri.parse(Constants.kGithubIssuesLink)),
|
||||
suffixWidget: const CupertinoListTileChevron(),
|
||||
),
|
||||
CustomFormRow(
|
||||
|
||||
Reference in New Issue
Block a user