mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
chore: Updated flutter to 3.29.2 + bugfixes (#296)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
671bb88b13
commit
d47f1e19da
18 changed files with 79 additions and 130 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
IconData getBackIcon(BuildContext context) {
|
||||
|
|
@ -19,12 +20,6 @@ IconData getBackIcon(BuildContext context) {
|
|||
}
|
||||
}
|
||||
|
||||
final _shadows = [
|
||||
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 {
|
||||
final Function() onPressed;
|
||||
final IconData icon;
|
||||
|
|
@ -39,10 +34,7 @@ class ElevatedIconButton extends ConsumerWidget {
|
|||
backgroundColor: WidgetStatePropertyAll(color?.withValues(alpha: 0.15)),
|
||||
),
|
||||
color: color,
|
||||
icon: Icon(
|
||||
icon,
|
||||
shadows: _shadows,
|
||||
),
|
||||
icon: Icon(icon),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue