refactor(ui_layout): update field name
This commit is contained in:
parent
562f84dd33
commit
d0f59bbf29
@ -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(
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user