Skip to content

Commit

Permalink
Revert "lint fixes"
Browse files Browse the repository at this point in the history
This reverts commit 64d0fc5.
  • Loading branch information
tilucasoli committed Feb 6, 2025
1 parent 64d0fc5 commit 9333008
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SegmentedControlStyle extends SpecStyle<SegmentedControlSpecUtility> {
..wrap.intrinsicHeight()
..padding.all(4)
..borderRadius.all(8)
..color(Colors.black.withValues(alpha: 0.7)),
..color(Colors.black.withOpacity(0.07)),
];

final dividerStyle = [
Expand All @@ -33,25 +33,25 @@ class SegmentedControlStyle extends SpecStyle<SegmentedControlSpecUtility> {

final itemStyle = [
$.item.label.chain
..style.color(Colors.black.withValues(alpha: 0.6))
..style.color(Colors.black.withOpacity(0.6))
..style.fontSize(14),
$.item.icon.chain
..size(20)
..color(Colors.black.withValues(alpha: 0.6)),
..color(Colors.black.withOpacity(0.6)),
$.item.container.chain
..padding.vertical(6)
..padding.horizontal(12)
..borderRadius.all(6),
spec.on.selected(
$.item.container.chain
..color.white()
..shadow.color(Colors.black.withValues(alpha: 0.1))
..shadow.color(Colors.black.withOpacity(0.1))
..shadow.offset(0, 2)
..shadow.spreadRadius(1)
..shadow.blurRadius(4),
$.item.chain
..icon.color(Colors.black.withValues(alpha: 1))
..label.style.color(Colors.black.withValues(alpha: 1)),
..icon.color(Colors.black.withOpacity(1))
..label.style.color(Colors.black.withOpacity(1)),
),
];

Expand Down
4 changes: 2 additions & 2 deletions packages/remix/lib/src/components/select/select_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class SelectStyle extends SpecStyle<SelectSpecUtility> {
..style.fontSize(14)
..style.color.black(),
spec.on.disabled(
$.button.container.color(Colors.black.withValues(alpha: 0.05)),
$.button.container.color(Colors.black.withOpacity(0.05)),
),
];

final menuStyle = [
$.menu.container.chain
..borderRadius(6)
..shadow.color(Colors.black.withValues(alpha: 0.07))
..shadow.color(Colors.black.withOpacity(0.07))
..shadow.blurRadius(5)
..color.white()
..border.color.black12()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DottedSpinnerPainter extends SpinnerPainter {
final angle = i * lineAngle;
final opacity = (lines - i + animation.value * lines) % lines / lines;

paint.color = color.withValues(alpha: opacity);
paint.color = color.withOpacity(opacity);

final lineHeight = radius * 0.45;

Expand Down Expand Up @@ -78,7 +78,7 @@ class StrippedSpinnerPainter extends SpinnerPainter {
final angle = i * lineAngle;
final opacity = (lines - i + animation.value * lines) % lines / lines;

paint.color = color.withValues(alpha: opacity);
paint.color = color.withOpacity(opacity);

final lineHeight = radius * 0.8;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ class FortalezaButtonStyle extends ButtonStyle {
return Style.create([
$.container.color(color),
spec.on.hover(
$.container.color(color.withValues(alpha: 0.8)),
$.container.color(color.withOpacity(0.8)),
),
soft(
$.container.color(color.withValues(alpha: 0.1)),
$.container.color(color.withOpacity(0.1)),
$.label.style.color(color),
spec.on.hover(
$.container.color(color.withValues(alpha: 0.2)),
$.container.color(color.withOpacity(0.2)),
),
spec.on.disabled(
disabled(),
Expand All @@ -68,11 +68,11 @@ class FortalezaButtonStyle extends ButtonStyle {
),
),
surface(
$.container.color(color.withValues(alpha: 0.1)),
$.container.border.color(color.withValues(alpha: 0.7)),
$.container.color(color.withOpacity(0.1)),
$.container.border.color(color.withOpacity(0.7)),
$.label.style.color(color),
spec.on.hover(
$.container.color(color.withValues(alpha: 0.2)),
$.container.color(color.withOpacity(0.2)),
$.container.border.color.withOpacity(0.8),
),
spec.on.disabled(
Expand Down

0 comments on commit 9333008

Please sign in to comment.