fix: apply dart fix --apply
This commit is contained in:
@@ -27,7 +27,7 @@ class Bars extends DemoPage {
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
IconButton(onPressed: () {}, icon: const Icon(Icons.menu))
|
||||
IconButton(onPressed: () {}, icon: const Icon(Icons.menu)),
|
||||
],
|
||||
),
|
||||
const Gap(20),
|
||||
@@ -54,13 +54,13 @@ class Bars extends DemoPage {
|
||||
),
|
||||
ListTile(
|
||||
title: Text('Votre programme'),
|
||||
)
|
||||
),
|
||||
],
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () {},
|
||||
icon: const Icon(Icons.clear),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(20),
|
||||
@@ -81,7 +81,7 @@ class Bars extends DemoPage {
|
||||
TextWrapper('ACCUEIL'),
|
||||
TextWrapper('VOTRE PROGRAMME'),
|
||||
TextWrapper('LE STUDIO'),
|
||||
TextWrapper('SAVOIR FAIRE')
|
||||
TextWrapper('SAVOIR FAIRE'),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -50,7 +50,7 @@ class Buttons extends DemoPage {
|
||||
Gap(20),
|
||||
SimpleIconButtons(),
|
||||
Gap(20),
|
||||
FileSelectionButtons()
|
||||
FileSelectionButtons(),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -43,12 +43,12 @@ class PortfolioCards extends StatelessWidget {
|
||||
'assets/images/mockup_1.png',
|
||||
alignment: Alignment.topCenter,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
),
|
||||
],
|
||||
keywords: const [
|
||||
TextWrapper('UI Design'),
|
||||
TextWrapper('Developpement'),
|
||||
TextWrapper('Deploiement')
|
||||
TextWrapper('Deploiement'),
|
||||
],
|
||||
),
|
||||
const Gap(20),
|
||||
@@ -78,9 +78,9 @@ class PortfolioCards extends StatelessWidget {
|
||||
'assets/images/mockup_1.png',
|
||||
alignment: Alignment.topCenter,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(20),
|
||||
@@ -118,12 +118,12 @@ class PortfolioCards extends StatelessWidget {
|
||||
'assets/images/mockup_1.png',
|
||||
alignment: Alignment.topCenter,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
),
|
||||
],
|
||||
keywords: const [
|
||||
TextWrapper('UI Design'),
|
||||
TextWrapper('Developpement'),
|
||||
TextWrapper('Deploiement')
|
||||
TextWrapper('Deploiement'),
|
||||
],
|
||||
),
|
||||
const Gap(20),
|
||||
@@ -168,12 +168,12 @@ class PortfolioCards extends StatelessWidget {
|
||||
'assets/images/mockup_1.png',
|
||||
alignment: Alignment.topCenter,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
),
|
||||
],
|
||||
keywords: const [
|
||||
TextWrapper('UI Design'),
|
||||
TextWrapper('Developpement'),
|
||||
TextWrapper('Deploiement')
|
||||
TextWrapper('Deploiement'),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -47,7 +47,7 @@ class SkillCards extends StatelessWidget {
|
||||
gradientColors:
|
||||
const MultiColor([Colors.red, Colors.orange]),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
bulletColors: const MultiColor([Colors.red, Colors.orange]),
|
||||
title: const TextWrapper('Lorem Ipsum'),
|
||||
@@ -78,7 +78,7 @@ class SkillCards extends StatelessWidget {
|
||||
gradientColors:
|
||||
const MultiColor([Colors.blue, Colors.green]),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
bulletColors: const MultiColor([Colors.blue, Colors.green]),
|
||||
title: const TextWrapper('Lorem Ipsum'),
|
||||
|
||||
@@ -63,7 +63,7 @@ class NavigationItem extends StatelessWidget {
|
||||
.themeExtension<TopBarThemeExtension>()
|
||||
?.selectedIndicatorColors,
|
||||
TopBarThemeExtensionDefault.from(Theme.of(context))
|
||||
.selectedIndicatorColors
|
||||
.selectedIndicatorColors,
|
||||
],
|
||||
valueValidator: (value) => value?.isGradient,
|
||||
transform: (value) =>
|
||||
@@ -75,7 +75,7 @@ class NavigationItem extends StatelessWidget {
|
||||
.themeExtension<TopBarThemeExtension>()
|
||||
?.selectedIndicatorColors,
|
||||
TopBarThemeExtensionDefault.from(Theme.of(context))
|
||||
.selectedIndicatorColors
|
||||
.selectedIndicatorColors,
|
||||
],
|
||||
valueValidator: (value) => value?.isColor,
|
||||
transform: (value) => value?.color,
|
||||
|
||||
+2
-2
@@ -177,7 +177,7 @@ class FileSelectionButtonScreen
|
||||
)
|
||||
: null,
|
||||
boxShadow: [
|
||||
if (style.shadow != null) ...[style.shadow!]
|
||||
if (style.shadow != null) ...[style.shadow!],
|
||||
],
|
||||
borderRadius: style.radius,
|
||||
),
|
||||
@@ -214,7 +214,7 @@ class FileSelectionButtonScreen
|
||||
GradientText.fromWrapper(
|
||||
title!,
|
||||
gradientColors: style.foregroundColors,
|
||||
)
|
||||
),
|
||||
],
|
||||
|
||||
/// Choose color
|
||||
|
||||
+9
-9
@@ -156,7 +156,7 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
: null,
|
||||
|
||||
boxShadow: [
|
||||
if (style.shadow != null) ...[style.shadow!]
|
||||
if (style.shadow != null) ...[style.shadow!],
|
||||
],
|
||||
borderRadius: style.radius,
|
||||
),
|
||||
@@ -174,7 +174,7 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
if (prefix != null &&
|
||||
(prefix is Icon?) &&
|
||||
((prefix as Icon?)?.color != null)) ...[
|
||||
prefix!
|
||||
prefix!,
|
||||
] else if (style.foregroundColors?.color != null &&
|
||||
prefix != null) ...[
|
||||
ColorFiltered(
|
||||
@@ -183,9 +183,9 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
child: prefix,
|
||||
)
|
||||
),
|
||||
] else ...[
|
||||
prefix ?? const SizedBox.shrink()
|
||||
prefix ?? const SizedBox.shrink(),
|
||||
],
|
||||
Gap(style.padding?.vertical ?? 10),
|
||||
|
||||
@@ -204,13 +204,13 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
label!,
|
||||
style: style.labelStyle,
|
||||
gradientColors: style.foregroundColors,
|
||||
)
|
||||
),
|
||||
],
|
||||
Gap(style.padding?.vertical ?? 10),
|
||||
if (suffix != null &&
|
||||
(suffix is Icon?) &&
|
||||
((suffix as Icon?)?.color != null)) ...[
|
||||
suffix!
|
||||
suffix!,
|
||||
] else if (style.foregroundColors?.colors != null &&
|
||||
style.foregroundColors!.colors.isNotEmpty &&
|
||||
suffix != null) ...[
|
||||
@@ -220,7 +220,7 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
child: suffix,
|
||||
)
|
||||
),
|
||||
] else if (style.foregroundColors?.color != null &&
|
||||
suffix != null) ...[
|
||||
ColorFiltered(
|
||||
@@ -229,9 +229,9 @@ class FlatButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
child: suffix,
|
||||
)
|
||||
),
|
||||
] else ...[
|
||||
suffix ?? const SizedBox.shrink()
|
||||
suffix ?? const SizedBox.shrink(),
|
||||
],
|
||||
],
|
||||
),
|
||||
|
||||
+1
-1
@@ -152,7 +152,7 @@ class SimpleIconButtonScreen extends CubitScreen<ButtonCubit, ButtonState> {
|
||||
)
|
||||
: null,
|
||||
boxShadow: [
|
||||
if (style.shadow != null) ...[style.shadow!]
|
||||
if (style.shadow != null) ...[style.shadow!],
|
||||
],
|
||||
borderRadius: style.radius,
|
||||
),
|
||||
|
||||
+1
-1
@@ -181,7 +181,7 @@ class SymbolButtonScreen
|
||||
)
|
||||
: null,
|
||||
boxShadow: [
|
||||
if (style.shadow != null) ...[style.shadow!]
|
||||
if (style.shadow != null) ...[style.shadow!],
|
||||
],
|
||||
borderRadius: style.radius,
|
||||
),
|
||||
|
||||
+3
-3
@@ -102,7 +102,7 @@ class PricingCardTitles extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
const Gap(_bodyTopSpacing),
|
||||
]
|
||||
],
|
||||
],
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
@@ -111,7 +111,7 @@ class PricingCardTitles extends StatelessWidget {
|
||||
TextSpan(
|
||||
text: price.text.data,
|
||||
style: price.text.style,
|
||||
)
|
||||
),
|
||||
],
|
||||
if (pricing?.hasAsterisk ?? false) ...[
|
||||
WidgetSpan(
|
||||
@@ -128,7 +128,7 @@ class PricingCardTitles extends StatelessWidget {
|
||||
TextSpan(
|
||||
text: period.text.data,
|
||||
style: period.text.style,
|
||||
)
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
|
||||
@@ -134,7 +134,7 @@ class QuoteCard extends QuoteCardComponent with $QuoteCardCWMixin {
|
||||
],
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -147,7 +147,7 @@ class CardWrapper extends StatelessWidget {
|
||||
[
|
||||
radius,
|
||||
Theme.of(context).extension<CardThemeExtension>()?.radius,
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).radius
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).radius,
|
||||
],
|
||||
);
|
||||
|
||||
@@ -155,7 +155,7 @@ class CardWrapper extends StatelessWidget {
|
||||
[
|
||||
minSize,
|
||||
Theme.of(context).extension<CardThemeExtension>()?.minSize,
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).minSize
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).minSize,
|
||||
],
|
||||
);
|
||||
|
||||
@@ -163,7 +163,7 @@ class CardWrapper extends StatelessWidget {
|
||||
[
|
||||
maxSize,
|
||||
Theme.of(context).extension<CardThemeExtension>()?.maxSize,
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).maxSize
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).maxSize,
|
||||
],
|
||||
);
|
||||
|
||||
@@ -178,7 +178,7 @@ class CardWrapper extends StatelessWidget {
|
||||
Theme.of(context)
|
||||
.extension<CardThemeExtension>()
|
||||
?.backgroundColors,
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).backgroundColors
|
||||
CardThemeExtensionDefault.from(Theme.of(context)).backgroundColors,
|
||||
],
|
||||
valueValidator: (multiColor) => multiColor?.isGradient,
|
||||
transform: (multiColor) =>
|
||||
|
||||
Reference in New Issue
Block a user