refactor(ui_kit): Refactored code using the UI components package, due to breaking changes

This commit is contained in:
2023-08-28 14:47:15 +02:00
parent 693e3398b6
commit 8be4efbb52
3 changed files with 71 additions and 72 deletions
@@ -30,13 +30,13 @@ class PortfolioCards extends StatelessWidget {
'quis elit ut amet velit. Incididunt fugiat proident '
'proident deserunt tempor Lorem cillum qui do '),
ctas: [
context.components.flatButtonComponent.call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
context.components.flatButtonComponent().call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
],
assets: [
Image.asset(
@@ -65,13 +65,13 @@ class PortfolioCards extends StatelessWidget {
'quis elit ut amet velit. Incididunt fugiat proident '
'proident deserunt tempor Lorem cillum qui do '),
ctas: [
context.components.flatButtonComponent.call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
context.components.flatButtonComponent().call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
],
assets: [
Image.asset(
@@ -100,13 +100,13 @@ class PortfolioCards extends StatelessWidget {
'quis elit ut amet velit. Incididunt fugiat proident '
'proident deserunt tempor Lorem cillum qui do '),
ctas: [
context.components.flatButtonComponent.call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
context.components.flatButtonComponent().call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
],
assets: [
Image.asset(
@@ -145,13 +145,13 @@ class PortfolioCards extends StatelessWidget {
'quis elit ut amet velit. Incididunt fugiat proident '
'proident deserunt tempor Lorem cillum qui do '),
ctas: [
context.components.flatButtonComponent.call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
context.components.flatButtonComponent().call(
label: const TextWrapper('En savoir plus'),
suffix: const Icon(
Icons.arrow_forward_ios,
size: 15,
),
),
],
assets: [
Image.asset(
@@ -73,20 +73,20 @@ class PricingCards extends StatelessWidget {
),
),
],
cta: context.components.flatButtonComponent.call(
label: const TextWrapper(
'Contactez-nous',
style: TextStyle(color: Colors.white),
),
normalStyle: FlatButtonThemeExtensionImpl.dark(
theme: Theme.of(context),
).normalStyle?.copyWith(
backgroundColors:
const MultiColor(Constants.blueBtnGradient),
borderColors:
const MultiColor(Constants.blueBtnGradient),
cta: context.components.flatButtonComponent().call(
label: const TextWrapper(
'Contactez-nous',
style: TextStyle(color: Colors.white),
),
),
normalStyle: FlatButtonThemeExtensionImpl.dark(
theme: Theme.of(context),
).normalStyle?.copyWith(
backgroundColors:
const MultiColor(Constants.blueBtnGradient),
borderColors:
const MultiColor(Constants.blueBtnGradient),
),
),
),
const Gap(20),
PricingCard(
@@ -130,20 +130,20 @@ class PricingCards extends StatelessWidget {
),
),
],
cta: context.components.flatButtonComponent.call(
label: const TextWrapper(
'Contactez-nous',
style: TextStyle(color: Colors.white),
),
normalStyle: FlatButtonThemeExtensionImpl.dark(
theme: Theme.of(context),
).normalStyle?.copyWith(
backgroundColors:
const MultiColor(Constants.purpleGradient),
borderColors:
const MultiColor(Constants.purpleGradient),
cta: context.components.flatButtonComponent().call(
label: const TextWrapper(
'Contactez-nous',
style: TextStyle(color: Colors.white),
),
),
normalStyle: FlatButtonThemeExtensionImpl.dark(
theme: Theme.of(context),
).normalStyle?.copyWith(
backgroundColors:
const MultiColor(Constants.purpleGradient),
borderColors:
const MultiColor(Constants.purpleGradient),
),
),
),
],
),