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 abstract class QuoteCardComponent extends CardComponent
with CopyWithMixin<$QuoteCardComponentCWProxy> { with CopyWithMixin<$QuoteCardComponentCWProxy> {
const QuoteCardComponent({ const QuoteCardComponent({
required this.avatar, this.avatar,
required this.name, this.name,
required this.subtitle, this.subtitle,
required this.gradient, this.gradient,
required this.quote, this.quote,
this.leftQuote, this.leftQuote,
this.rightQuote, this.rightQuote,
super.radius = 12, super.radius = 12,
@ -47,11 +47,11 @@ abstract class QuoteCardComponent extends CardComponent
super.key, super.key,
}); });
final Widget avatar; final Widget? avatar;
final Widget name; final Widget? name;
final Text subtitle; final Text? subtitle;
final Gradient gradient; final Gradient? gradient;
final Widget quote; final Widget? quote;
final Widget? leftQuote; final Widget? leftQuote;
final Widget? rightQuote; final Widget? rightQuote;