Here is an example using Timer.periodic : Countdown starts from 10 to 0 on button click : import 'dart:async'; [...] Timer _timer; int _start = 10; ...
確定! 回上一頁