How to refresh a page after back button pressed

The Navigator.push method returns a future of the generic type of the Route:

Navigator.of(context)
  .push(new MaterialPageRoute<String>(...))
  .then((String value) {
    print(value);
  });

And inside the new route, when you have the value you need:

Navigator.of(context).pop('String');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)