feat(ui_components): make fields nullable and not required in quote card

This commit is contained in:
Malo Léon 2023-02-08 15:54:50 +01:00 committed by Hugo Pointcheval
parent 68a69c9d3c
commit c7fad78710
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

@ -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;