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

@@ -34,7 +34,7 @@ class NavbarItem extends StatelessWidget {
padding: const EdgeInsets.all(12.0),
decoration: BoxDecoration(
color: active
? Theme.of(context).colorScheme.tertiary.withOpacity(.2)
? Theme.of(context).colorScheme.tertiary.withValues(alpha: .2)
: null,
borderRadius: BorderRadius.circular(14.0),
),
@@ -50,8 +50,8 @@ class NavbarItem extends StatelessWidget {
// IconTheme(
// data: IconThemeData(
// color: Theme.of(context).brightness == Brightness.light
// ? Colors.black.withOpacity(.5)
// : Colors.white.withOpacity(.3),
// ? Colors.black.withValues(alpha: .5)
// : Colors.white.withValues(alpha: .3),
// ),
// child: icon,
// ),