diff --git a/lib/widgets/motion_toast_background.dart b/lib/widgets/motion_toast_background.dart index e88185a..c3acf4d 100644 --- a/lib/widgets/motion_toast_background.dart +++ b/lib/widgets/motion_toast_background.dart @@ -24,7 +24,9 @@ class MotionToastBackground extends StatelessWidget { Widget build(BuildContext context) { return Container( decoration: BoxDecoration( - color: backgroundColor.withOpacity(opacity), + color: backgroundColor.withValues( + alpha: opacity, + ), borderRadius: BorderRadius.all( Radius.circular(borderRadius), ),