flutter 延迟 执行

Future.delayed(Duration(seconds: 2), () {
  Navigator.of(context, rootNavigator: true).pop();
});

你可能感兴趣的:(flutter,dart)