mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 09:46:01 -07:00
chore: Fix dart deprecation messages
This commit is contained in:
parent
607dea3de1
commit
39a7537116
81 changed files with 258 additions and 195 deletions
|
|
@ -20,9 +20,9 @@ IconData getBackIcon(BuildContext context) {
|
|||
}
|
||||
|
||||
final _shadows = [
|
||||
BoxShadow(blurRadius: 1, spreadRadius: 1, color: Colors.black.withOpacity(0.2)),
|
||||
BoxShadow(blurRadius: 4, spreadRadius: 4, color: Colors.black.withOpacity(0.1)),
|
||||
BoxShadow(blurRadius: 16, spreadRadius: 6, color: Colors.black.withOpacity(0.2)),
|
||||
BoxShadow(blurRadius: 1, spreadRadius: 1, color: Colors.black.withValues(alpha: 0.2)),
|
||||
BoxShadow(blurRadius: 4, spreadRadius: 4, color: Colors.black.withValues(alpha: 0.1)),
|
||||
BoxShadow(blurRadius: 16, spreadRadius: 6, color: Colors.black.withValues(alpha: 0.2)),
|
||||
];
|
||||
|
||||
class ElevatedIconButton extends ConsumerWidget {
|
||||
|
|
@ -36,7 +36,7 @@ class ElevatedIconButton extends ConsumerWidget {
|
|||
return IconButton(
|
||||
onPressed: onPressed,
|
||||
style: IconButtonTheme.of(context).style?.copyWith(
|
||||
backgroundColor: WidgetStatePropertyAll(color?.withOpacity(0.15)),
|
||||
backgroundColor: WidgetStatePropertyAll(color?.withValues(alpha: 0.15)),
|
||||
),
|
||||
color: color,
|
||||
icon: Icon(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue