lulupointu / vrouter

MIT License
202 stars 39 forks source link

Weird animation in nested pages #182

Closed benjaminschreck closed 2 years ago

benjaminschreck commented 2 years ago

When I navigate through nested pages there is a weird Animation where I see the buttons of the Page before. Is this a known issue? If yes how can I solve it?

https://user-images.githubusercontent.com/64160104/154098008-a80b1583-1c44-43ca-bd55-54a23fc44268.mov

lulupointu commented 2 years ago

Wow, I've never seen that before. Do you have a reproducible example?

benjaminschreck commented 2 years ago

https://github.com/benjaminschreck/vrouter_problem

I uploaded a reproducible example.

benjaminschreck commented 2 years ago

The solution was to wrap every widget in the VWidget with a Scaffold

VWidget(
    path: "/home",
    widget: Scaffold(body: HomeView()),
)