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(),