From ab825ad0dedc729dea1595bdf1fcd2273751c621 Mon Sep 17 00:00:00 2001 From: Akhil George Date: Mon, 17 Nov 2025 20:18:31 +0530 Subject: [PATCH] Replace deprecated withOpacity() with withValues() --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 3e860d6..7820550 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -444,7 +444,7 @@ class _CarouselWithIndicatorState extends State { color: (Theme.of(context).brightness == Brightness.dark ? Colors.white : Colors.black) - .withOpacity(_current == entry.key ? 0.9 : 0.4)), + .withValues(alpha: _current == entry.key ? 0.9 : 0.4)), ), ); }).toList(),