fixed deprecated warnings
This commit is contained in:
@@ -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,
|
||||
// ),
|
||||
|
||||
@@ -59,8 +59,10 @@ class StatusBarState extends State<StatusBar> {
|
||||
statusProvider.progress -
|
||||
36.0,
|
||||
decoration: BoxDecoration(
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withOpacity(0.8),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: 0.8),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user