Skip to content

Jumping animation on MacosScaffold Toolbar when toggling Sidebar #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jannik-Hm opened this issue Apr 13, 2025 · 5 comments
Open

Jumping animation on MacosScaffold Toolbar when toggling Sidebar #569

Jannik-Hm opened this issue Apr 13, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Jannik-Hm
Copy link

Description

When using the ToolBar in a MacosScaffold, on Sidebar toggle, the toolbar jumps around.
This is a result of the animation being performed by MacosWindow on the entire MacosScaffold.

Steps To Reproduce

  1. Execute a macos_ui app
  2. toggle sidebar

Expected behavior

This animation should be happening without weird jumping artifacts.

For a proper solution the animation of the toolbar would need to be decoupled from the content area animation in the main window as it is currently in line 378 ff. in layout/window.dart.

Any ideas?

@Jannik-Hm Jannik-Hm added the bug Something isn't working label Apr 13, 2025
@Adrian-Samoticha
Copy link
Member

Would you mind recording a video of that happening just so weʼre on the same page on what the issue is?

@Jannik-Hm
Copy link
Author

Jannik-Hm commented Apr 13, 2025

Sure, here.
Basically the animation starts behind the window control buttons, which seems weird.

Toolbar-Jumping.mov

It happens quite fast, so it is a bit of a nitpick but still off-throwing to the user.

@Jannik-Hm
Copy link
Author

Same thing happens when hiding the sidebar again as well. There the Toolbar jumps to the right

@Adrian-Samoticha
Copy link
Member

Oh yeah, I see what you mean. To be honest, on most (all?) native macOS apps, the toolbar button actually stays stationary while the rest of the toolbar shifts. I’d argue that this issue needs a little bit more work than just fixing the animation.

This issue is related: #507

@Jannik-Hm
Copy link
Author

Yeah, also saw that.
Just wanted to note that this jumping also applies to the rest of the toolbar, not just the icon.
So yeah, the current concept does not work out 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants