flutter refresh previous page when back pressed
 
- flutter refresh previous page when back pressed
- Navigator.push back pressed
- Not: Parameters.CurrentContext; (my custom static variable)
static void toPageMain() {
var curContext = Parameters.CurrentContext;
Future.delayed(Duration.zero, () async {
  final result = await Navigator.push(Parameters.CurrentContext,
	  MaterialPageRoute(builder: (context) => PageMain()));

  Parameters.CurrentContext = curContext;
  //or do something
});
}

 

Author: Engin ATALAY
Date: 30.01.2021 18:29:39
View Count: 208
 
 

COMMENTS
 
No comments yet. Be the first to comment who you are.
 
 
 
 
 
 
 
WRITE COMMENT
 
 
Your Name :
 
 
 
E-mail :
 
 
 
Your Message :
 
 
 
 
 
 
 
This project : ASP.NET MVC , RAZOR, Entity Framework , CSS , HTML , JQUERY(2.0.2) , AJAX the C# side-tier architecture was developed with logic.
 
Yukarı Çık