unified Lightmeter Pro related naming

This commit is contained in:
Vadim 2024-07-23 21:37:17 +02:00
parent 63f5d8c377
commit e5a7305218
3 changed files with 4 additions and 5 deletions

View file

@ -5,8 +5,8 @@ import 'package:lightmeter/data/models/supported_locale.dart';
import 'package:lightmeter/generated/l10n.dart'; import 'package:lightmeter/generated/l10n.dart';
import 'package:lightmeter/platform_config.dart'; import 'package:lightmeter/platform_config.dart';
import 'package:lightmeter/providers/user_preferences_provider.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/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/settings/flow_settings.dart';
import 'package:lightmeter/screens/shared/release_notes_dialog/flow_dialog_release_notes.dart'; import 'package:lightmeter/screens/shared/release_notes_dialog/flow_dialog_release_notes.dart';
import 'package:lightmeter/screens/timer/flow_timer.dart'; import 'package:lightmeter/screens/timer/flow_timer.dart';
@ -45,7 +45,7 @@ class Application extends StatelessWidget {
routes: { routes: {
"metering": (_) => const ReleaseNotesFlow(child: MeteringFlow()), "metering": (_) => const ReleaseNotesFlow(child: MeteringFlow()),
"settings": (_) => const SettingsFlow(), "settings": (_) => const SettingsFlow(),
"proFeatures": (_) => ProFeaturesScreen(), "lightmeterPro": (_) => LightmeterProScreen(),
"timer": (context) => TimerFlow(args: ModalRoute.of(context)!.settings.arguments! as TimerFlowArgs), "timer": (context) => TimerFlow(args: ModalRoute.of(context)!.settings.arguments! as TimerFlowArgs),
}, },
), ),

View file

@ -103,7 +103,6 @@
} }
} }
}, },
"proFeatures": "专业功能",
"getPro": "购买专业版", "getPro": "购买专业版",
"featuresFree": "免费", "featuresFree": "免费",
"featuresPro": "专业版", "featuresPro": "专业版",

View file

@ -10,10 +10,10 @@ import 'package:lightmeter/screens/shared/sliver_screen/screen_sliver.dart';
import 'package:lightmeter/utils/text_height.dart'; import 'package:lightmeter/utils/text_height.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.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; final features = Platform.isAndroid ? AppFeature.androidFeatures : AppFeature.iosFeatures;
ProFeaturesScreen({super.key}); LightmeterProScreen({super.key});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {