From d0f59bbf29e17f9ab74c40b809698bed828cd604 Mon Sep 17 00:00:00 2001 From: AN12345 Date: Fri, 25 Nov 2022 13:39:13 -0500 Subject: [PATCH] refactor(ui_layout): update field name --- packages/wyatt_ui_layout/example/lib/main.dart | 2 +- .../wyatt_ui_layout/lib/src/features/component_theme.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wyatt_ui_layout/example/lib/main.dart b/packages/wyatt_ui_layout/example/lib/main.dart index 3a90d408..e20c6fde 100644 --- a/packages/wyatt_ui_layout/example/lib/main.dart +++ b/packages/wyatt_ui_layout/example/lib/main.dart @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) => ComponentTheme( - themDataWidget: AppThemeComponent.components, + componentThemeWidget: AppThemeComponent.components, child: MaterialApp( title: 'Wyatt Ui Layout Example', theme: ThemeData( diff --git a/packages/wyatt_ui_layout/lib/src/features/component_theme.dart b/packages/wyatt_ui_layout/lib/src/features/component_theme.dart index a476d433..6161f269 100644 --- a/packages/wyatt_ui_layout/lib/src/features/component_theme.dart +++ b/packages/wyatt_ui_layout/lib/src/features/component_theme.dart @@ -19,11 +19,11 @@ import 'package:wyatt_wyatt_ui_layout/src/features/component_theme_data.dart'; class ComponentTheme extends StatelessWidget { final Widget child; - final ComponentThemeData themDataWidget; + final ComponentThemeData componentThemeWidget; const ComponentTheme({ required this.child, - required this.themDataWidget, + required this.componentThemeWidget, super.key, }); @@ -35,7 +35,7 @@ class ComponentTheme extends StatelessWidget { inheritedThemeComponent != null, 'Theme component not find in tree', ); - return inheritedThemeComponent!.themeWidget.themDataWidget; + return inheritedThemeComponent!.themeWidget.componentThemeWidget; } @override