withOpacity() -> withValues()

This commit is contained in:
Ashita Prasad
2025-03-02 15:46:24 +05:30
parent af45fa0642
commit a55ec0308a
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ class OverlayWidgetTemplate {
_overlay = OverlayEntry(
// replace with your own layout
builder: (context) => ColoredBox(
color: kColorBlack.withOpacity(kOverlayBackgroundOpacity),
color: kColorBlack.withValues(alpha: kOverlayBackgroundOpacity),
child: widget),
);
_overlayState!.insert(_overlay!);