feat(ui_kit): add card theme extension, fix bugs & update example (close #126)
continuous-integration/drone/push Build is failing

This commit was merged in pull request #136.
This commit is contained in:
2023-02-14 11:34:45 +01:00
parent ea18d39c44
commit 4b37175d17
44 changed files with 775 additions and 328 deletions
@@ -22,7 +22,7 @@ abstract class CardComponent extends Component {
this.radius = 12,
this.padding = 25,
this.borderColors,
this.backgroundColor,
this.backgroundColors,
this.minSize = const Size(330, 230),
this.maxSize = const Size(330, 530),
this.shadow = const BoxShadow(
@@ -44,7 +44,7 @@ abstract class CardComponent extends Component {
final List<Color>? borderColors;
/// Card background color
final Color? backgroundColor;
final List<Color>? backgroundColors;
/// Minimum size for this card
final Size? minSize;
@@ -33,7 +33,7 @@ abstract class InformationCardComponent extends CardComponent
super.radius,
super.padding,
super.borderColors,
super.backgroundColor,
super.backgroundColors,
super.minSize,
super.maxSize,
super.shadow,
@@ -15,7 +15,7 @@ abstract class $InformationCardComponentCWProxy {
InformationCardComponent radius(double? radius);
InformationCardComponent padding(double? padding);
InformationCardComponent borderColors(List<Color>? borderColors);
InformationCardComponent backgroundColor(Color? backgroundColor);
InformationCardComponent backgroundColors(List<Color>? backgroundColors);
InformationCardComponent minSize(Size? minSize);
InformationCardComponent maxSize(Size? maxSize);
InformationCardComponent shadow(BoxShadow? shadow);
@@ -30,7 +30,7 @@ abstract class $InformationCardComponentCWProxy {
double? radius,
double? padding,
List<Color>? borderColors,
Color? backgroundColor,
List<Color>? backgroundColors,
Size? minSize,
Size? maxSize,
BoxShadow? shadow,
@@ -25,6 +25,7 @@ part 'portfolio_card_component.g.dart';
abstract class PortfolioCardComponent extends CardComponent
with CopyWithMixin<$PortfolioCardComponentCWProxy> {
const PortfolioCardComponent({
this.secondaryBackgroundColors,
this.showImagesOnTop,
this.keyword,
this.description,
@@ -36,7 +37,7 @@ abstract class PortfolioCardComponent extends CardComponent
super.radius,
super.padding,
super.borderColors,
super.backgroundColor,
super.backgroundColors,
super.minSize,
super.maxSize,
super.shadow,
@@ -52,4 +53,5 @@ abstract class PortfolioCardComponent extends CardComponent
final TextWrapper? projectName;
final TextWrapper? subtitle;
final List<Widget>? ctas;
final Color? secondaryBackgroundColors;
}
@@ -7,6 +7,8 @@ part of 'portfolio_card_component.dart';
// **************************************************************************
abstract class $PortfolioCardComponentCWProxy {
PortfolioCardComponent secondaryBackgroundColors(
Color? secondaryBackgroundColors);
PortfolioCardComponent showImagesOnTop(bool? showImagesOnTop);
PortfolioCardComponent keyword(List<TextWrapper>? keyword);
PortfolioCardComponent description(TextWrapper? description);
@@ -18,13 +20,14 @@ abstract class $PortfolioCardComponentCWProxy {
PortfolioCardComponent radius(double? radius);
PortfolioCardComponent padding(double? padding);
PortfolioCardComponent borderColors(List<Color>? borderColors);
PortfolioCardComponent backgroundColor(Color? backgroundColor);
PortfolioCardComponent backgroundColors(List<Color>? backgroundColors);
PortfolioCardComponent minSize(Size? minSize);
PortfolioCardComponent maxSize(Size? maxSize);
PortfolioCardComponent shadow(BoxShadow? shadow);
PortfolioCardComponent background(Widget? background);
PortfolioCardComponent key(Key? key);
PortfolioCardComponent call({
Color? secondaryBackgroundColors,
bool? showImagesOnTop,
List<TextWrapper>? keyword,
TextWrapper? description,
@@ -36,7 +39,7 @@ abstract class $PortfolioCardComponentCWProxy {
double? radius,
double? padding,
List<Color>? borderColors,
Color? backgroundColor,
List<Color>? backgroundColors,
Size? minSize,
Size? maxSize,
BoxShadow? shadow,
@@ -35,7 +35,7 @@ abstract class QuoteCardComponent extends CardComponent
super.radius,
super.padding,
super.borderColors,
super.backgroundColor,
super.backgroundColors,
super.minSize,
super.maxSize,
super.shadow,
@@ -17,7 +17,7 @@ abstract class $QuoteCardComponentCWProxy {
QuoteCardComponent radius(double? radius);
QuoteCardComponent padding(double? padding);
QuoteCardComponent borderColors(List<Color>? borderColors);
QuoteCardComponent backgroundColor(Color? backgroundColor);
QuoteCardComponent backgroundColors(List<Color>? backgroundColors);
QuoteCardComponent minSize(Size? minSize);
QuoteCardComponent maxSize(Size? maxSize);
QuoteCardComponent shadow(BoxShadow? shadow);
@@ -34,7 +34,7 @@ abstract class $QuoteCardComponentCWProxy {
double? radius,
double? padding,
List<Color>? borderColors,
Color? backgroundColor,
List<Color>? backgroundColors,
Size? minSize,
Size? maxSize,
BoxShadow? shadow,
@@ -31,10 +31,11 @@ abstract class SkillCardComponent extends CardComponent
this.description,
this.skills,
this.leadingIcon,
this.secondaryBackgroundColors,
super.radius,
super.padding,
super.borderColors,
super.backgroundColor,
super.backgroundColors,
super.minSize,
super.maxSize,
super.shadow,
@@ -48,4 +49,5 @@ abstract class SkillCardComponent extends CardComponent
final TextWrapper? description;
final List<TextWrapper>? skills;
final IconData? leadingIcon;
final Color? secondaryBackgroundColors;
}
@@ -16,11 +16,13 @@ abstract class $SkillCardComponentCWProxy {
SkillCardComponent radius(double? radius);
SkillCardComponent padding(double? padding);
SkillCardComponent borderColors(List<Color>? borderColors);
SkillCardComponent backgroundColor(Color? backgroundColor);
SkillCardComponent backgroundColors(List<Color>? backgroundColors);
SkillCardComponent minSize(Size? minSize);
SkillCardComponent maxSize(Size? maxSize);
SkillCardComponent shadow(BoxShadow? shadow);
SkillCardComponent background(Widget? background);
SkillCardComponent secondaryBackgroundColors(
Color? secondaryBackgroundColors);
SkillCardComponent key(Key? key);
SkillCardComponent call({
IconData? icon,
@@ -32,11 +34,12 @@ abstract class $SkillCardComponentCWProxy {
double? radius,
double? padding,
List<Color>? borderColors,
Color? backgroundColor,
List<Color>? backgroundColors,
Size? minSize,
Size? maxSize,
BoxShadow? shadow,
Widget? background,
Color? secondaryBackgroundColors,
Key? key,
});
}