mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 18:56:00 -07:00
chore: Added a small animation to skip button
This commit is contained in:
parent
a06591084b
commit
9442a5bd41
2 changed files with 36 additions and 26 deletions
|
|
@ -159,18 +159,17 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
bool forceShow = segment?.forceShow(position) ?? false;
|
||||
return Stack(
|
||||
children: [
|
||||
if (segment != null)
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
child: SkipSegmentButton(
|
||||
label: context.localized.skipButtonLabel(segment.type.label(context).toLowerCase()),
|
||||
isOverlayVisible: forceShow ? true : showOverlay,
|
||||
pressedSkip: () => skipToSegmentEnd(segment),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
child: SkipSegmentButton(
|
||||
segment: segment,
|
||||
isOverlayVisible: forceShow ? true : showOverlay,
|
||||
pressedSkip: () => skipToSegmentEnd(segment),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue