m.i.n.a.r.
Feb 3, 2021

Navigator.of(context, rootNavigator: true).pushReplacement(

MaterialPageRoute(

builder: (context) => LoginScreen(),

),

);

I'll answer this myself: just use the rootNavigator attribute to get the original navigator, and it works.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

m.i.n.a.r.
m.i.n.a.r.

Written by m.i.n.a.r.

I'm a Computer Engineer, designer and Android developer. My works are mainly themes, icons, wallpapers and animations.

No responses yet

Write a response