fixed deprecated warnings

This commit is contained in:
Marton Kiss
2025-01-31 10:24:37 +01:00
parent 67649cc5fd
commit b5ee1afe05
102 changed files with 755 additions and 557 deletions

View File

@@ -28,7 +28,9 @@ class CustomSwitch extends StatelessWidget {
borderRadius: const BorderRadius.all(
Radius.circular(25.0),
),
color: value ? Theme.of(context).colorScheme.secondary : Theme.of(context).highlightColor,
color: value
? Theme.of(context).colorScheme.secondary
: Theme.of(context).highlightColor,
),
),
AnimatedAlign(
@@ -44,7 +46,7 @@ class CustomSwitch extends StatelessWidget {
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black12.withOpacity(0.1),
color: Colors.black12.withValues(alpha: 0.1),
spreadRadius: 0.5,
blurRadius: 1,
)