fix: Small changes

This commit is contained in:
PartyDonut 2025-10-15 18:51:03 +02:00
parent 29b1c2e633
commit a8b2f9053e
2 changed files with 15 additions and 14 deletions

View file

@ -179,19 +179,17 @@ class FocusButtonState extends State<FocusButton> {
onTap: widget.onTap,
onSecondaryTapDown: widget.onSecondaryTapDown,
onLongPress: widget.onLongPress,
child: Stack(
children: [
if (widget.child != null) widget.child!,
],
),
child: widget.child,
overlays: [
if (widget.overlays.isNotEmpty) ...widget.overlays,
if (widget.focusedOverlays.isNotEmpty)
AnimatedOpacity(
opacity: value ? 1 : 0,
duration: const Duration(milliseconds: 250),
child: Stack(
children: [...widget.focusedOverlays],
Positioned.fill(
child: AnimatedOpacity(
opacity: value ? 1 : 0,
duration: const Duration(milliseconds: 250),
child: Stack(
children: [...widget.focusedOverlays],
),
),
),
],