Skip to content

Commit a55ec03

Browse files
committed
withOpacity() -> withValues()
1 parent af45fa0 commit a55ec03

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/widgets/overlay_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class OverlayWidgetTemplate {
1616
_overlay = OverlayEntry(
1717
// replace with your own layout
1818
builder: (context) => ColoredBox(
19-
color: kColorBlack.withOpacity(kOverlayBackgroundOpacity),
19+
color: kColorBlack.withValues(alpha: kOverlayBackgroundOpacity),
2020
child: widget),
2121
);
2222
_overlayState!.insert(_overlay!);

lib/widgets/video_previewer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class _VideoPreviewerState extends State<VideoPreviewer> {
6565
final iconColor = Theme.of(context).iconTheme.color;
6666
final progressBarColors = VideoProgressColors(
6767
playedColor: iconColor!,
68-
bufferedColor: iconColor.withOpacity(0.5),
69-
backgroundColor: iconColor.withOpacity(0.3),
68+
bufferedColor: iconColor.withValues(alpha: 0.5),
69+
backgroundColor: iconColor.withValues(alpha: 0.3),
7070
);
7171
return Scaffold(
7272
body: MouseRegion(

packages/apidash_design_system/lib/tokens/colors.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const kColorTransparent = Colors.transparent;
66
const kColorWhite = Colors.white;
77
const kColorBlack = Colors.black;
88
const kColorRed = Colors.red;
9-
final kColorLightDanger = Colors.red.withOpacity(0.9);
9+
final kColorLightDanger = Colors.red.withValues(alpha: 0.9);
1010
const kColorDarkDanger = Color(0xffcf6679);
1111

1212
const kColorSchemeSeed = Colors.blue;

0 commit comments

Comments
 (0)