Answers for "how to make watch in flutter"

0

how to make watch in flutter

Timer.periodic(Duration(seconds: 1), (timer) {
      var perviousMinute = DateTime.now().add(Duration(seconds: -1)).minute;
      var currentMinute = DateTime.now().minute;
      if (perviousMinute != currentMinute)
        setState(() {
          formattedTime = DateFormat('HH:mm').format(DateTime.now());
        });
    });
Posted by: Guest on October-17-2021

Code answers related to "how to make watch in flutter"

Browse Popular Code Answers by Language