feat(ui): export pricing card
This commit is contained in:
parent
a078f6b6b0
commit
9a3ae2de5c
@ -17,7 +17,6 @@
|
||||
import 'package:copy_with_extension/copy_with_extension.dart';
|
||||
import 'package:flutter/material.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';
|
||||
|
||||
/// {@template component_theme_data}
|
||||
@ -42,6 +41,7 @@ class ComponentThemeData {
|
||||
PortfolioCardComponent? portfolioCard,
|
||||
QuoteCardComponent? quoteCard,
|
||||
SkillCardComponent? skillCard,
|
||||
PricingCardComponent? pricingCard,
|
||||
FloatingActionButtonComponent? floatingActionButton,
|
||||
}) =>
|
||||
ComponentThemeData.raw(
|
||||
@ -60,6 +60,7 @@ class ComponentThemeData {
|
||||
portfolioCard: portfolioCard,
|
||||
quoteCard: quoteCard,
|
||||
skillCard: skillCard,
|
||||
pricingCard: pricingCard,
|
||||
floatingActionButton: floatingActionButton,
|
||||
);
|
||||
|
||||
@ -81,6 +82,7 @@ class ComponentThemeData {
|
||||
portfolioCard: other.portfolioCard,
|
||||
quoteCard: other.quoteCard,
|
||||
skillCard: other.skillCard,
|
||||
pricingCard: other.pricingCard,
|
||||
floatingActionButton: other.floatingActionButton,
|
||||
);
|
||||
|
||||
@ -106,6 +108,7 @@ class ComponentThemeData {
|
||||
this.portfolioCard,
|
||||
this.quoteCard,
|
||||
this.skillCard,
|
||||
this.pricingCard,
|
||||
this.floatingActionButton,
|
||||
});
|
||||
|
||||
@ -154,6 +157,9 @@ class ComponentThemeData {
|
||||
final SkillCardComponent? skillCard;
|
||||
$SkillCardComponentCWProxy get skillCardComponent =>
|
||||
_get(skillCard, skillCard?.copyWith);
|
||||
final PricingCardComponent? pricingCard;
|
||||
$PricingCardComponentCWProxy get pricingCardComponent =>
|
||||
_get(pricingCard, pricingCard?.copyWith);
|
||||
|
||||
// Rich Text
|
||||
final RichTextBuilderComponent? richTextBuilder;
|
||||
|
@ -41,6 +41,8 @@ abstract class _$ComponentThemeDataCWProxy {
|
||||
|
||||
ComponentThemeData skillCard(SkillCardComponent? skillCard);
|
||||
|
||||
ComponentThemeData pricingCard(PricingCardComponent? pricingCard);
|
||||
|
||||
ComponentThemeData floatingActionButton(
|
||||
FloatingActionButtonComponent? floatingActionButton);
|
||||
|
||||
@ -66,6 +68,7 @@ abstract class _$ComponentThemeDataCWProxy {
|
||||
PortfolioCardComponent? portfolioCard,
|
||||
QuoteCardComponent? quoteCard,
|
||||
SkillCardComponent? skillCard,
|
||||
PricingCardComponent? pricingCard,
|
||||
FloatingActionButtonComponent? floatingActionButton,
|
||||
});
|
||||
}
|
||||
@ -140,6 +143,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
||||
ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
|
||||
this(skillCard: skillCard);
|
||||
|
||||
@override
|
||||
ComponentThemeData pricingCard(PricingCardComponent? pricingCard) =>
|
||||
this(pricingCard: pricingCard);
|
||||
|
||||
@override
|
||||
ComponentThemeData floatingActionButton(
|
||||
FloatingActionButtonComponent? floatingActionButton) =>
|
||||
@ -169,6 +176,7 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
||||
Object? portfolioCard = const $CopyWithPlaceholder(),
|
||||
Object? quoteCard = const $CopyWithPlaceholder(),
|
||||
Object? skillCard = const $CopyWithPlaceholder(),
|
||||
Object? pricingCard = const $CopyWithPlaceholder(),
|
||||
Object? floatingActionButton = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return ComponentThemeData(
|
||||
@ -232,6 +240,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
||||
? _value.skillCard
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: skillCard as SkillCardComponent?,
|
||||
pricingCard: pricingCard == const $CopyWithPlaceholder()
|
||||
? _value.pricingCard
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: pricingCard as PricingCardComponent?,
|
||||
floatingActionButton: floatingActionButton == const $CopyWithPlaceholder()
|
||||
? _value.floatingActionButton
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
|
@ -117,9 +117,9 @@ class PricingCardTitles extends StatelessWidget {
|
||||
WidgetSpan(
|
||||
child: Transform.translate(
|
||||
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(),
|
||||
quoteCard: QuoteCard(),
|
||||
skillCard: SkillCard(),
|
||||
pricingCard: PricingCard(),
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user