refactor(ui_kit): Refactored code using the UI components package, due to breaking changes

This commit is contained in:
2023-08-28 14:47:15 +02:00
parent 693e3398b6
commit 8be4efbb52
3 changed files with 71 additions and 72 deletions
@@ -22,23 +22,22 @@ import 'package:wyatt_ui_kit/wyatt_ui_kit.dart';
/// {@endtemplate}
abstract class WyattComponentThemeData {
/// {@macro wyatt_component_theme_data}
static const ComponentThemeData wyattComponentThemeData =
ComponentThemeData.raw(
topAppBar: TopAppBar(),
topNavigationBar: TopNavigationBar(),
// bottomNavigationBar: ,
// error: ,
loader: Loader(),
richTextBuilder: RichTextBuilder(),
textInput: TextInput(),
fileSelectionButton: FileSelectionButton(),
flatButton: FlatButton(),
simpleIconButton: SimpleIconButton(),
symbolButton: SymbolButton(),
informationCard: InformationCard(),
portfolioCard: PortfolioCard(),
quoteCard: QuoteCard(),
skillCard: SkillCard(),
pricingCard: PricingCard(),
static ComponentThemeData wyattComponentThemeData = ComponentThemeData.raw(
topAppBars: const TopAppBar().registry(),
topNavigationBars: const TopNavigationBar().registry(),
// bottomNavigationBars: ,
// errors: ,
loaders: const Loader().registry(),
richTextBuilders: const RichTextBuilder().registry(),
textInputs: const TextInput().registry(),
fileSelectionButtons: const FileSelectionButton().registry(),
flatButtons: const FlatButton().registry(),
simpleIconButtons: const SimpleIconButton().registry(),
symbolButtons: const SymbolButton().registry(),
informationCards: const InformationCard().registry(),
portfolioCards: const PortfolioCard().registry(),
quoteCards: const QuoteCard().registry(),
skillCards: const SkillCard().registry(),
pricingCards: const PricingCard().registry(),
);
}