From 4edc48eb1f618ec3f13fb4e40f9097005d2bef43 Mon Sep 17 00:00:00 2001 From: Badr Kouki Date: Sat, 10 May 2025 10:17:51 +0100 Subject: [PATCH] refactor: update deprecated opacity api --- lib/widgets/motion_toast_background.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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), ),