Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

future delayed flutter

Future.delayed(Duration(seconds: 5), () {
  // 5s over, navigate to a new page
  Navigator.pushNamed(context, MaterialPageRoute(builder: (_) => Screen2()));
});
 
PREVIOUS NEXT
Tagged: #future #delayed #flutter
ADD COMMENT
Topic
Name
4+1 =