refactor(ui_layout): update field name

This commit is contained in:
AN12345 2022-11-25 13:39:13 -05:00 committed by Gitea
parent 562f84dd33
commit d0f59bbf29
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
// This widget is the root of your application. // This widget is the root of your application.
@override @override
Widget build(BuildContext context) => ComponentTheme( Widget build(BuildContext context) => ComponentTheme(
themDataWidget: AppThemeComponent.components, componentThemeWidget: AppThemeComponent.components,
child: MaterialApp( child: MaterialApp(
title: 'Wyatt Ui Layout Example', title: 'Wyatt Ui Layout Example',
theme: ThemeData( theme: ThemeData(

View File

@ -19,11 +19,11 @@ import 'package:wyatt_wyatt_ui_layout/src/features/component_theme_data.dart';
class ComponentTheme extends StatelessWidget { class ComponentTheme extends StatelessWidget {
final Widget child; final Widget child;
final ComponentThemeData themDataWidget; final ComponentThemeData componentThemeWidget;
const ComponentTheme({ const ComponentTheme({
required this.child, required this.child,
required this.themDataWidget, required this.componentThemeWidget,
super.key, super.key,
}); });
@ -35,7 +35,7 @@ class ComponentTheme extends StatelessWidget {
inheritedThemeComponent != null, inheritedThemeComponent != null,
'Theme component not find in tree', 'Theme component not find in tree',
); );
return inheritedThemeComponent!.themeWidget.themDataWidget; return inheritedThemeComponent!.themeWidget.componentThemeWidget;
} }
@override @override