From e5a730521840ab7cf277743dcf5b2b5866f46913 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Tue, 23 Jul 2024 21:37:17 +0200 Subject: [PATCH] unified Lightmeter Pro related naming --- lib/application.dart | 4 ++-- lib/l10n/intl_zh.arb | 1 - .../screen_lightmeter_pro.dart} | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) rename lib/screens/{pro_features/screen_pro_features.dart => lightmeter_pro/screen_lightmeter_pro.dart} (98%) diff --git a/lib/application.dart b/lib/application.dart index 623ea4b..b8939e4 100644 --- a/lib/application.dart +++ b/lib/application.dart @@ -5,8 +5,8 @@ import 'package:lightmeter/data/models/supported_locale.dart'; import 'package:lightmeter/generated/l10n.dart'; import 'package:lightmeter/platform_config.dart'; import 'package:lightmeter/providers/user_preferences_provider.dart'; +import 'package:lightmeter/screens/lightmeter_pro/screen_lightmeter_pro.dart'; import 'package:lightmeter/screens/metering/flow_metering.dart'; -import 'package:lightmeter/screens/pro_features/screen_pro_features.dart'; import 'package:lightmeter/screens/settings/flow_settings.dart'; import 'package:lightmeter/screens/shared/release_notes_dialog/flow_dialog_release_notes.dart'; import 'package:lightmeter/screens/timer/flow_timer.dart'; @@ -45,7 +45,7 @@ class Application extends StatelessWidget { routes: { "metering": (_) => const ReleaseNotesFlow(child: MeteringFlow()), "settings": (_) => const SettingsFlow(), - "proFeatures": (_) => ProFeaturesScreen(), + "lightmeterPro": (_) => LightmeterProScreen(), "timer": (context) => TimerFlow(args: ModalRoute.of(context)!.settings.arguments! as TimerFlowArgs), }, ), diff --git a/lib/l10n/intl_zh.arb b/lib/l10n/intl_zh.arb index 8e5645e..76df1fb 100644 --- a/lib/l10n/intl_zh.arb +++ b/lib/l10n/intl_zh.arb @@ -103,7 +103,6 @@ } } }, - "proFeatures": "专业功能", "getPro": "购买专业版", "featuresFree": "免费", "featuresPro": "专业版", diff --git a/lib/screens/pro_features/screen_pro_features.dart b/lib/screens/lightmeter_pro/screen_lightmeter_pro.dart similarity index 98% rename from lib/screens/pro_features/screen_pro_features.dart rename to lib/screens/lightmeter_pro/screen_lightmeter_pro.dart index f1ebc5a..b208c5f 100644 --- a/lib/screens/pro_features/screen_pro_features.dart +++ b/lib/screens/lightmeter_pro/screen_lightmeter_pro.dart @@ -10,10 +10,10 @@ import 'package:lightmeter/screens/shared/sliver_screen/screen_sliver.dart'; import 'package:lightmeter/utils/text_height.dart'; import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart'; -class ProFeaturesScreen extends StatelessWidget { +class LightmeterProScreen extends StatelessWidget { final features = Platform.isAndroid ? AppFeature.androidFeatures : AppFeature.iosFeatures; - ProFeaturesScreen({super.key}); + LightmeterProScreen({super.key}); @override Widget build(BuildContext context) {