feat: Improve media play button

This commit is contained in:
PartyDonut 2025-10-09 14:11:55 +02:00
parent 9a6202bd0b
commit 5722defe34
3 changed files with 82 additions and 58 deletions

View file

@ -52,6 +52,7 @@ class FocusButton extends StatefulWidget {
final Function(TapDownDetails)? onSecondaryTapDown;
final bool darkOverlay;
final Function(bool focus)? onFocusChanged;
final BorderRadiusGeometry? borderRadius;
const FocusButton({
this.child,
@ -63,6 +64,7 @@ class FocusButton extends StatefulWidget {
this.onSecondaryTapDown,
this.darkOverlay = true,
this.onFocusChanged,
this.borderRadius,
super.key,
});
@ -176,7 +178,7 @@ class FocusButtonState extends State<FocusButton> {
.primaryContainer
.withValues(alpha: widget.darkOverlay ? 0.1 : 0),
border: Border.all(width: 3, color: Theme.of(context).colorScheme.onPrimaryContainer),
borderRadius: FladderTheme.smallShape.borderRadius,
borderRadius: widget.borderRadius ?? FladderTheme.smallShape.borderRadius,
),
),
),