Flutter Web - How to reload currently Active Page Flutter Web - How to reload currently Active Page dart dart

Flutter Web - How to reload currently Active Page


Or you can just use this as it refreshes the whole window natively

import 'dart:html' as html;html.window.location.reload();


Check out navigation with named routes as it maps URLs seamlessly when using Flutter Web.

EDIT : If you want URL parameters (like an id, a token...), check out this article.


Use Navigator to push to the same page. .ie.If CurrentPage() is your page that needs to be refreshed then use:

Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context) => CurrentPage()));

This will reload the page.