diff --git a/lib/src/app/presentation/widgets/app.dart b/lib/src/app/presentation/widgets/app.dart index a4538be..b502ffe 100644 --- a/lib/src/app/presentation/widgets/app.dart +++ b/lib/src/app/presentation/widgets/app.dart @@ -36,6 +36,7 @@ class _AppView extends StatelessWidget { return switch (state) { AppInitializing() => const SizedBox.shrink(), AppInitialized() => MaterialApp( + title: AppConfig.appName, debugShowCheckedModeBanner: false, localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, diff --git a/lib/src/core/constants/app_config.dart b/lib/src/core/constants/app_config.dart new file mode 100644 index 0000000..443edde --- /dev/null +++ b/lib/src/core/constants/app_config.dart @@ -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 = 'hello@bbkdevelopment.com'; + + /// 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'; +} diff --git a/lib/src/core/constants/app_url.dart b/lib/src/core/constants/app_url.dart deleted file mode 100644 index 2a7b458..0000000 --- a/lib/src/core/constants/app_url.dart +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2021 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. - -abstract final class AppUrl { - static const privacyPolicy = - 'https://www.bbkdevelopment.com/apps/vmerge/privacy-policy'; - static const termsAndConditions = - 'https://www.bbkdevelopment.com/apps/vmerge/terms-and-conditions'; -} diff --git a/lib/src/core/constants/constants.dart b/lib/src/core/constants/constants.dart index 4c4b250..be2596e 100644 --- a/lib/src/core/constants/constants.dart +++ b/lib/src/core/constants/constants.dart @@ -5,7 +5,7 @@ export 'app_animation_duration.dart'; export 'app_border_radius.dart'; export 'app_button_size.dart'; +export 'app_config.dart'; export 'app_icon_size.dart'; export 'app_main_color.dart'; export 'app_padding.dart'; -export 'app_url.dart'; diff --git a/lib/src/features/more/presentation/widgets/more_page_option.dart b/lib/src/features/more/presentation/widgets/more_page_option.dart index 872132f..9c5219a 100644 --- a/lib/src/features/more/presentation/widgets/more_page_option.dart +++ b/lib/src/features/more/presentation/widgets/more_page_option.dart @@ -53,8 +53,8 @@ class _MorePageOption extends StatelessWidget { .sendEmail( emailUri: Uri( scheme: 'mailto', - path: 'info@bbkdevelopment.com', - queryParameters: {'subject': 'VMerge'}, + path: AppConfig.contactEmail, + queryParameters: {'subject': AppConfig.appName}, ), ) .onError((error, stackTrace) { @@ -66,7 +66,7 @@ class _MorePageOption extends StatelessWidget { }); case MorePageOption.termsAndConditions: getIt() - .launch(url: Uri.parse(AppUrl.termsAndConditions)) + .launch(url: Uri.parse(AppConfig.termsAndConditions)) .onError((error, stackTrace) { context.read().caught( message: l10n.couldNotOpenTermsAndConditionsMessage, @@ -76,7 +76,7 @@ class _MorePageOption extends StatelessWidget { }); case MorePageOption.privacyPolicy: getIt() - .launch(url: Uri.parse(AppUrl.privacyPolicy)) + .launch(url: Uri.parse(AppConfig.privacyPolicy)) .onError((error, stackTrace) { context.read().caught( message: l10n.couldNotOpenPrivacyPolicyMessage, diff --git a/pubspec.yaml b/pubspec.yaml index 3f40a28..16988b7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: vmerge description: A video merger app created by BBK Development. -version: 2.0.0+7 +version: 2.0.0+8 publish_to: none environment: @@ -23,7 +23,7 @@ dependencies: flutter_svg: ^2.0.10+1 get_it: ^7.7.0 image_gallery_saver: ^2.0.3 - intl: ^0.18.1 + intl: any launch_review_service: git: url: https://github.com/BBKDevelopment/Launch-Review-Service.git