-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace old contact email address (#42)
- Loading branch information
Showing
6 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2024 BBK Development. All rights reserved. | ||
// Use of this source code is governed by a GPL-style license that can be found | ||
// in the LICENSE file. | ||
|
||
/// A class that provides constant app-wide configuration values. | ||
abstract final class AppConfig { | ||
/// Returns the name of the app. | ||
static const appName = 'VMerge'; | ||
|
||
/// Returns the contact email address. | ||
static const contactEmail = '[email protected]'; | ||
|
||
/// Returns the privacy policy URL. | ||
static const privacyPolicy = | ||
'https://www.bbkdevelopment.com/apps/vmerge/privacy-policy'; | ||
|
||
/// Returns the terms and conditions URL. | ||
static const termsAndConditions = | ||
'https://www.bbkdevelopment.com/apps/vmerge/terms-and-conditions'; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,8 @@ class _MorePageOption extends StatelessWidget { | |
.sendEmail( | ||
emailUri: Uri( | ||
scheme: 'mailto', | ||
path: '[email protected]', | ||
queryParameters: {'subject': 'VMerge'}, | ||
path: AppConfig.contactEmail, | ||
queryParameters: {'subject': AppConfig.appName}, | ||
), | ||
) | ||
.onError<SendEmailException>((error, stackTrace) { | ||
|
@@ -66,7 +66,7 @@ class _MorePageOption extends StatelessWidget { | |
}); | ||
case MorePageOption.termsAndConditions: | ||
getIt<UrlLauncherService>() | ||
.launch(url: Uri.parse(AppUrl.termsAndConditions)) | ||
.launch(url: Uri.parse(AppConfig.termsAndConditions)) | ||
.onError<UrlLaunchException>((error, stackTrace) { | ||
context.read<ErrorCubit>().caught( | ||
message: l10n.couldNotOpenTermsAndConditionsMessage, | ||
|
@@ -76,7 +76,7 @@ class _MorePageOption extends StatelessWidget { | |
}); | ||
case MorePageOption.privacyPolicy: | ||
getIt<UrlLauncherService>() | ||
.launch(url: Uri.parse(AppUrl.privacyPolicy)) | ||
.launch(url: Uri.parse(AppConfig.privacyPolicy)) | ||
.onError<UrlLaunchException>((error, stackTrace) { | ||
context.read<ErrorCubit>().caught( | ||
message: l10n.couldNotOpenPrivacyPolicyMessage, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters