Skip to content

How to define page transition on RouterOutlet? #799

@arguswaikhom

Description

@arguswaikhom

Describe the question
RouterOutlet has this annoying transition by default. Is there any way to fix this? I couldn't find one.

Expected behavior
I think it should have a smooth transition or developers should be able to define their own animation or transition to change the widgets.

Screenshots
WhatsApp Video 2022-10-04 at 11 25 22 AM

In modular I've defined the child route like this

ChildRoute('/',child: (_, __) => const HomePage(),
          children: [
            ChildRoute(...),
            ChildRoute('/chart', child: (_, __) => const Chartpage()),
            ChildRoute('/more', child: (_, __) => const MorePage()),
          ],
        ),

And the below code as the body of the home page scaffold
body: const RouterOutlet(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    newNew issue request attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions