From e87a36dba62c5d3ba11e289d8712f80f88359762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Tue, 21 Feb 2023 18:57:30 +0100 Subject: [PATCH] feat(ui_components): add new components to theme data (close #152) --- .../src/features/component_theme_data.dart | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/wyatt_ui_components/lib/src/features/component_theme_data.dart b/packages/wyatt_ui_components/lib/src/features/component_theme_data.dart index 0d247bf3..e4103866 100644 --- a/packages/wyatt_ui_components/lib/src/features/component_theme_data.dart +++ b/packages/wyatt_ui_components/lib/src/features/component_theme_data.dart @@ -17,15 +17,39 @@ import 'package:wyatt_ui_components/src/domain/entities/entities.dart'; class ComponentThemeData { - const ComponentThemeData.raw({ this.appBar, this.bottomNavigationBar, this.errorWidget, this.loadingWidget, + this.richTextBuilderComponent, + this.textInputComponent, + this.fileSelectionButtonComponent, + this.flatButtonComponent, + this.simpleIconButtonComponent, + this.symbolButtonComponent, + this.informationCardComponent, + this.portfolioCardComponent, + this.quoteCardComponent, + this.skillCardComponent, }); final AppBarComponent? appBar; final BottomNavigationBarComponent? bottomNavigationBar; final ErrorWidgetComponent? errorWidget; final LoadingWidgetComponent? loadingWidget; + + final RichTextBuilderComponent? richTextBuilderComponent; + final TextInputComponent? textInputComponent; + + // Buttons + final FileSelectionButtonComponent? fileSelectionButtonComponent; + final FlatButtonComponent? flatButtonComponent; + final SimpleIconButtonComponent? simpleIconButtonComponent; + final SymbolButtonComponent? symbolButtonComponent; + + // Cards + final InformationCardComponent? informationCardComponent; + final PortfolioCardComponent? portfolioCardComponent; + final QuoteCardComponent? quoteCardComponent; + final SkillCardComponent? skillCardComponent; }