From 5f61eb121ddeb4ae85e42c1275c51927c5ae6ec2 Mon Sep 17 00:00:00 2001 From: Ivan <42812006+ivan-015@users.noreply.github.com> Date: Tue, 5 Jul 2022 13:11:15 -0600 Subject: [PATCH] Interpret Styles with spaces and Capital letters --- .../global_styling/global_styling_aggregator.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/generation/flutter_project_builder/post_gen_tasks/global_styling/global_styling_aggregator.dart b/lib/generation/flutter_project_builder/post_gen_tasks/global_styling/global_styling_aggregator.dart index 13de1a94..ae118976 100644 --- a/lib/generation/flutter_project_builder/post_gen_tasks/global_styling/global_styling_aggregator.dart +++ b/lib/generation/flutter_project_builder/post_gen_tasks/global_styling/global_styling_aggregator.dart @@ -3,6 +3,7 @@ import 'package:parabeac_core/generation/flutter_project_builder/post_gen_tasks/ import 'package:parabeac_core/generation/flutter_project_builder/post_gen_tasks/global_styling/text_styles_post_gen_task.dart'; import 'package:parabeac_core/generation/flutter_project_builder/post_gen_tasks/global_styling/theming_post_gen_task.dart'; import 'package:pbdl/pbdl.dart'; +import 'package:recase/recase.dart'; class GlobalStylingAggregator { /// List of all supported TextStyles that should be exported @@ -62,7 +63,7 @@ class GlobalStylingAggregator { var themeTextStyles = []; for (var style in globalStyles.textStyles) { - if (_textStyleList.contains(style.name)) { + if (_textStyleList.contains(style.name.camelCase)) { /// Add Text Style to Global theming list themeTextStyles.add(style); }