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
@@ -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),
),
),
),
],
),