Browse Source

Increase the frequency at which the progress bar is refreshed

vishnukvmd 2 years ago
parent
commit
082500c3d1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/ui/code_widget.dart

+ 2 - 1
lib/ui/code_widget.dart

@@ -27,7 +27,8 @@ class _CodeWidgetState extends State<CodeWidget> {
   void initState() {
     super.initState();
     _updateTimeRemaining();
-    _everySecondTimer = Timer.periodic(const Duration(seconds: 1), (Timer t) {
+    _everySecondTimer =
+        Timer.periodic(const Duration(milliseconds: 200), (Timer t) {
       setState(() {
         _updateTimeRemaining();
       });