ui_layout/new_package #53
| @ -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( | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user