mirror of
https://github.com/foss42/apidash.git
synced 2025-05-24 01:36:46 +08:00
withOpacity() -> withValues()
This commit is contained in:
@ -16,7 +16,7 @@ class OverlayWidgetTemplate {
|
|||||||
_overlay = OverlayEntry(
|
_overlay = OverlayEntry(
|
||||||
// replace with your own layout
|
// replace with your own layout
|
||||||
builder: (context) => ColoredBox(
|
builder: (context) => ColoredBox(
|
||||||
color: kColorBlack.withOpacity(kOverlayBackgroundOpacity),
|
color: kColorBlack.withValues(alpha: kOverlayBackgroundOpacity),
|
||||||
child: widget),
|
child: widget),
|
||||||
);
|
);
|
||||||
_overlayState!.insert(_overlay!);
|
_overlayState!.insert(_overlay!);
|
||||||
|
@ -65,8 +65,8 @@ class _VideoPreviewerState extends State<VideoPreviewer> {
|
|||||||
final iconColor = Theme.of(context).iconTheme.color;
|
final iconColor = Theme.of(context).iconTheme.color;
|
||||||
final progressBarColors = VideoProgressColors(
|
final progressBarColors = VideoProgressColors(
|
||||||
playedColor: iconColor!,
|
playedColor: iconColor!,
|
||||||
bufferedColor: iconColor.withOpacity(0.5),
|
bufferedColor: iconColor.withValues(alpha: 0.5),
|
||||||
backgroundColor: iconColor.withOpacity(0.3),
|
backgroundColor: iconColor.withValues(alpha: 0.3),
|
||||||
);
|
);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: MouseRegion(
|
body: MouseRegion(
|
||||||
|
@ -6,7 +6,7 @@ const kColorTransparent = Colors.transparent;
|
|||||||
const kColorWhite = Colors.white;
|
const kColorWhite = Colors.white;
|
||||||
const kColorBlack = Colors.black;
|
const kColorBlack = Colors.black;
|
||||||
const kColorRed = Colors.red;
|
const kColorRed = Colors.red;
|
||||||
final kColorLightDanger = Colors.red.withOpacity(0.9);
|
final kColorLightDanger = Colors.red.withValues(alpha: 0.9);
|
||||||
const kColorDarkDanger = Color(0xffcf6679);
|
const kColorDarkDanger = Color(0xffcf6679);
|
||||||
|
|
||||||
const kColorSchemeSeed = Colors.blue;
|
const kColorSchemeSeed = Colors.blue;
|
||||||
|
Reference in New Issue
Block a user