From c7fad787101a832759ad21470d1a0e174f0a2d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Wed, 8 Feb 2023 15:54:50 +0100 Subject: [PATCH] feat(ui_components): make fields nullable and not required in quote card --- .../entities/cards/quote_card_component.dart | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart index 004cfea8..c5ac26c7 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart @@ -25,11 +25,11 @@ part 'quote_card_component.g.dart'; abstract class QuoteCardComponent extends CardComponent with CopyWithMixin<$QuoteCardComponentCWProxy> { const QuoteCardComponent({ - required this.avatar, - required this.name, - required this.subtitle, - required this.gradient, - required this.quote, + this.avatar, + this.name, + this.subtitle, + this.gradient, + this.quote, this.leftQuote, this.rightQuote, super.radius = 12, @@ -47,11 +47,11 @@ abstract class QuoteCardComponent extends CardComponent super.key, }); - final Widget avatar; - final Widget name; - final Text subtitle; - final Gradient gradient; - final Widget quote; + final Widget? avatar; + final Widget? name; + final Text? subtitle; + final Gradient? gradient; + final Widget? quote; final Widget? leftQuote; final Widget? rightQuote;