feat/add #198
@ -17,7 +17,6 @@
 | 
				
			|||||||
import 'package:copy_with_extension/copy_with_extension.dart';
 | 
					import 'package:copy_with_extension/copy_with_extension.dart';
 | 
				
			||||||
import 'package:flutter/material.dart';
 | 
					import 'package:flutter/material.dart';
 | 
				
			||||||
import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
 | 
					import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
 | 
				
			||||||
import 'package:wyatt_ui_components/src/domain/entities/floating_buttons/floating_action_button_component.dart';
 | 
					 | 
				
			||||||
part 'component_theme_data.g.dart';
 | 
					part 'component_theme_data.g.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// {@template component_theme_data}
 | 
					/// {@template component_theme_data}
 | 
				
			||||||
@ -42,6 +41,7 @@ class ComponentThemeData {
 | 
				
			|||||||
    PortfolioCardComponent? portfolioCard,
 | 
					    PortfolioCardComponent? portfolioCard,
 | 
				
			||||||
    QuoteCardComponent? quoteCard,
 | 
					    QuoteCardComponent? quoteCard,
 | 
				
			||||||
    SkillCardComponent? skillCard,
 | 
					    SkillCardComponent? skillCard,
 | 
				
			||||||
 | 
					    PricingCardComponent? pricingCard,
 | 
				
			||||||
    FloatingActionButtonComponent? floatingActionButton,
 | 
					    FloatingActionButtonComponent? floatingActionButton,
 | 
				
			||||||
  }) =>
 | 
					  }) =>
 | 
				
			||||||
      ComponentThemeData.raw(
 | 
					      ComponentThemeData.raw(
 | 
				
			||||||
@ -60,6 +60,7 @@ class ComponentThemeData {
 | 
				
			|||||||
        portfolioCard: portfolioCard,
 | 
					        portfolioCard: portfolioCard,
 | 
				
			||||||
        quoteCard: quoteCard,
 | 
					        quoteCard: quoteCard,
 | 
				
			||||||
        skillCard: skillCard,
 | 
					        skillCard: skillCard,
 | 
				
			||||||
 | 
					        pricingCard: pricingCard,
 | 
				
			||||||
        floatingActionButton: floatingActionButton,
 | 
					        floatingActionButton: floatingActionButton,
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -81,6 +82,7 @@ class ComponentThemeData {
 | 
				
			|||||||
        portfolioCard: other.portfolioCard,
 | 
					        portfolioCard: other.portfolioCard,
 | 
				
			||||||
        quoteCard: other.quoteCard,
 | 
					        quoteCard: other.quoteCard,
 | 
				
			||||||
        skillCard: other.skillCard,
 | 
					        skillCard: other.skillCard,
 | 
				
			||||||
 | 
					        pricingCard: other.pricingCard,
 | 
				
			||||||
        floatingActionButton: other.floatingActionButton,
 | 
					        floatingActionButton: other.floatingActionButton,
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -106,6 +108,7 @@ class ComponentThemeData {
 | 
				
			|||||||
    this.portfolioCard,
 | 
					    this.portfolioCard,
 | 
				
			||||||
    this.quoteCard,
 | 
					    this.quoteCard,
 | 
				
			||||||
    this.skillCard,
 | 
					    this.skillCard,
 | 
				
			||||||
 | 
					    this.pricingCard,
 | 
				
			||||||
    this.floatingActionButton,
 | 
					    this.floatingActionButton,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -154,6 +157,9 @@ class ComponentThemeData {
 | 
				
			|||||||
  final SkillCardComponent? skillCard;
 | 
					  final SkillCardComponent? skillCard;
 | 
				
			||||||
  $SkillCardComponentCWProxy get skillCardComponent =>
 | 
					  $SkillCardComponentCWProxy get skillCardComponent =>
 | 
				
			||||||
      _get(skillCard, skillCard?.copyWith);
 | 
					      _get(skillCard, skillCard?.copyWith);
 | 
				
			||||||
 | 
					  final PricingCardComponent? pricingCard;
 | 
				
			||||||
 | 
					  $PricingCardComponentCWProxy get pricingCardComponent =>
 | 
				
			||||||
 | 
					      _get(pricingCard, pricingCard?.copyWith);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Rich Text
 | 
					  // Rich Text
 | 
				
			||||||
  final RichTextBuilderComponent? richTextBuilder;
 | 
					  final RichTextBuilderComponent? richTextBuilder;
 | 
				
			||||||
 | 
				
			|||||||
@ -41,6 +41,8 @@ abstract class _$ComponentThemeDataCWProxy {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  ComponentThemeData skillCard(SkillCardComponent? skillCard);
 | 
					  ComponentThemeData skillCard(SkillCardComponent? skillCard);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ComponentThemeData pricingCard(PricingCardComponent? pricingCard);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ComponentThemeData floatingActionButton(
 | 
					  ComponentThemeData floatingActionButton(
 | 
				
			||||||
      FloatingActionButtonComponent? floatingActionButton);
 | 
					      FloatingActionButtonComponent? floatingActionButton);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -66,6 +68,7 @@ abstract class _$ComponentThemeDataCWProxy {
 | 
				
			|||||||
    PortfolioCardComponent? portfolioCard,
 | 
					    PortfolioCardComponent? portfolioCard,
 | 
				
			||||||
    QuoteCardComponent? quoteCard,
 | 
					    QuoteCardComponent? quoteCard,
 | 
				
			||||||
    SkillCardComponent? skillCard,
 | 
					    SkillCardComponent? skillCard,
 | 
				
			||||||
 | 
					    PricingCardComponent? pricingCard,
 | 
				
			||||||
    FloatingActionButtonComponent? floatingActionButton,
 | 
					    FloatingActionButtonComponent? floatingActionButton,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -140,6 +143,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
 | 
				
			|||||||
  ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
 | 
					  ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
 | 
				
			||||||
      this(skillCard: skillCard);
 | 
					      this(skillCard: skillCard);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @override
 | 
				
			||||||
 | 
					  ComponentThemeData pricingCard(PricingCardComponent? pricingCard) =>
 | 
				
			||||||
 | 
					      this(pricingCard: pricingCard);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  ComponentThemeData floatingActionButton(
 | 
					  ComponentThemeData floatingActionButton(
 | 
				
			||||||
          FloatingActionButtonComponent? floatingActionButton) =>
 | 
					          FloatingActionButtonComponent? floatingActionButton) =>
 | 
				
			||||||
@ -169,6 +176,7 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
 | 
				
			|||||||
    Object? portfolioCard = const $CopyWithPlaceholder(),
 | 
					    Object? portfolioCard = const $CopyWithPlaceholder(),
 | 
				
			||||||
    Object? quoteCard = const $CopyWithPlaceholder(),
 | 
					    Object? quoteCard = const $CopyWithPlaceholder(),
 | 
				
			||||||
    Object? skillCard = const $CopyWithPlaceholder(),
 | 
					    Object? skillCard = const $CopyWithPlaceholder(),
 | 
				
			||||||
 | 
					    Object? pricingCard = const $CopyWithPlaceholder(),
 | 
				
			||||||
    Object? floatingActionButton = const $CopyWithPlaceholder(),
 | 
					    Object? floatingActionButton = const $CopyWithPlaceholder(),
 | 
				
			||||||
  }) {
 | 
					  }) {
 | 
				
			||||||
    return ComponentThemeData(
 | 
					    return ComponentThemeData(
 | 
				
			||||||
@ -232,6 +240,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
 | 
				
			|||||||
          ? _value.skillCard
 | 
					          ? _value.skillCard
 | 
				
			||||||
          // ignore: cast_nullable_to_non_nullable
 | 
					          // ignore: cast_nullable_to_non_nullable
 | 
				
			||||||
          : skillCard as SkillCardComponent?,
 | 
					          : skillCard as SkillCardComponent?,
 | 
				
			||||||
 | 
					      pricingCard: pricingCard == const $CopyWithPlaceholder()
 | 
				
			||||||
 | 
					          ? _value.pricingCard
 | 
				
			||||||
 | 
					          // ignore: cast_nullable_to_non_nullable
 | 
				
			||||||
 | 
					          : pricingCard as PricingCardComponent?,
 | 
				
			||||||
      floatingActionButton: floatingActionButton == const $CopyWithPlaceholder()
 | 
					      floatingActionButton: floatingActionButton == const $CopyWithPlaceholder()
 | 
				
			||||||
          ? _value.floatingActionButton
 | 
					          ? _value.floatingActionButton
 | 
				
			||||||
          // ignore: cast_nullable_to_non_nullable
 | 
					          // ignore: cast_nullable_to_non_nullable
 | 
				
			||||||
 | 
				
			|||||||
@ -117,9 +117,9 @@ class PricingCardTitles extends StatelessWidget {
 | 
				
			|||||||
                WidgetSpan(
 | 
					                WidgetSpan(
 | 
				
			||||||
                  child: Transform.translate(
 | 
					                  child: Transform.translate(
 | 
				
			||||||
                    offset: const Offset(5, -15),
 | 
					                    offset: const Offset(5, -15),
 | 
				
			||||||
                    child: const Text(
 | 
					                    child: Text(
 | 
				
			||||||
                      '*  ',
 | 
					                      '*  ',
 | 
				
			||||||
                      style: TextStyle(fontSize: 18),
 | 
					                      style: titleStyle?.copyWith(fontSize: 18),
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
                  ),
 | 
					                  ),
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
 | 
				
			|||||||
@ -39,5 +39,6 @@ abstract class WyattComponentThemeData {
 | 
				
			|||||||
    portfolioCard: PortfolioCard(),
 | 
					    portfolioCard: PortfolioCard(),
 | 
				
			||||||
    quoteCard: QuoteCard(),
 | 
					    quoteCard: QuoteCard(),
 | 
				
			||||||
    skillCard: SkillCard(),
 | 
					    skillCard: SkillCard(),
 | 
				
			||||||
 | 
					    pricingCard: PricingCard(),
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user