You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Jumping animation on MacosScaffold Toolbar when toggling Sidebar #569
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
Execute a macos_ui app
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.
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.
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 😕
Activity
Adrian-Samoticha commentedon Apr 13, 2025
Would you mind recording a video of that happening just so weʼre on the same page on what the issue is?
Jannik-Hm commentedon 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 commentedon Apr 13, 2025
Same thing happens when hiding the sidebar again as well. There the Toolbar jumps to the right
Adrian-Samoticha commentedon Apr 14, 2025
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 commentedon Apr 14, 2025
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 😕