mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
feat: Improve media play button
This commit is contained in:
parent
9a6202bd0b
commit
5722defe34
3 changed files with 82 additions and 58 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue