Answers for "how to add a delay in flutter"

5

flutter delay

Timer(Duration(seconds: 5), () {
  print(" This line is execute after 5 seconds");
});
Posted by: Guest on December-02-2020
4

flutter delay a function

Future.delayed(const Duration(milliseconds: 500), () {

// Here you can write your code

  setState(() {
    // Here you can write your code for open new view
  });

});
Posted by: Guest on June-17-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language